modernizr_rails 2.6.2 → 2.6.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -6
- data/lib/modernizr-rails.rb +6 -3
- data/lib/modernizr-rails/engine.rb +3 -0
- data/lib/modernizr-rails/engine3.rb +11 -0
- data/lib/modernizr-rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99eeecf7a8bf8980bc161e0fc55c460b6061e9f7
|
4
|
+
data.tar.gz: a53d9f553e6ca1e065b49bb3980930b7e4c5c8b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb4089d52aade2e99a913c84070713edfc4db8b14aad64cc9c160763be22f824fbff78d467ba6f8b8ce5b08b35d39ac777993127642f41a0ef67612896d96d91
|
7
|
+
data.tar.gz: 1e06b4b812c90643675a1e680c34b59b79332260a147d7d3ddc36cbd30881772074c636e124858f5acee522f18b6b54d13fb974048e491b4aa03812a349cd894
|
data/README.md
CHANGED
@@ -24,11 +24,7 @@ Add this line to your `app/assets/stylesheets/application.js` to compile as a pa
|
|
24
24
|
|
25
25
|
//= require modernizr
|
26
26
|
|
27
|
-
Or
|
28
|
-
|
29
|
-
config.assets.precompile += %w( modernizr.js )
|
30
|
-
|
31
|
-
And include it in your layout like `app/views/layouts/application.html.erb`
|
27
|
+
Or use the precompiled standalone javascript file by include it in your layout, like `app/views/layouts/application.html.erb`
|
32
28
|
|
33
29
|
<%= javascript_include_tag 'modernizr' %>
|
34
30
|
|
@@ -54,6 +50,6 @@ Publish gem.
|
|
54
50
|
|
55
51
|
## License
|
56
52
|
|
57
|
-
Modernizr is
|
53
|
+
Modernizr is available under the [MIT licenses](http://www.modernizr.com/license/).
|
58
54
|
|
59
55
|
Other parts of gem use MIT license.
|
data/lib/modernizr-rails.rb
CHANGED
@@ -2,10 +2,13 @@ require 'modernizr-rails/version'
|
|
2
2
|
|
3
3
|
module Modernizr
|
4
4
|
module Rails
|
5
|
-
|
6
|
-
|
7
|
-
else
|
5
|
+
case ::Rails.version.to_s
|
6
|
+
when /^4/
|
8
7
|
require 'modernizr-rails/engine'
|
8
|
+
when /^3\.[12]/
|
9
|
+
require 'modernizr-rails/engine3'
|
10
|
+
when /^3\.[0]/
|
11
|
+
require 'modernizr-rails/railtie'
|
9
12
|
end
|
10
13
|
end
|
11
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modernizr_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.2
|
4
|
+
version: 2.6.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tse-Ching Ho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- Rakefile
|
55
55
|
- lib/modernizr-rails.rb
|
56
56
|
- lib/modernizr-rails/engine.rb
|
57
|
+
- lib/modernizr-rails/engine3.rb
|
57
58
|
- lib/modernizr-rails/railtie.rb
|
58
59
|
- lib/modernizr-rails/source_file.rb
|
59
60
|
- lib/modernizr-rails/version.rb
|