jquery_rails3 1.4.3 → 1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/generators/jquery/install/install_generator.rb +4 -4
- metadata +3 -4
data/Rakefile
CHANGED
@@ -3,8 +3,8 @@ module Jquery
|
|
3
3
|
PATH = source_root File.expand_path('../templates', __FILE__)
|
4
4
|
# Options
|
5
5
|
class_option :ui, :type => :boolean, :defalut => false, :desc => "Add jquery-ui components to application."
|
6
|
-
class_option :ui_version, :type => :string, :defalut => "1
|
7
|
-
class_option :version, :type => :string, :defalut => "1
|
6
|
+
class_option :ui_version, :type => :string, :defalut => "1", :desc => "Version of jquery-ui components to application."
|
7
|
+
class_option :version, :type => :string, :defalut => "1", :desc => "Version of jquery used in application."
|
8
8
|
|
9
9
|
|
10
10
|
JS_DEST = "public/javascripts"
|
@@ -19,8 +19,8 @@ module Jquery
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def install_jquery
|
22
|
-
version = (options[:version].nil?)? "1
|
23
|
-
ui_version = (options[:ui_version].nil?)? "1
|
22
|
+
version = (options[:version].nil?)? "1" : options[:version]
|
23
|
+
ui_version = (options[:ui_version].nil?)? "1" : options[:ui_version]
|
24
24
|
url = "http://ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js"
|
25
25
|
#puts url
|
26
26
|
get url, "#{JS_DEST}/jquery.js"
|
metadata
CHANGED
@@ -4,9 +4,8 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 1
|
7
|
-
-
|
8
|
-
|
9
|
-
version: 1.4.3
|
7
|
+
- 6
|
8
|
+
version: "1.6"
|
10
9
|
platform: ruby
|
11
10
|
authors:
|
12
11
|
- Allan Davis
|
@@ -14,7 +13,7 @@ autorequire:
|
|
14
13
|
bindir: bin
|
15
14
|
cert_chain: []
|
16
15
|
|
17
|
-
date:
|
16
|
+
date: 2011-05-05 00:00:00 -04:00
|
18
17
|
default_executable:
|
19
18
|
dependencies: []
|
20
19
|
|