autoprefixer-rails 5.1.3 → 5.1.3.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: 6512e59d054842f47c797b32f89f7e20ed1db95e
4
- data.tar.gz: 23267ec6d8520c43384eef950e2ef5b7e507bf29
3
+ metadata.gz: 9c2a75b850fee32edb481670550574834e587462
4
+ data.tar.gz: 26f151f28e3be510839af2d290c5cff33c01eea9
5
5
  SHA512:
6
- metadata.gz: 8d9b189bde247fd47ccb9935dd7029afef9e173fc94c776f94e2be047b85830729bf72ec236809ad15f0ae40195b4240dcf054db3fbed59ac76a8d33ac966376
7
- data.tar.gz: fd8d7b5440a18ec1aaa9016fd0559c381c25d2d907810176805fd97dd7edabe190939a53689988d51d88cf1baaed7c266832792e537d0001b1bef0187b019644
6
+ metadata.gz: 40deb9516a021d9c8d2ac762f8d52c5ed3745392accdb32347e5d2fe51e2e39082c8754d9e90d2833de15f0165698fcd5e54ff9d75e21ac57e7e9c5cb7782cb9
7
+ data.tar.gz: b1af2a6d89295472b3211324dce5e7c71f1625283bb0e682e38e7a29b54e7ea4d0a8fdbd8d4b297a070e1904eab65d2310fd305dda8caebaea43f90086ba1113
data/ChangeLog.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 5.1.3.1
2
+ * Fix Rails 5 support (by Joshua Peek).
3
+
1
4
  # 5.1.3
2
5
  * Add IE support for `image-rendering: crisp-edges`.
3
6
 
data/Gemfile CHANGED
@@ -7,6 +7,8 @@ gem 'compass'
7
7
  gem 'sass-rails'
8
8
  gem 'rspec-rails'
9
9
 
10
+ gem 'sprockets', '>= 3.0.0.beta.6'
11
+
10
12
  gem 'therubyrhino', platforms: 'jruby'
11
13
  gem 'therubyracer', platforms: ['mri', 'rbx']
12
14
 
@@ -1,3 +1,5 @@
1
+ require 'yaml'
2
+
1
3
  begin
2
4
  require 'sprockets/railtie'
3
5
 
@@ -5,17 +7,23 @@ begin
5
7
  class Railtie < ::Rails::Railtie
6
8
  rake_tasks do |app|
7
9
  require 'rake/autoprefixer_tasks'
8
- Rake::AutoprefixerTasks.new( config(app)[0] )
10
+ Rake::AutoprefixerTasks.new( config(app.root)[0] )
9
11
  end
10
12
 
11
- initializer :setup_autoprefixer, group: :all do |app|
12
- AutoprefixerRails.install(app.assets, *config(app))
13
+ if config.respond_to?(:assets)
14
+ config.assets.configure do |env|
15
+ AutoprefixerRails.install(env, *config(env.root))
16
+ end
17
+ else
18
+ initializer :setup_autoprefixer, group: :all do |app|
19
+ AutoprefixerRails.install(app.assets, *config(app.root))
20
+ end
13
21
  end
14
22
 
15
23
  # Read browsers requirements from application config
16
- def config(app)
17
- file = app.root.join('config/autoprefixer.yml')
18
- params = file.exist? ? YAML.load_file(file).symbolize_keys : { }
24
+ def config(root)
25
+ file = File.join(root, 'config/autoprefixer.yml')
26
+ params = File.exist?(file) ? ::YAML.load_file(file).symbolize_keys : { }
19
27
 
20
28
  opts = { }
21
29
  opts[:safe] = true if params.delete(:safe)
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '5.1.3'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '5.1.3.1'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoprefixer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.3
4
+ version: 5.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-03 00:00:00.000000000 Z
11
+ date: 2015-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs