jquery_tag 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +1 -1
- data/lib/jquery_tag/version.rb +1 -1
- data/lib/jquery_tag.rb +1 -1
- data/spec/rails_helper_spec.rb +2 -2
- data/spec/sinatra_helper_spec.rb +2 -2
- metadata +7 -7
data/README.markdown
CHANGED
@@ -22,7 +22,7 @@ Inside your views, you can just call the `jquery_tag` method.
|
|
22
22
|
|
23
23
|
It accepts a some configuration options by using the following symbols:
|
24
24
|
|
25
|
-
:version # Overrides the script version on the CDN URL. Defaults do '1.
|
25
|
+
:version # Overrides the script version on the CDN URL. Defaults do '1.7.0'
|
26
26
|
:file # Path for the local script. Defaults do 'jquery.js'
|
27
27
|
:ui # Loads jQuery UI. Accepts a true value for loading a 'jquery-ui.js' file or a String for the local path.
|
28
28
|
|
data/lib/jquery_tag/version.rb
CHANGED
data/lib/jquery_tag.rb
CHANGED
@@ -4,7 +4,7 @@ require 'jquery_tag/helpers/sinatra_helper'
|
|
4
4
|
|
5
5
|
module JqueryTag # :nodoc:
|
6
6
|
## @return [String] the current (mostly latest) version of jQuery.
|
7
|
-
def self.version; '1.
|
7
|
+
def self.version; '1.7.0'; end
|
8
8
|
## @return [String] the current (mostly latest) version of jQuery UI.
|
9
9
|
def self.ui_version; '1.8.16'; end
|
10
10
|
end
|
data/spec/rails_helper_spec.rb
CHANGED
@@ -41,7 +41,7 @@ describe JqueryTag::RailsHelper do
|
|
41
41
|
before { production! }
|
42
42
|
|
43
43
|
it "uses the google CDN path" do
|
44
|
-
expects_includes_with ['//ajax.googleapis.com/ajax/libs/jquery/1.
|
44
|
+
expects_includes_with ['//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js']
|
45
45
|
jquery_tag
|
46
46
|
end
|
47
47
|
|
@@ -51,7 +51,7 @@ describe JqueryTag::RailsHelper do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
it "uses the google CDN path for the jquery ui script" do
|
54
|
-
expects_includes_with ['//ajax.googleapis.com/ajax/libs/jquery/1.
|
54
|
+
expects_includes_with ['//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js']
|
55
55
|
jquery_tag :ui => true
|
56
56
|
end
|
57
57
|
end
|
data/spec/sinatra_helper_spec.rb
CHANGED
@@ -33,7 +33,7 @@ describe JqueryTag::SinatraHelper do
|
|
33
33
|
before { production! }
|
34
34
|
|
35
35
|
it "uses the google CDN path" do
|
36
|
-
expected = %Q{<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.
|
36
|
+
expected = %Q{<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>}
|
37
37
|
jquery_tag.should == expected
|
38
38
|
end
|
39
39
|
|
@@ -43,7 +43,7 @@ describe JqueryTag::SinatraHelper do
|
|
43
43
|
end
|
44
44
|
|
45
45
|
it "uses the google CDN path for the jquery ui script" do
|
46
|
-
expected = %Q{<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.
|
46
|
+
expected = %Q{<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>}
|
47
47
|
expected << %Q{<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>}
|
48
48
|
jquery_tag(:ui => true).should == expected
|
49
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-11-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152035140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '2.4'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152035140
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152033740 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.9.2
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152033740
|
36
36
|
description: Helper gem that toggles between local jquery script and Google CDN version
|
37
37
|
based on your app environment
|
38
38
|
email:
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.8.
|
81
|
+
rubygems_version: 1.8.10
|
82
82
|
signing_key:
|
83
83
|
specification_version: 3
|
84
84
|
summary: jQuery script tag helper for Rails and Sinatra
|