autoprefixer-rails 9.4.1 → 9.4.2

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: 623a8e4afd988b2a162e8c5dfe8de045ceedb9da196c0b51a10533dd34a635e7
4
- data.tar.gz: 1425ddb2487997540e7809e33adc0d19beef8c892830bb9e61cd336e9a0532b5
3
+ metadata.gz: 6d185bfe985dab78e724069e845ec0c74f19098b4a603a7068a0df08d73c8e41
4
+ data.tar.gz: 5bc4c3569da641eb686a3a2ab2a9393a3889bf416c039afbb1a7a111352bba8f
5
5
  SHA512:
6
- metadata.gz: 767912fc5d5fad9470ede08ba69d2d2168b0644bf330e03bea46b7a7fc6e65fe6b88f214be41f4f5266c3a1d735aab9de94fb39a424118b539a8a696ff2f2a68
7
- data.tar.gz: 2b7ddc8f64183663574db3ee5b642331513463faf458bb0ebdf516cb43b6784b2eb148fa7312136ad93f8b6596e404647ca95ffb04dd9e54b46a57377c8a3063
6
+ metadata.gz: fcf5b973ac8273252f4002de29aa06efcfedf9abe8d68b793988584078daaf35042de21e7936439712d7adb44a88d6c2543160b38b1a5af84a778e3b329c5711
7
+ data.tar.gz: f6701770e9265c82d5e15848e74b20613ef993d26e510cbd9e147e4ee9bcac9b0a177804bb8050c8bdc8f6ace6fb885517713866ac26e4269eec0d5b1d16cf34
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.4.2
4
+ * Fix Grid autoplacment warning.
5
+
3
6
  ## 9.4.1
4
7
  * Fix unnecessary Flexbox prefixes in Grid elements.
5
8
 
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '9.4.1'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '9.4.2'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -4950,42 +4950,41 @@ function (_Declaration) {
4950
4950
  if (autoflow && !processor.disabled(autoflow, result)) {
4951
4951
  autoflowValue = autoflow.value.trim();
4952
4952
  }
4953
- /**
4954
- * Show warning if grid-template-rows decl is not found
4955
- */
4956
4953
 
4954
+ if (status === 'autoplace') {
4955
+ /**
4956
+ * Show warning if grid-template-rows decl is not found
4957
+ */
4958
+ var rowDecl = parent.nodes.find(function (i) {
4959
+ return i.prop === 'grid-template-rows';
4960
+ });
4957
4961
 
4958
- var rowDecl = parent.nodes.find(function (i) {
4959
- return i.prop === 'grid-template-rows';
4960
- });
4961
-
4962
- if (!rowDecl && hasGridTemplate) {
4963
- return undefined;
4964
- } else if (!rowDecl && !hasGridTemplate) {
4965
- decl.warn(result, "Autoplacement does not work without grid-template-rows property");
4966
- return undefined;
4967
- }
4968
- /**
4969
- * Show warning if grid-template-columns decl is not found
4970
- */
4971
-
4962
+ if (!rowDecl && hasGridTemplate) {
4963
+ return undefined;
4964
+ } else if (!rowDecl && !hasGridTemplate) {
4965
+ decl.warn(result, "Autoplacement does not work without grid-template-rows property");
4966
+ return undefined;
4967
+ }
4968
+ /**
4969
+ * Show warning if grid-template-columns decl is not found
4970
+ */
4972
4971
 
4973
- var columnDecl = parent.nodes.find(function (i) {
4974
- return i.prop === 'grid-template-columns';
4975
- });
4976
4972
 
4977
- if (!columnDecl && !hasGridTemplate) {
4978
- decl.warn(result, "Autoplacement does not work without grid-template-columns property");
4979
- }
4980
- /**
4981
- * Autoplace grid items
4982
- */
4973
+ var columnDecl = parent.nodes.find(function (i) {
4974
+ return i.prop === 'grid-template-columns';
4975
+ });
4983
4976
 
4977
+ if (!columnDecl && !hasGridTemplate) {
4978
+ decl.warn(result, "Autoplacement does not work without grid-template-columns property");
4979
+ }
4980
+ /**
4981
+ * Autoplace grid items
4982
+ */
4984
4983
 
4985
- var autoplaceEnabled = status === 'autoplace';
4986
4984
 
4987
- if (isColumnProp && !hasGridTemplate && autoplaceEnabled) {
4988
- autoplaceGridItems(decl, result, gap, autoflowValue);
4985
+ if (isColumnProp && !hasGridTemplate) {
4986
+ autoplaceGridItems(decl, result, gap, autoflowValue);
4987
+ }
4989
4988
  }
4990
4989
 
4991
4990
  return undefined;
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: 9.4.1
4
+ version: 9.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-04 00:00:00.000000000 Z
11
+ date: 2018-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs