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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3cc6c147b9d0b325b94df848ddd32e26bd0e686
4
- data.tar.gz: c40cb299fd482f4ff745470e2589ebb5831aec5e
3
+ metadata.gz: 99eeecf7a8bf8980bc161e0fc55c460b6061e9f7
4
+ data.tar.gz: a53d9f553e6ca1e065b49bb3980930b7e4c5c8b0
5
5
  SHA512:
6
- metadata.gz: 5cec9ac7074027a29da0db745016b5eed8a64b16353008e33e744eae94de26fbf1d4bc80c218fbbd5628a10cac403fcd209536fc528019b0c13ebec7b0d509bc
7
- data.tar.gz: 2de2147295a721012de3e25aa8faeed88e074535d6fd3c7a420e93c28e19865c72be860c830016a50baa0d3c0c4d291992718ca8afe0a7249ba40c947eae2b2c
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 add this line to your `config/environments/production.rb` to compile as a standalone javascript file
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 dual-licensed under the [BSD and MIT licenses](http://www.modernizr.com/license/).
53
+ Modernizr is available under the [MIT licenses](http://www.modernizr.com/license/).
58
54
 
59
55
  Other parts of gem use MIT license.
@@ -2,10 +2,13 @@ require 'modernizr-rails/version'
2
2
 
3
3
  module Modernizr
4
4
  module Rails
5
- if ::Rails.version < '3.1'
6
- require 'modernizr-rails/railtie'
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
@@ -1,6 +1,9 @@
1
1
  module Modernizr
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
+ config.assets.precompile += %w(
5
+ modernizr.js
6
+ )
4
7
  end
5
8
  end
6
9
  end
@@ -0,0 +1,11 @@
1
+ module Modernizr
2
+ module Rails
3
+ class Engine3 < ::Rails::Engine
4
+ initializer "modernizr.assets.precompile" do |app|
5
+ app.config.assets.precompile += %w(
6
+ modernizr.js
7
+ )
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,6 +1,6 @@
1
1
  module Modernizr
2
2
  module Rails
3
- VERSION = '2.6.2'
3
+ VERSION = '2.6.2.1'
4
4
  MODERNIZR_VERSION = '2.6.2'
5
5
  end
6
6
  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-04 00:00:00.000000000 Z
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