autoprefixer-rails 5.0.0.2 → 5.0.0.3

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: feee225c2e1053f64cf81cebf941b70c9a7ab190
4
- data.tar.gz: 470e22e1ab9e1911cb5b714f58b321e4d2a56705
3
+ metadata.gz: 1dec27b86cdcae6838de5f151551a9eb68b4db4a
4
+ data.tar.gz: ae7fc8afeb1737bcff4288fc2f8751262099b1d3
5
5
  SHA512:
6
- metadata.gz: c13424266982d40eb3d9523cf3a3e90ed99b16e3ff4a12f5ecb8a9d5bd37d205b8577ede3e360cd2348e2ed93a687930305acbee1ebb4f41e190e30315fc751d
7
- data.tar.gz: e7822d903f0801de0e085d9142fb27b928f862d8777b8403f513c3a4e2c267c9b3ff24430d84d9399d918581709ad2b65725ecf7f24e7b30d343a32a0dacb060
6
+ metadata.gz: 059e9baa2911b2a761e531d679a83add7942c28bdbbe03b2e4ed4f5297149b80eb81c03a489d7bfc8109d286c9df21c2c200cd6db1a9189e7a137a12570cf181
7
+ data.tar.gz: 37b2f5d7544f865e5fa1aa6f50344e12d28cd304a2946a0c840fb95e7a61aac348291ed0e5db01251b0519bf019b3806080444445f8255f1b382ba2f9b955885
@@ -1,3 +1,6 @@
1
+ ## 5.0.0.3
2
+ * Fix error on `nil` in processor params.
3
+
1
4
  ## 5.0.0.2
2
5
  * Fix for non-Rails environments.
3
6
  * Add notice about unsupported ExecJS runtimes.
data/Gemfile CHANGED
@@ -12,3 +12,5 @@ gem 'therubyracer', platforms: ['mri', 'rbx']
12
12
 
13
13
  gem 'racc', platforms: 'rbx'
14
14
  gem 'rubysl', platforms: 'rbx'
15
+
16
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :jruby]
@@ -12,3 +12,5 @@ gem 'therubyracer', platforms: ['mri', 'rbx']
12
12
 
13
13
  gem 'racc', platforms: 'rbx'
14
14
  gem 'rubysl', platforms: 'rbx'
15
+
16
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :jruby]
@@ -4,8 +4,8 @@ module AutoprefixerRails
4
4
  autoload :Sprockets, 'autoprefixer-rails/sprockets'
5
5
 
6
6
  # Add prefixes to `css`. See `Processor#process` for options.
7
- def self.process(css, opts = {})
8
- params = {}
7
+ def self.process(css, opts = { })
8
+ params = { }
9
9
  params[:browsers] = opts.delete(:browsers) if opts.has_key?(:browsers)
10
10
  params[:cascade] = opts.delete(:cascade) if opts.has_key?(:cascade)
11
11
  params[:remove] = opts.delete(:remove) if opts.has_key?(:remove)
@@ -14,14 +14,13 @@ module AutoprefixerRails
14
14
 
15
15
  # Add Autoprefixer for Sprockets environment in `assets`.
16
16
  # You can specify `browsers` actual in your project.
17
- def self.install(assets, params = {}, opts = {})
17
+ def self.install(assets, params = { }, opts = { })
18
18
  Sprockets.new( processor(params) ).install(assets, opts)
19
19
  end
20
20
 
21
21
  # Cache processor instances
22
- def self.processor(params = {})
23
- @cache ||= {}
24
- @cache[params.hash.to_s] ||= Processor.new(params)
22
+ def self.processor(params = { })
23
+ Processor.new(params)
25
24
  end
26
25
  end
27
26
 
@@ -6,8 +6,8 @@ module AutoprefixerRails
6
6
  # Ruby to JS wrapper for Autoprefixer processor instance
7
7
  class Processor
8
8
 
9
- def initialize(params = {})
10
- @params = params
9
+ def initialize(params = { })
10
+ @params = params || { }
11
11
  end
12
12
 
13
13
  # Process `css` and return result.
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '5.0.0.2'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '5.0.0.3'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -1,2 +1,3 @@
1
+ require 'tzinfo'
1
2
  require File.expand_path('../application', __FILE__)
2
3
  App::Application.initialize!
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.0.0.2
4
+ version: 5.0.0.3
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-01-22 00:00:00.000000000 Z
11
+ date: 2015-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs