jquery-ui-rails-cdn 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c8e530379275cd073a124d24882ce69601d88dfb
4
+ data.tar.gz: fd2865828077ccd0be46d4edd2db69d09fea0887
5
+ SHA512:
6
+ metadata.gz: 36c09b612fae9eb5afcd2994f3a7726d849ec9987daa6e72865ff2f59415dde2fb4df4d0974dd209659b527ad047751b1ecfe52418e4f5b01b8aa12267785b5c
7
+ data.tar.gz: 3296541c383dca9090f807b2f99276c85219cf9172e3a80554ec16b2978acc317e69dcf15a91e442387e3e3f7811119cb060ac7702042760b789b29aa375b2b9
Binary file
Binary file
data/README.md CHANGED
@@ -29,6 +29,8 @@ On top of that, if you're using asset pipeline, you may have noticed that the ma
29
29
 
30
30
  Changelog:
31
31
 
32
+ * v0.1.2: Compatibility fix + various gem spec changes
33
+ * v0.1.1: Readme fix
32
34
  * v0.1.0: Initial release
33
35
 
34
36
  ## Installation
@@ -39,6 +41,15 @@ Add this line to your application's Gemfile:
39
41
  gem 'jquery-ui-rails-cdn'
40
42
  ```
41
43
 
44
+ ### WARNING
45
+
46
+ From `jquery-ui-rails` `4.1.0` onward, `Jquery::Ui::Rails::JQUERY_UI_VERSION` is defiend and auto updated on each release.
47
+ * [See this commit](https://github.com/joliss/jquery-ui-rails/commit/e22a185)
48
+
49
+ If you are using version lower than `4.1.0`, you will need to use forked version of jquery-ui-rails
50
+ * [techbang-jquery-ui-rails](https://github.com/techbang/jquery-ui-rails)
51
+ or any other which defines `Jquery::Ui::Rails::JQUERY_UI_VERSION`.
52
+
42
53
  ## Usage
43
54
 
44
55
  This gem adds these methods to generate a script tag to the jQuery on a CDN of your preference:
data/Rakefile CHANGED
@@ -1,14 +1,7 @@
1
- #!/usr/bin/env rake
2
- require 'rake'
3
- require 'bundler/setup'
4
1
  require 'bundler/gem_tasks'
5
- require 'rdoc/task'
2
+ require 'rspec/core/rake_task'
6
3
 
7
- desc 'Generate documentation for the timeline_fu plugin.'
8
- Rake::RDocTask.new(:rdoc) do |rdoc|
9
- rdoc.rdoc_dir = 'rdoc'
10
- rdoc.title = 'jQuery-ui.cdn'
11
- rdoc.options << '--line-numbers' << '--inline-source'
12
- rdoc.rdoc_files.include('README*')
13
- rdoc.rdoc_files.include('lib/**/*.rb')
14
- end
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task default: :spec
7
+ task test: :spec
@@ -0,0 +1,21 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MRAwDgYDVQQDDAdzdHl4
3
+ Lm1wMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
4
+ HhcNMTMwNzA3MDgxNDU5WhcNMTQwNzA3MDgxNDU5WjA+MRAwDgYDVQQDDAdzdHl4
5
+ Lm1wMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
6
+ ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPCEAmZU8H403RPpnRe1cX
7
+ MoFryNh1d7CA4CTJRwIca6wQM0mDouR+zpOFAUz/PMUfTU5euxk9PzIZsFdsBGeV
8
+ W5YIBJ51T855/URgkPuc0JEQOH4T0R1+iYIwA6hBFfUYKkC0OtM20wuKtNwMaksb
9
+ fZo+utOca5uHpIG3Je80jE95rKppae4Al4uOCgHiUclWlmfeqaCx5vc5RIuWitHd
10
+ PNBQHbz3HDTUb2ij08opisRWuIzfhuJipsSH1AdYoWxZCuKpIAWNSNYOZmmX8ArA
11
+ o2sPlriDGyHNZTyxxm32aAGOJMQn6UXWMGiOoEEu3zDVFiGxxaqEFputlzYjs5i/
12
+ AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBS8ExGi
13
+ wpd2ssCLGKZsv72rGEkrizAcBgNVHREEFTATgRFzdHl4Lm1wQGdtYWlsLmNvbTAc
14
+ BgNVHRIEFTATgRFzdHl4Lm1wQGdtYWlsLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEA
15
+ BZWxpKvJkcSwAYbVT+UjPApQkkYlgslJnf44I4bdzomp8h5YULw5QanOhYzYuiN0
16
+ kVegvzZzjFDwDgd4ihe/4mM8zyoquAcrEyqam3fiAMzOr+lTyAjOLcrVFYMivwMK
17
+ LZpOG7GpgIA1FWA2L2e/2ww2o6fHmuxclDyYyHGIJkMIeDYajnjTV+MS3IgrOA0k
18
+ Oh9ehT0tQasCkdK10ng+nrDgasiG9rXCTgb5t+OSC2xsT2+8Em4dR0hMyobKt/cN
19
+ Z2S2HQ6LJ1YyB0Sjwx2KZ4Sofni5coZE6d4ayx6nFEKQGlSKVIXtc0W3HD3+Q1Ww
20
+ RYreADroU/Sf7E9uVmOmkQ==
21
+ -----END CERTIFICATE-----
@@ -2,18 +2,31 @@
2
2
  require File.expand_path('../lib/jquery-ui-rails-cdn/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.authors = ["Mikhail Pobolovets"]
6
- gem.email = ["styx.mp@gmail.com"]
5
+ gem.authors = ['Mikhail Pobolovets']
6
+ gem.email = ['styx.mp@gmail.com']
7
7
  gem.description = %q{Add CDN support to jquery-ui-rails}
8
- gem.summary = %q{Add CDN support to jquery-ui-rails}
9
- gem.homepage = "https://github.com/styx/jquery-ui-rails-cdn"
8
+ gem.summary = %q{Add CDN support to jquery-ui-rails with fallback if CDN is not available}
9
+ gem.homepage = 'https://github.com/styx/jquery-ui-rails-cdn'
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
- gem.name = "jquery-ui-rails-cdn"
15
- gem.require_paths = ["lib"]
14
+ gem.name = 'jquery-ui-rails-cdn'
15
+ gem.require_paths = ['lib']
16
16
  gem.version = Jquery::Ui::Rails::Cdn::VERSION
17
+ gem.license = 'MIT'
17
18
 
18
- gem.add_runtime_dependency "jquery-ui-rails"
19
+ unless ENV['TRAVIS']
20
+ gem.signing_key = File.join(Dir.home, '/.gem/trust/gem-private_key.pem')
21
+ gem.cert_chain = ['gem-public_cert.pem']
22
+ end
23
+
24
+ gem.add_runtime_dependency 'jquery-ui-rails', '>= 4.1.0'
25
+
26
+ gem.add_development_dependency 'bundler', '~> 1.3'
27
+ gem.add_development_dependency 'rake'
28
+ gem.add_development_dependency 'rspec'
29
+ gem.add_development_dependency 'coveralls'
30
+ gem.add_development_dependency 'fuubar'
31
+ gem.add_development_dependency 'pry'
19
32
  end
@@ -18,10 +18,10 @@ module Jquery::Ui::Rails::Cdn
18
18
  end
19
19
 
20
20
  def jquery_ui_include_tag(name, options = {})
21
- return javascript_include_tag(:'jquery-ui') if OFFLINE and !options[:force]
21
+ return javascript_include_tag(:'jquery.ui.all') if OFFLINE and !options[:force]
22
22
 
23
23
  [ javascript_include_tag(jquery_ui_url(name, options)),
24
- javascript_tag("window.jQuery.ui || document.write(unescape('#{javascript_include_tag(:'jquery-ui').gsub('<','%3C')}'))")
24
+ javascript_tag("window.jQuery.ui || document.write(unescape('#{javascript_include_tag(:'jquery.ui.all').gsub('<','%3C')}'))")
25
25
  ].join("\n").html_safe
26
26
  end
27
27
  end
@@ -2,7 +2,7 @@ module Jquery
2
2
  module Ui
3
3
  module Rails
4
4
  module Cdn
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
8
8
  end
@@ -0,0 +1,17 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+
4
+ require 'rspec'
5
+ require 'rails'
6
+ require 'jquery-ui-rails-cdn'
7
+ require 'pry'
8
+
9
+ require 'coveralls'
10
+ Coveralls.wear!
11
+
12
+ # Requires supporting files with custom matchers and macros, etc,
13
+ # in ./support/ and its subdirectories.
14
+ #Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
+
16
+ #RSpec.configure do |config|
17
+ #end
File without changes
metadata CHANGED
@@ -1,30 +1,133 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-ui-rails-cdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mikhail Pobolovets
9
8
  autorequire:
10
9
  bindir: bin
11
- cert_chain: []
12
- date: 2012-11-01 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MRAwDgYDVQQDDAdzdHl4
14
+ Lm1wMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
15
+ HhcNMTMwNzA3MDgxNDU5WhcNMTQwNzA3MDgxNDU5WjA+MRAwDgYDVQQDDAdzdHl4
16
+ Lm1wMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
17
+ ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPCEAmZU8H403RPpnRe1cX
18
+ MoFryNh1d7CA4CTJRwIca6wQM0mDouR+zpOFAUz/PMUfTU5euxk9PzIZsFdsBGeV
19
+ W5YIBJ51T855/URgkPuc0JEQOH4T0R1+iYIwA6hBFfUYKkC0OtM20wuKtNwMaksb
20
+ fZo+utOca5uHpIG3Je80jE95rKppae4Al4uOCgHiUclWlmfeqaCx5vc5RIuWitHd
21
+ PNBQHbz3HDTUb2ij08opisRWuIzfhuJipsSH1AdYoWxZCuKpIAWNSNYOZmmX8ArA
22
+ o2sPlriDGyHNZTyxxm32aAGOJMQn6UXWMGiOoEEu3zDVFiGxxaqEFputlzYjs5i/
23
+ AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBS8ExGi
24
+ wpd2ssCLGKZsv72rGEkrizAcBgNVHREEFTATgRFzdHl4Lm1wQGdtYWlsLmNvbTAc
25
+ BgNVHRIEFTATgRFzdHl4Lm1wQGdtYWlsLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEA
26
+ BZWxpKvJkcSwAYbVT+UjPApQkkYlgslJnf44I4bdzomp8h5YULw5QanOhYzYuiN0
27
+ kVegvzZzjFDwDgd4ihe/4mM8zyoquAcrEyqam3fiAMzOr+lTyAjOLcrVFYMivwMK
28
+ LZpOG7GpgIA1FWA2L2e/2ww2o6fHmuxclDyYyHGIJkMIeDYajnjTV+MS3IgrOA0k
29
+ Oh9ehT0tQasCkdK10ng+nrDgasiG9rXCTgb5t+OSC2xsT2+8Em4dR0hMyobKt/cN
30
+ Z2S2HQ6LJ1YyB0Sjwx2KZ4Sofni5coZE6d4ayx6nFEKQGlSKVIXtc0W3HD3+Q1Ww
31
+ RYreADroU/Sf7E9uVmOmkQ==
32
+ -----END CERTIFICATE-----
33
+ date: 2013-11-09 00:00:00.000000000 Z
13
34
  dependencies:
14
35
  - !ruby/object:Gem::Dependency
15
36
  name: jquery-ui-rails
16
37
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
38
  requirements:
19
- - - ! '>='
39
+ - - ">="
20
40
  - !ruby/object:Gem::Version
21
- version: '0'
41
+ version: 4.1.0
22
42
  type: :runtime
23
43
  prerelease: false
24
44
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
45
  requirements:
27
- - - ! '>='
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: 4.1.0
49
+ - !ruby/object:Gem::Dependency
50
+ name: bundler
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.3'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.3'
63
+ - !ruby/object:Gem::Dependency
64
+ name: rake
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ - !ruby/object:Gem::Dependency
78
+ name: rspec
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ type: :development
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ - !ruby/object:Gem::Dependency
92
+ name: coveralls
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ type: :development
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ - !ruby/object:Gem::Dependency
106
+ name: fuubar
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ - !ruby/object:Gem::Dependency
120
+ name: pry
121
+ requirement: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ type: :development
127
+ prerelease: false
128
+ version_requirements: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
28
131
  - !ruby/object:Gem::Version
29
132
  version: '0'
30
133
  description: Add CDN support to jquery-ui-rails
@@ -34,36 +137,41 @@ executables: []
34
137
  extensions: []
35
138
  extra_rdoc_files: []
36
139
  files:
37
- - .gitignore
140
+ - ".gitignore"
38
141
  - Gemfile
39
142
  - LICENSE
40
143
  - README.md
41
144
  - Rakefile
145
+ - gem-public_cert.pem
42
146
  - jquery-ui-rails-cdn.gemspec
43
147
  - lib/jquery-ui-rails-cdn.rb
44
148
  - lib/jquery-ui-rails-cdn/version.rb
149
+ - spec/spec_helper.rb
150
+ - spec/support/.gitkeep
45
151
  homepage: https://github.com/styx/jquery-ui-rails-cdn
46
- licenses: []
152
+ licenses:
153
+ - MIT
154
+ metadata: {}
47
155
  post_install_message:
48
156
  rdoc_options: []
49
157
  require_paths:
50
158
  - lib
51
159
  required_ruby_version: !ruby/object:Gem::Requirement
52
- none: false
53
160
  requirements:
54
- - - ! '>='
161
+ - - ">="
55
162
  - !ruby/object:Gem::Version
56
163
  version: '0'
57
164
  required_rubygems_version: !ruby/object:Gem::Requirement
58
- none: false
59
165
  requirements:
60
- - - ! '>='
166
+ - - ">="
61
167
  - !ruby/object:Gem::Version
62
168
  version: '0'
63
169
  requirements: []
64
170
  rubyforge_project:
65
- rubygems_version: 1.8.24
171
+ rubygems_version: 2.1.5
66
172
  signing_key:
67
- specification_version: 3
68
- summary: Add CDN support to jquery-ui-rails
69
- test_files: []
173
+ specification_version: 4
174
+ summary: Add CDN support to jquery-ui-rails with fallback if CDN is not available
175
+ test_files:
176
+ - spec/spec_helper.rb
177
+ - spec/support/.gitkeep
@@ -0,0 +1 @@
1
+ p�D�*��