jquery_tag 0.2.2 → 0.2.3
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/lib/jquery_tag.rb +2 -2
- data/lib/jquery_tag/version.rb +1 -1
- data/spec/rails_helper_spec.rb +2 -2
- data/spec/sinatra_helper_spec.rb +3 -3
- metadata +4 -4
data/lib/jquery_tag.rb
CHANGED
@@ -4,9 +4,9 @@ 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.6.0'; end
|
8
8
|
## @return [String] the current (mostly latest) version of jQuery UI.
|
9
|
-
def self.ui_version; '1.8.
|
9
|
+
def self.ui_version; '1.8.12'; end
|
10
10
|
end
|
11
11
|
|
12
12
|
ActionView::Base.send(:include, JqueryTag::RailsHelper) if defined? Rails
|
data/lib/jquery_tag/version.rb
CHANGED
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_include_with ['//ajax.googleapis.com/ajax/libs/jquery/1.
|
44
|
+
expects_include_with ['//ajax.googleapis.com/ajax/libs/jquery/1.6.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_include_with ['//ajax.googleapis.com/ajax/libs/jquery/1.
|
54
|
+
expects_include_with ['//ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/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.6.0/jquery.min.js"></script>}
|
37
37
|
jquery_tag.should == expected
|
38
38
|
end
|
39
39
|
|
@@ -43,8 +43,8 @@ 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.
|
47
|
-
expected << %Q{<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.
|
46
|
+
expected = %Q{<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>}
|
47
|
+
expected << %Q{<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js"></script>}
|
48
48
|
jquery_tag(:ui => true).should == expected
|
49
49
|
end
|
50
50
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lucas Mazza
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-05 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|