autoprefixer-rails 10.2.5.0 → 10.4.0.0
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 +15 -0
- data/lib/autoprefixer-rails/processor.rb +20 -16
- data/lib/autoprefixer-rails/version.rb +1 -1
- data/vendor/autoprefixer.js +55269 -1515
- 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: 82704a214847321def82a174ca7942428f102095ed4335f9e7821ae49c719155
|
4
|
+
data.tar.gz: de560d46720fe9096d3bd6ba3c650620d6b70a5d61f0452f0ba1548744f175b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d81c0428f310372016d4369a05f059334fbf260ceb3711296c27ce86fdf75595e9788db31ae7a9f080210e330b7ddb9eeabd582853d0bcfd4a03d480dea34591
|
7
|
+
data.tar.gz: a5f8ff7e2389897e2642981b45bba7fe8ea8889aee9eb2258f800e933a1b99c6e65bb0ee9e3e7843eff8a46717b8211d603b9c0b9dae8580388989675b6b1e9c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 10.4.0.0
|
4
|
+
* Added `:autofill` support (by Luke Warlow).
|
5
|
+
|
6
|
+
## 10.3.3.0
|
7
|
+
* Fixed `::file-selector-button` support (by Usman Yunusov).
|
8
|
+
* Fixed wrong `-moz-` prefix from `::file-selector-button` (by Usman Yunusov).
|
9
|
+
|
10
|
+
## 10.3.1.0
|
11
|
+
* Added `::file-selector-button` support (by Luke Warlow).
|
12
|
+
* Fixed adding wrong prefixes to `content` (by Luke Warlow).
|
13
|
+
* Fix `ReferenceError: Can't find variable: URL` (#213)
|
14
|
+
|
15
|
+
## 10.2.5.1
|
16
|
+
* Remove nodejs version check via ExecJS, to be compatible with 2.8.1 (#203)
|
17
|
+
|
3
18
|
## 10.2.5.0
|
4
19
|
* Fixed `:` support in `@supports` (by Dmitry Semigradsky).
|
5
20
|
* 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
|
-
|
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
|
|