autoprefixer-rails 9.4.8 → 9.4.9

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: 391e0d51af9f5b7329180f64924e671c0988ac75a183029fa8d82f31c465f386
4
- data.tar.gz: 4029de465480eb8039a271f97210afed60f564e907d126cc5a79065d177e9da0
3
+ metadata.gz: f4343779e6195d34e023b762f22b4b6c0f6205438b149393ce955395c5b6334c
4
+ data.tar.gz: b166fd463cc2f70c0bfcc50d712bae90e03fae04b6e24fb494e4f554ce88c4bb
5
5
  SHA512:
6
- metadata.gz: d0ff0ef5d501b899948028291cff1a8a99fd97205cec2ddf77b705cdce356ff209fc2842a4b5ffdbdb9c5427e0230463264cc3e07ebe90225fa32e536481c400
7
- data.tar.gz: da5d66e4dc292111ae79dda85f52d647110fd7c17a839b58d801fda992761fa806787268ea69a50edd20b2d9f79daf020f517601838b16d0bcf14c0e06db1943
6
+ metadata.gz: b336e54e411100d14707c4c50268f91a436ea98dd711a714dc7671e370518cdae8ab013674d3505ac44f1858185d9e14a65c73370e28c36cdd344dd1438ba62e
7
+ data.tar.gz: 063bbb505871bb844d19b064f0ad56d493f96530c1a08256c4dc6bf4f82fd8332e4885175f1d64f72e0b65bb309272f02a1bcc3203d8d8206687271867a6c775
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.4.9
4
+ * Fix `grid-template` and `@media` case (by Bogdan Dolin).
5
+
3
6
  ## 9.4.8
4
7
  * Fix `calc()` support in Grid gap.
5
8
 
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '9.4.8'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '9.4.9'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -5892,8 +5892,9 @@ function insertAreas(css, isDisabled) {
5892
5892
 
5893
5893
  if (!rulesToInsert[lastArea]) {
5894
5894
  rulesToInsert[lastArea] = {};
5895
- } // walk through every grid-template rule data
5895
+ }
5896
5896
 
5897
+ var lastRuleIsSet = false; // walk through every grid-template rule data
5897
5898
 
5898
5899
  for (var _iterator2 = data.rules, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
5899
5900
  var _ref9;
@@ -5937,6 +5938,7 @@ function insertAreas(css, isDisabled) {
5937
5938
  }));
5938
5939
  });
5939
5940
  rulesToInsert[lastArea].lastRule = gridAreaRule;
5941
+ lastRuleIsSet = true;
5940
5942
  } else if (rule.hasDuplicates && !rule.params && !selectorIsComplex) {
5941
5943
  (function () {
5942
5944
  // grid-template has duplicates and not inside media rule
@@ -5956,10 +5958,11 @@ function insertAreas(css, isDisabled) {
5956
5958
  }
5957
5959
 
5958
5960
  rulesToInsert[lastArea].lastRule = cloned;
5961
+ lastRuleIsSet = true;
5959
5962
  })();
5960
5963
  } else if (rule.hasDuplicates && !rule.params && selectorIsComplex && gridAreaRule.selector.includes(rule.selectors[0])) {
5961
5964
  // grid-template has duplicates and not inside media rule
5962
- // see the bottom of grid-template-areas test case for example
5965
+ // and the selector is complex
5963
5966
  gridAreaRule.walkDecls(/-ms-grid-(row|column)/, function (d) {
5964
5967
  return d.remove();
5965
5968
  });
@@ -5999,9 +6002,11 @@ function insertAreas(css, isDisabled) {
5999
6002
  } else {
6000
6003
  // store the rule to insert later
6001
6004
  rulesToInsert[lastArea][rule.params].push(cloned);
6002
- }
6005
+ } // set new rule as last rule ONLY if we didn't set lastRule for
6006
+ // this grid-area before
6003
6007
 
6004
- if (gridAreaMedia) {
6008
+
6009
+ if (!lastRuleIsSet) {
6005
6010
  rulesToInsert[lastArea].lastRule = gridAreaMedia || gridAreaRule;
6006
6011
  }
6007
6012
  })();
@@ -12363,6 +12368,7 @@ var QUERIES = [{
12363
12368
  module.exports = browserslist;
12364
12369
 
12365
12370
  },{"./error":75,"./node":74,"caniuse-lite/dist/unpacker/agents":587,"electron-to-chromium/versions":594,"node-releases/data/processed/envs.json":596,"node-releases/data/release-schedule/release-schedule.json":597,"path":73}],77:[function(require,module,exports){
12371
+ (function (Buffer){
12366
12372
  /*!
12367
12373
  * The buffer module from node.js, for the browser.
12368
12374
  *
@@ -14163,7 +14169,8 @@ function numberIsNaN(obj) {
14163
14169
  return obj !== obj; // eslint-disable-line no-self-compare
14164
14170
  }
14165
14171
 
14166
- },{"base64-js":72,"ieee754":595}],78:[function(require,module,exports){
14172
+ }).call(this,require("buffer").Buffer)
14173
+ },{"base64-js":72,"buffer":77,"ieee754":595}],78:[function(require,module,exports){
14167
14174
  "use strict";
14168
14175
 
14169
14176
  module.exports = {
@@ -17161,7 +17168,7 @@ module.exports = {
17161
17168
  "2": "IB"
17162
17169
  },
17163
17170
  M: {
17164
- "2": "2"
17171
+ "578": "2"
17165
17172
  },
17166
17173
  N: {
17167
17174
  "2": "A B"
@@ -29532,8 +29539,8 @@ module.exports = {
29532
29539
  "2": "1 F N K D G E A B C d J M H I O P Q R"
29533
29540
  },
29534
29541
  E: {
29535
- "1": "4 K A B C RB UB VB p YB",
29536
- "2": "F N PB HB",
29542
+ "1": "K A B C RB UB VB p",
29543
+ "2": "4 F N PB HB YB",
29537
29544
  "1028": "D G E SB TB"
29538
29545
  },
29539
29546
  F: {
@@ -29541,8 +29548,8 @@ module.exports = {
29541
29548
  "2": "E B ZB aB bB cB p BB eB"
29542
29549
  },
29543
29550
  G: {
29544
- "1": "lB mB nB oB pB qB rB sB",
29545
- "2": "HB fB FB hB JB",
29551
+ "1": "lB mB nB oB pB qB rB",
29552
+ "2": "HB fB FB hB JB sB",
29546
29553
  "1028": "G jB kB"
29547
29554
  },
29548
29555
  H: {
@@ -45941,16 +45948,18 @@ module.exports = {
45941
45948
  "2": "0 2 3 6 7 8 9 u v w x y z GB AB CB DB QB iB KB IB LB MB NB OB"
45942
45949
  },
45943
45950
  E: {
45944
- "1": "4 G E A B C UB VB p YB",
45945
- "2": "F N K D PB HB RB SB TB"
45951
+ "1": "G E A B C UB VB p",
45952
+ "2": "F N K D PB HB RB SB TB",
45953
+ "129": "4 YB"
45946
45954
  },
45947
45955
  F: {
45948
45956
  "1": "4 5 J M H I O P Q R S T U V W X Y Z a b c e f g h i l n",
45949
45957
  "2": "0 E B C j k m o L q r s t u v w x y z ZB aB bB cB p BB eB"
45950
45958
  },
45951
45959
  G: {
45952
- "1": "G kB lB mB nB oB pB qB rB sB",
45953
- "2": "HB fB FB hB JB jB"
45960
+ "1": "G kB lB mB nB oB pB qB rB",
45961
+ "2": "HB fB FB hB JB jB",
45962
+ "257": "sB"
45954
45963
  },
45955
45964
  H: {
45956
45965
  "2": "tB"
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.8
4
+ version: 9.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-19 00:00:00.000000000 Z
11
+ date: 2019-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs