autoprefixer-rails 10.2.5.0 → 10.4.0.0

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: 82704a214847321def82a174ca7942428f102095ed4335f9e7821ae49c719155
4
+ data.tar.gz: de560d46720fe9096d3bd6ba3c650620d6b70a5d61f0452f0ba1548744f175b8
5
5
  SHA512:
6
- metadata.gz: 6a9f315a28f786b64fc4790ff80361a98ce7f76e1b3a8f0d5327e4d85ba8f363fad3cc13fc08764ab6b97325ec18a5b266e3c64cd2d572e3b0ccc84d0f239c95
7
- data.tar.gz: 9ef63441d8c300f0eb53fe05fc977ed9bf422e625996fa4a810cdaf11abecc50de203322554b6cc16b102ce52a4d5cd5f2604735650f2a50007b1841094d2cee
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
- 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.4.0.0" unless defined? AutoprefixerRails::VERSION
5
5
  end