jquery-rails-cdn-yjchen 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +1 -0
- data/jquery-rails-cdn.gemspec +3 -0
- data/lib/jquery-rails-cdn.rb +12 -12
- data/lib/jquery-rails-cdn/version.rb +1 -1
- metadata +31 -14
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a2e414039b123661f265ecb11cea109ec7d31142
|
4
|
+
data.tar.gz: 9d1263c918799b9f444b32700fe98a6fe7915b72
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 988687da7c2412160267758a9ae60b6419debad416dca698ea60de64bb6fbc0add70732895c745a97cb8dcfe2a5c6aca4e708756b94805c94d926f5017aaf6f8
|
7
|
+
data.tar.gz: 52528177f895e6e5d45e6a0e656bb5d76f6b563d1299aaf38fdcdcf3675f521ad9f37725a2ab6a1de124ba210c79a05153ee76df8859f627427a3a6e184b55a3
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/README.md
CHANGED
@@ -27,6 +27,7 @@ On top of that, if you're using asset pipeline, you may have noticed that the ma
|
|
27
27
|
|
28
28
|
Changelog:
|
29
29
|
|
30
|
+
* v0.3.3: Allow options.
|
30
31
|
* v0.3.2: Support using minimized libraries.
|
31
32
|
* v0.3.1: Fix packaging bug.
|
32
33
|
* v0.3.0: Microsoft and Yandex are now always scheme-less. (Thanks to @atipugin)
|
data/jquery-rails-cdn.gemspec
CHANGED
@@ -15,5 +15,8 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Jquery::Rails::Cdn::VERSION
|
17
17
|
|
18
|
+
gem.signing_key = File.join(Dir.home,'/.gem/trust/gem-private_key.pem')
|
19
|
+
gem.cert_chain = ['gem-public_cert.pem']
|
20
|
+
|
18
21
|
gem.add_runtime_dependency "jquery-rails"
|
19
22
|
end
|
data/lib/jquery-rails-cdn.rb
CHANGED
@@ -22,36 +22,36 @@ module Jquery::Rails::Cdn
|
|
22
22
|
},
|
23
23
|
}
|
24
24
|
|
25
|
-
def jquery_url(name
|
25
|
+
def jquery_url(name)
|
26
26
|
return CDNS[:jquery][name]
|
27
27
|
end
|
28
28
|
|
29
|
-
def jquery_ui_url(name
|
29
|
+
def jquery_ui_url(name)
|
30
30
|
return CDNS[:jquery_ui][name]
|
31
31
|
end
|
32
32
|
|
33
33
|
def jquery_include_tag(name, options = {})
|
34
34
|
jquery = 'jquery'
|
35
|
-
jquery = jquery + '.min' if options
|
35
|
+
jquery = jquery + '.min' if options.delete(:compressed)
|
36
36
|
|
37
|
-
if OFFLINE and !options
|
38
|
-
return javascript_include_tag(jquery)
|
37
|
+
if OFFLINE and !options.delete(:force)
|
38
|
+
return javascript_include_tag(jquery, options)
|
39
39
|
else
|
40
|
-
[ javascript_include_tag(jquery_url(name, options)
|
41
|
-
javascript_tag("window.jQuery || document.write(unescape('#{javascript_include_tag(jquery).gsub('<','%3C')}'))")
|
40
|
+
[ javascript_include_tag(jquery_url(name), options),
|
41
|
+
javascript_tag("window.jQuery || document.write(unescape('#{javascript_include_tag(jquery, options).gsub('<','%3C')}'))")
|
42
42
|
].join("\n").html_safe
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
46
|
def jquery_ui_include_tag(name, options = {})
|
47
47
|
jqueryui = 'jquery-ui'
|
48
|
-
jqueryui = jqueryui + '.min' if options
|
48
|
+
jqueryui = jqueryui + '.min' if options.delete(:compressed)
|
49
49
|
|
50
|
-
if OFFLINE and !options
|
51
|
-
return javascript_include_tag(jqueryui)
|
50
|
+
if OFFLINE and !options.delete(:force)
|
51
|
+
return javascript_include_tag(jqueryui, options)
|
52
52
|
else
|
53
|
-
[ javascript_include_tag(jquery_ui_url(name, options)
|
54
|
-
javascript_tag("window.jQuery.ui || document.write(unescape('#{javascript_include_tag(jqueryui).gsub('<','%3C')}'))")
|
53
|
+
[ javascript_include_tag(jquery_ui_url(name), options),
|
54
|
+
javascript_tag("window.jQuery.ui || document.write(unescape('#{javascript_include_tag(jqueryui, options).gsub('<','%3C')}'))")
|
55
55
|
].join("\n").html_safe
|
56
56
|
end
|
57
57
|
end
|
metadata
CHANGED
@@ -1,31 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-rails-cdn-yjchen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kenn Ejima
|
9
8
|
- Yen-Ju Chen
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
|
-
cert_chain:
|
13
|
-
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIDMDCCAhigAwIBAgIBADANBgkqhkiG9w0BAQUFADA+MRAwDgYDVQQDDAd5amNo
|
15
|
+
ZW54MRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
16
|
+
HhcNMTMwMjA3MDEyODI4WhcNMTQwMjA3MDEyODI4WjA+MRAwDgYDVQQDDAd5amNo
|
17
|
+
ZW54MRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
18
|
+
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDfzdtQlNyw5y9701pRrdCM
|
19
|
+
jVWGAMJ7Dyat2mjDVGhMsH/be4j8yn97pa6mymIQUzQaU1KQCw8V+FdV0h4p7HOp
|
20
|
+
zj3/mXF1UlcBL5EtItydy36vdanDHdfGbzIYMpnJsGA5ZNDWrBXWL9iQfkurMecq
|
21
|
+
v/w5r80KIaZkl2xMW8jnt33MXHEBjCASWd1yBMlzf1AOr75d0k2bYsSU+GExxexY
|
22
|
+
hPFzLMRM/VJxqitFbYnlgH5zyqBOcBmG3Hd0VaRi137XjBF4ferj21iX/RV4NIOZ
|
23
|
+
Hz2YbTVz80NJNHOpZDlSNE4vnIANp5fnmwNkAi3PTMxYZC89jWDABbqE783xWZkP
|
24
|
+
AgMBAAGjOTA3MAkGA1UdEwQCMAAwHQYDVR0OBBYEFAUvZi7fEySk49HTErbfMB2K
|
25
|
+
S4igMAsGA1UdDwQEAwIEsDANBgkqhkiG9w0BAQUFAAOCAQEAgUkiFf7KQbGt1lUq
|
26
|
+
jQiV8nol30+dWSIQ0/aTNN1lbgaKXq86Jqp9IIWbQ9oQLHuemXq0Fx7abrdIqJAw
|
27
|
+
QC7UleZtxRfT8pk3TIFOiinGbWlG/iJS85Pv0DWnAT3cl76M/r4M+QHOu38VAOJy
|
28
|
+
6rUHWia/9IzAJZZ8PtOPi0HkTwZIvpS6jLF6jeq2wr+Q8naQZ6S/JnalBe6n7dLS
|
29
|
+
LOEp3WwLafBZ9VtIQk/vgB3QJxor8X4R3IAsVvC2YkGwJ09qFV3WQWWZSSXRJyj5
|
30
|
+
0DwU+KfUta4HWRr+jl+4kYeiUKgamdv2pQ4VaJ83VGC3FIpUk9TULCM3v5iHbDQu
|
31
|
+
oZsWCQ==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2013-05-16 00:00:00.000000000 Z
|
14
34
|
dependencies:
|
15
35
|
- !ruby/object:Gem::Dependency
|
16
36
|
name: jquery-rails
|
17
37
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
38
|
requirements:
|
20
|
-
- -
|
39
|
+
- - '>='
|
21
40
|
- !ruby/object:Gem::Version
|
22
41
|
version: '0'
|
23
42
|
type: :runtime
|
24
43
|
prerelease: false
|
25
44
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
45
|
requirements:
|
28
|
-
- -
|
46
|
+
- - '>='
|
29
47
|
- !ruby/object:Gem::Version
|
30
48
|
version: '0'
|
31
49
|
description: Add CDN support to jquery-rails
|
@@ -47,26 +65,25 @@ files:
|
|
47
65
|
- lib/jquery-rails-cdn/version.rb
|
48
66
|
homepage: https://github.com/yjchen/jquery-rails-cdn
|
49
67
|
licenses: []
|
68
|
+
metadata: {}
|
50
69
|
post_install_message:
|
51
70
|
rdoc_options: []
|
52
71
|
require_paths:
|
53
72
|
- lib
|
54
73
|
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
74
|
requirements:
|
57
|
-
- -
|
75
|
+
- - '>='
|
58
76
|
- !ruby/object:Gem::Version
|
59
77
|
version: '0'
|
60
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
79
|
requirements:
|
63
|
-
- -
|
80
|
+
- - '>='
|
64
81
|
- !ruby/object:Gem::Version
|
65
82
|
version: '0'
|
66
83
|
requirements: []
|
67
84
|
rubyforge_project:
|
68
|
-
rubygems_version:
|
85
|
+
rubygems_version: 2.0.3
|
69
86
|
signing_key:
|
70
|
-
specification_version:
|
87
|
+
specification_version: 4
|
71
88
|
summary: Add CDN support to jquery-rails
|
72
89
|
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|