autoprefixer-rails 5.0.0 → 5.0.0.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: d5cf40a3ec3b633eb0321cd32f5468272b7c89ec
4
- data.tar.gz: e9e8db11e60c70d865d0a2aaf9a0f72aebe66c3a
3
+ metadata.gz: 3d8f87c43c9e909e0fe7e274849bc018c329b90d
4
+ data.tar.gz: 9dac917e2dfae8db7adc575ba006ec7d00bd626d
5
5
  SHA512:
6
- metadata.gz: e69254971948661bcc9ff28d27db45ba6a60e60f37639d616473cc9c8c49882fcad9e38c6cc744192b8b8ed3fe0abe10ef2fa4738f6239bcde2587362e1e5ffc
7
- data.tar.gz: a2689e4e4e3682493b4dbbbf044646b87acd67de7e263023031f155cf419965628404c50397ace8fdd79bb9d3d388c7b49367cb869cdea6bfdf8d19e17ea7e8f
6
+ metadata.gz: ba78d79b9295a599dd1f1f7e9aff6f0c1a3b64b9213b66ac4a682509c70a82670ab23b5e21c4cba92d791bca7b00ae8cc7b8a0aed64ffa6e4438073b9fc3a531
7
+ data.tar.gz: 6646313e0c877cbeb550ca0ce4560836e868e3ccc897a438aa8be5fe26a28ede6576266d991bcd6c7d91969614bc7771c7ee492911bcab2ce78f3107b8eba9c0
@@ -7,6 +7,10 @@ rvm:
7
7
  - 2.2
8
8
  - jruby-19mode
9
9
 
10
+ env:
11
+ - EXECJS_RUNTIME=Node
12
+ - EXECJS_RUNTIME= # Rubyracer or rubyrhino depending on platform
13
+
10
14
  gemfile:
11
15
  - Gemfile
12
16
  - Gemfile.rails3
@@ -1,3 +1,6 @@
1
+ ## 5.0.0.1
2
+ * Fix issue on node.js runtime.
3
+
1
4
  ## 5.0 “Pravda vítězí”
2
5
  * Use PostCSS 4.0.
3
6
  * Use Browserslist to parse browsers queries.
@@ -17,8 +17,9 @@ module AutoprefixerRails
17
17
  def process(css, opts = {})
18
18
  opts = convert_options(opts)
19
19
 
20
- runtime.eval("processor = autoprefixer(#{ js_params(opts[:from]) })");
21
- result = runtime.call('process', css, opts)
20
+ result = runtime.exec(
21
+ "processor = autoprefixer(#{ js_params(opts[:from]) });" +
22
+ "return eval(process.apply(this, #{::JSON.generate([css,opts])}));")
22
23
 
23
24
  Result.new(result['css'], result['map'])
24
25
  end
@@ -106,7 +107,7 @@ module AutoprefixerRails
106
107
  # Return JS code for process method proxy
107
108
  def process_proxy
108
109
  <<-JS
109
- var processor;
110
+ var processor;
110
111
  var process = function() {
111
112
  var result = processor.process.apply(processor, arguments);
112
113
  var map = result.map ? result.map.toString() : null;
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '5.0.0'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '5.0.0.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.0.0
4
+ version: 5.0.0.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-01-14 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs