autoprefixer-rails 10.2.5.0 → 10.2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/autoprefixer-rails/processor.rb +20 -16
- data/lib/autoprefixer-rails/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b8d235ce74ce968864e158f5623304cba4ff368960ba5886c01945791ac44c
|
4
|
+
data.tar.gz: e952fe1fe4a672c01c013dc6f8a9a3a74efcd9eb88701a20c9a6c3af546b049a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea458560e38a206504fb705e44efdd11a604297050ff9309c14e903e4729352709deb40d2a0d58ab78276e118d9e7b1f9e838023ea4353e67121d3e3d779f994
|
7
|
+
data.tar.gz: 338dafc90945de339a9e04ac0cbc41b6379497e67ad55d264c4977031262c4f4e154fa7ab49fa69517a96272454296cdea7264c9e244581d9e23baa0190b672f
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
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
|
|
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.
|
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
|
+
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:
|
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:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|