jquery_tag 0.1.1 → 0.1.2

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/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  pkg/*
2
2
  *.gem
3
3
  .bundle
4
- .rvmrc
4
+ .rvmrc
5
+ Gemfile.lock
data/README.markdown CHANGED
@@ -2,8 +2,11 @@
2
2
  a Rails Helper for togglin' between a local jquery.js file located in /public/javascripts/jquery.js or the hosted script on Google's CDN.
3
3
  Also supports the same behaviour for a local jquery-ui.js file or the CDN version.
4
4
 
5
+ To know more about the benefits of using a CDN for your common Javascript frameworks, check [this Chris Coyier post](http://css-tricks.com/google-cdn-naming/) at [CSS-Tricks](http://css-tricks.com).
6
+
5
7
  ## Installation
6
- Just add the `jquery_tag` to your Gemfile and run `bundle install`
8
+ Just add the `jquery_tag` to your Gemfile and run `bundle install`.
9
+ To download the latest jQuery scripts, check the [jquery-rails](https://github.com/indirect/jquery-rails) gem.
7
10
 
8
11
  ## Usage
9
12
  Inside your views
data/jquery_tag.gemspec CHANGED
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
  s.description = "Helper gem that toggles between local jquery script and Google CDN version based on your app environment"
13
13
 
14
14
  s.required_rubygems_version = ">= 1.3.6"
15
- s.add_development_dependency "bundler", "~> 1"
16
- s.add_development_dependency "rspec", "~> 2"
15
+ s.add_development_dependency "bundler", "~> 1.0"
16
+ s.add_development_dependency "rspec", "~> 2.4"
17
17
 
18
18
  s.files = `git ls-files`.split("\n")
19
19
  s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
@@ -1,3 +1,3 @@
1
1
  module JqueryTag
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -19,7 +19,7 @@ module JqueryTag
19
19
 
20
20
  def jquery_ui_file(path)
21
21
  path = path.is_a?(String) ? path : "jquery-ui.js"
22
- version = '1.8.6'
22
+ version = '1.8.9'
23
23
  Rails.env.production? ? "//ajax.googleapis.com/ajax/libs/jqueryui/#{version}/jquery-ui.min.js" : path
24
24
  end
25
25
  end
@@ -46,7 +46,7 @@ describe JqueryTag::ViewHelpers do
46
46
  end
47
47
 
48
48
  it "uses the google CDN path for the jquery ui script" do
49
- expects_include_with ['//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js']
49
+ expects_include_with ['//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js']
50
50
  jquery_tag :ui => true
51
51
  end
52
52
  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: 25
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
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: 2010-12-07 00:00:00 -02:00
18
+ date: 2011-01-24 00:00:00 -02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,10 +26,11 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 1
29
+ hash: 15
30
30
  segments:
31
31
  - 1
32
- version: "1"
32
+ - 0
33
+ version: "1.0"
33
34
  type: :development
34
35
  version_requirements: *id001
35
36
  - !ruby/object:Gem::Dependency
@@ -40,10 +41,11 @@ dependencies:
40
41
  requirements:
41
42
  - - ~>
42
43
  - !ruby/object:Gem::Version
43
- hash: 7
44
+ hash: 11
44
45
  segments:
45
46
  - 2
46
- version: "2"
47
+ - 4
48
+ version: "2.4"
47
49
  type: :development
48
50
  version_requirements: *id002
49
51
  description: Helper gem that toggles between local jquery script and Google CDN version based on your app environment
@@ -58,7 +60,6 @@ extra_rdoc_files: []
58
60
  files:
59
61
  - .gitignore
60
62
  - Gemfile
61
- - Gemfile.lock
62
63
  - README.markdown
63
64
  - Rakefile
64
65
  - jquery_tag.gemspec
@@ -99,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  requirements: []
100
101
 
101
102
  rubyforge_project:
102
- rubygems_version: 1.3.7
103
+ rubygems_version: 1.4.1
103
104
  signing_key:
104
105
  specification_version: 3
105
106
  summary: jQuery script tag helper for Rails
data/Gemfile.lock DELETED
@@ -1,25 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- jquery_tag (0.1.0)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- diff-lcs (1.1.2)
10
- rspec (2.2.0)
11
- rspec-core (~> 2.2)
12
- rspec-expectations (~> 2.2)
13
- rspec-mocks (~> 2.2)
14
- rspec-core (2.2.1)
15
- rspec-expectations (2.2.0)
16
- diff-lcs (~> 1.1.2)
17
- rspec-mocks (2.2.0)
18
-
19
- PLATFORMS
20
- ruby
21
-
22
- DEPENDENCIES
23
- bundler (~> 1)
24
- jquery_tag!
25
- rspec (~> 2)