autoprefixer-rails 10.2.5.0 → 10.2.5.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
  SHA256:
3
- metadata.gz: 5d84581979fe97109b2f49cd26c3a727fe903968e337d448d6e34a53fd4f1050
4
- data.tar.gz: 0c544cf5e9b5bfd6afcfdee2186a8f6b938b380d595f4b41ac0802a63d2f776e
3
+ metadata.gz: 29b8d235ce74ce968864e158f5623304cba4ff368960ba5886c01945791ac44c
4
+ data.tar.gz: e952fe1fe4a672c01c013dc6f8a9a3a74efcd9eb88701a20c9a6c3af546b049a
5
5
  SHA512:
6
- metadata.gz: 6a9f315a28f786b64fc4790ff80361a98ce7f76e1b3a8f0d5327e4d85ba8f363fad3cc13fc08764ab6b97325ec18a5b266e3c64cd2d572e3b0ccc84d0f239c95
7
- data.tar.gz: 9ef63441d8c300f0eb53fe05fc977ed9bf422e625996fa4a810cdaf11abecc50de203322554b6cc16b102ce52a4d5cd5f2604735650f2a50007b1841094d2cee
6
+ metadata.gz: ea458560e38a206504fb705e44efdd11a604297050ff9309c14e903e4729352709deb40d2a0d58ab78276e118d9e7b1f9e838023ea4353e67121d3e3d779f994
7
+ data.tar.gz: 338dafc90945de339a9e04ac0cbc41b6379497e67ad55d264c4977031262c4f4e154fa7ab49fa69517a96272454296cdea7264c9e244581d9e23baa0190b672f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.2.5.1
4
+ * Remvoe nodejs version check via ExecJS, to be compatible with 2.8.1 (#203)
5
+
3
6
  ## 10.2.5.0
4
7
  * Fixed `:` support in `@supports` (by Dmitry Semigradsky).
5
8
  * Update Can I Use data.
@@ -130,25 +130,29 @@ module AutoprefixerRails
130
130
  # Lazy load for JS library
131
131
  def runtime
132
132
  @runtime ||= begin
133
- if ExecJS.runtime == ExecJS::Runtimes::Node
134
- version = ExecJS.runtime.eval("process.version")
135
- major = version.match(/^v(\d+)/)[1].to_i
136
-
137
- # supports 10, 12, 14+
138
- unless [10, 12].include?(major) || major >= 14
139
- raise "Autoprefixer doesn’t support Node #{version}. Update it."
140
- end
141
- end
142
-
143
133
  ExecJS.compile(build_js)
144
134
  rescue ExecJS::RuntimeError
145
- raise if SUPPORTED_RUNTIMES.include?(ExecJS.runtime)
146
-
147
135
  # Only complain about unsupported runtimes when it failed to parse our script.
148
- raise <<~MSG
149
- Your ExecJS runtime #{ExecJS.runtime.name} isn't supported by autoprefixer-rails,
150
- please switch to #{SUPPORTED_RUNTIMES.map(&:name).join(' or ')}
151
- MSG
136
+
137
+ case ExecJS.runtime
138
+ when ExecJS::Runtimes::Node
139
+ node_command = ExecJS.runtime.send(:binary) rescue "Unknown"
140
+
141
+ raise <<~MSG
142
+ Your nodejs binary failed to load autoprefixer script file,
143
+ please check if you're running a supported version (10, 12, 14+)
144
+
145
+ ENV["PATH"] = #{ENV["PATH"]}
146
+ binary = #{node_command}
147
+ MSG
148
+ when *SUPPORTED_RUNTIMES
149
+ raise
150
+ else
151
+ raise <<~MSG
152
+ Your ExecJS runtime #{ExecJS.runtime.name} isn't supported by autoprefixer-rails,
153
+ please switch to #{SUPPORTED_RUNTIMES.map(&:name).join(' or ')}
154
+ MSG
155
+ end
152
156
  end
153
157
  end
154
158
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AutoprefixerRails # :nodoc:
4
- VERSION = "10.2.5.0" unless defined? AutoprefixerRails::VERSION
4
+ VERSION = "10.2.5.1" unless defined? AutoprefixerRails::VERSION
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoprefixer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.2.5.0
4
+ version: 10.2.5.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: 2021-05-11 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "<"
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.8.0
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "<"
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.8.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement