15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# File 'lib/generators/historyjs/install/install_generator.rb', line 15
def copy_historyjs
say_status "copying", "History.js (#{Historyjs::Rails::HISTORYJS_VERSION})", :green
copy_file "json2.js", "public/javascripts/json2.js"
copy_file "json2.min.js", "public/javascripts/json2.min.js"
copy_file "history_core.js", "public/javascripts/history_core.js"
copy_file "history_core.min.js", "public/javascripts/history_core.min.js"
unless options.html5?
copy_file "history_html4.js", "public/javascripts/history_html4.js"
copy_file "history_html4.min.js", "public/javascripts/history_html4.min.js"
if options.jquery?
copy_file "history_jquery.js", "public/javascripts/history_jquery.js"
copy_file "history_jquery.min.js", "public/javascripts/history_jquery.min.js"
end
if options.mootools?
copy_file "history_mootools.js", "public/javascripts/history_mootools.js"
copy_file "history_mootools.min.js", "public/javascripts/history_mootools.min.js"
end
if options.right?
copy_file "history_right.js", "public/javascripts/history_right.js"
copy_file "history_right.min.js", "public/javascripts/history_right.min.js"
end
if options.zepto?
copy_file "history_zepto.js", "public/javascripts/history_zepto.js"
copy_file "history_zepto.min.js", "public/javascripts/history_zepto.min.js"
end
if options.native?
copy_file "history_native.js", "public/javascripts/history_native.js"
copy_file "history_native.min.js", "public/javascripts/history_native.min.js"
end
else
if options.jquery?
copy_file "history_jquery_html5.js", "public/javascripts/history_jquery_html5.js"
copy_file "history_jquery_html5.min.js", "public/javascripts/history_jquery_html5.min.js"
end
if options.mootools?
copy_file "history_mootools_html5.js", "public/javascripts/history_mootools_html5.js"
copy_file "history_mootools_html5.min.js", "public/javascripts/history_mootools_html5.min.js"
end
if options.right?
copy_file "history_right_html5.js", "public/javascripts/history_right_html5.js"
copy_file "history_right_html5.min.js", "public/javascripts/history_right_html5.min.js"
end
if options.zepto?
copy_file "history_zepto_html5.js", "public/javascripts/history_zepto_html5.js"
copy_file "history_zepto_html5.min.js", "public/javascripts/history_zepto_html5.min.js"
end
if options.native?
copy_file "history_native_html5.js", "public/javascripts/history_native_html5.js"
copy_file "history_native_html5.min.js", "public/javascripts/history_native_html5.min.js"
end
end
end
|