-
Notifications
You must be signed in to change notification settings - Fork 2
/
jquery.rb
36 lines (28 loc) · 885 Bytes
/
jquery.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
tdir = "~/rails3-templates"
apply "#{tdir}/helper_functions"
inside "public/javascripts/jquery" do
# install JQuery
get_file "http://code.jquery.com", "jquery-1.4.1.min.js"
# jquery Form
if yes?("Add jQuery Form ?")
get_file "http://jquery.malsup.com/form", "jquery.form.js"
end
# jquery grid
if yes?("Add jQuery grid ?")
run "git clone git://github.com/tonytomov/jqGrid.git jquery-grid"
# rm .git
inside "jquery-grid" do
run "rm -rf .git*"
end
end
if yes?("Add jQuery jsTree ?")
unzip_it "http://jstree.googlecode.com/files", "1.0beta2.zip", "jstree"
end
# jquery tree
if yes?("Add jQuery TreeView ?")
unzip_it "http://jquery.bassistance.de/treeview", "jquery.treeview.zip"
end
if yes?("Add jQuery Autocomplete ?")
unzip_it "http://jquery.bassistance.de/autocomplete", "jquery.autocomplete.zip"
end
end