autoprefixer-rails 8.3.0 → 8.3.0.1

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: 47ce62663d25a7623a4385450b0a52f324b622fc18f9407236ba4cc90d3f8b6d
4
- data.tar.gz: 0b4f76c2c3c557908810b94c6d97dbe2e6d3b7213bc525d90bbb24026ec0305e
3
+ metadata.gz: a0af0b07a7dcc70cbb59514a61ddda8d8f9caa24ff7e1a53ab8222f914845346
4
+ data.tar.gz: 4668b6ce6fe1f58986e40207147838e894b3f1d420207c71d93dad01ca967aab
5
5
  SHA512:
6
- metadata.gz: 7c9761ed81b50c27649a6e3d5e3322aec8f378c21f8fc2a7d244ce2ab397763f343b25ccc252cc5cacbb839f9c4a20b9085f35f2dc0dfe12487c13dd49709137
7
- data.tar.gz: 1061349943b8df011d82960cce9799de1b2b04aaf7c9302353b7ceea0235a5cdcbd82276ee69918160c5ef19cbdf11ba56971cb11099cfd70d8f81b76443a760
6
+ metadata.gz: 88aed4d3920fba7d9bcdbabc4434aba8f965b56eb7cae9e86ab80784b9e2be3a3cc95893aa172e553b9a40544eb94f3878f4107d23c7d3a248280135e5dde204
7
+ data.tar.gz: 57a91da45ffe07756ce282897fdd6a05dc6d3457ade09848c317a3ba7fb9c4aecb1e9d1d93c8cdd69da2894528bbaf0f7e061e6e7744febd25140a79b13acab6
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.3.0.1
4
+ * Remove Opera Mobile 12.1 from default browsers.
5
+ * Update Can I Use data.
6
+
3
7
  ## 8.3 “Benigno Numine”
4
8
  * Add `@media` support to `grid-template` (by Evgeny Petukhov).
5
9
  * Fix `radial-gradient` direction warning (by Gustavo Real).
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '8.3.0'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '8.3.0.1'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -9138,51 +9138,64 @@ for (var i = 0, len = code.length; i < len; ++i) {
9138
9138
  revLookup['-'.charCodeAt(0)] = 62;
9139
9139
  revLookup['_'.charCodeAt(0)] = 63;
9140
9140
 
9141
- function placeHoldersCount(b64) {
9141
+ function getLens(b64) {
9142
9142
  var len = b64.length;
9143
+
9143
9144
  if (len % 4 > 0) {
9144
9145
  throw new Error('Invalid string. Length must be a multiple of 4');
9145
9146
  }
9146
9147
 
9147
- // the number of equal signs (place holders)
9148
- // if there are two placeholders, than the two characters before it
9149
- // represent one byte
9150
- // if there is only one, then the three characters before it represent 2 bytes
9151
- // this is just a cheap hack to not do indexOf twice
9152
- return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0;
9148
+ // Trim off extra bytes after placeholder bytes are found
9149
+ // See: https://github.com/beatgammit/base64-js/issues/42
9150
+ var validLen = b64.indexOf('=');
9151
+ if (validLen === -1) validLen = len;
9152
+
9153
+ var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
9154
+
9155
+ return [validLen, placeHoldersLen];
9153
9156
  }
9154
9157
 
9158
+ // base64 is 4/3 + up to two characters of the original data
9155
9159
  function byteLength(b64) {
9156
- // base64 is 4/3 + up to two characters of the original data
9157
- return b64.length * 3 / 4 - placeHoldersCount(b64);
9160
+ var lens = getLens(b64);
9161
+ var validLen = lens[0];
9162
+ var placeHoldersLen = lens[1];
9163
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
9164
+ }
9165
+
9166
+ function _byteLength(b64, validLen, placeHoldersLen) {
9167
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
9158
9168
  }
9159
9169
 
9160
9170
  function toByteArray(b64) {
9161
- var i, l, tmp, placeHolders, arr;
9162
- var len = b64.length;
9163
- placeHolders = placeHoldersCount(b64);
9171
+ var tmp;
9172
+ var lens = getLens(b64);
9173
+ var validLen = lens[0];
9174
+ var placeHoldersLen = lens[1];
9164
9175
 
9165
- arr = new Arr(len * 3 / 4 - placeHolders);
9176
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
9166
9177
 
9167
- // if there are placeholders, only get up to the last complete 4 chars
9168
- l = placeHolders > 0 ? len - 4 : len;
9178
+ var curByte = 0;
9169
9179
 
9170
- var L = 0;
9180
+ // if there are placeholders, only get up to the last complete 4 chars
9181
+ var len = placeHoldersLen > 0 ? validLen - 4 : validLen;
9171
9182
 
9172
- for (i = 0; i < l; i += 4) {
9183
+ for (var i = 0; i < len; i += 4) {
9173
9184
  tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];
9174
- arr[L++] = tmp >> 16 & 0xFF;
9175
- arr[L++] = tmp >> 8 & 0xFF;
9176
- arr[L++] = tmp & 0xFF;
9185
+ arr[curByte++] = tmp >> 16 & 0xFF;
9186
+ arr[curByte++] = tmp >> 8 & 0xFF;
9187
+ arr[curByte++] = tmp & 0xFF;
9177
9188
  }
9178
9189
 
9179
- if (placeHolders === 2) {
9190
+ if (placeHoldersLen === 2) {
9180
9191
  tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;
9181
- arr[L++] = tmp & 0xFF;
9182
- } else if (placeHolders === 1) {
9192
+ arr[curByte++] = tmp & 0xFF;
9193
+ }
9194
+
9195
+ if (placeHoldersLen === 1) {
9183
9196
  tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;
9184
- arr[L++] = tmp >> 8 & 0xFF;
9185
- arr[L++] = tmp & 0xFF;
9197
+ arr[curByte++] = tmp >> 8 & 0xFF;
9198
+ arr[curByte++] = tmp & 0xFF;
9186
9199
  }
9187
9200
 
9188
9201
  return arr;
@@ -9206,7 +9219,6 @@ function fromByteArray(uint8) {
9206
9219
  var tmp;
9207
9220
  var len = uint8.length;
9208
9221
  var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes
9209
- var output = '';
9210
9222
  var parts = [];
9211
9223
  var maxChunkLength = 16383; // must be multiple of 3
9212
9224
 
@@ -9218,19 +9230,12 @@ function fromByteArray(uint8) {
9218
9230
  // pad the end with zeros, but make sure to not forget the extra bytes
9219
9231
  if (extraBytes === 1) {
9220
9232
  tmp = uint8[len - 1];
9221
- output += lookup[tmp >> 2];
9222
- output += lookup[tmp << 4 & 0x3F];
9223
- output += '==';
9233
+ parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '==');
9224
9234
  } else if (extraBytes === 2) {
9225
9235
  tmp = (uint8[len - 2] << 8) + uint8[len - 1];
9226
- output += lookup[tmp >> 10];
9227
- output += lookup[tmp >> 4 & 0x3F];
9228
- output += lookup[tmp << 2 & 0x3F];
9229
- output += '=';
9236
+ parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '=');
9230
9237
  }
9231
9238
 
9232
- parts.push(output);
9233
-
9234
9239
  return parts.join('');
9235
9240
  }
9236
9241
 
@@ -9433,7 +9438,7 @@ function resolve(queries, context) {
9433
9438
  var array = type.select.apply(browserslist, args);
9434
9439
  if (isExclude) {
9435
9440
  array = array.concat(array.map(function (j) {
9436
- return j.replace(/\s\d+/, ' 0');
9441
+ return j.replace(/\s[^\s]+/, ' 0');
9437
9442
  }));
9438
9443
  return result.filter(function (j) {
9439
9444
  return array.indexOf(j) === -1;
@@ -9617,7 +9622,7 @@ browserslist.coverage = function (browsers, stats) {
9617
9622
  return browsers.reduce(function (all, i) {
9618
9623
  var usage = data[i];
9619
9624
  if (usage === undefined) {
9620
- usage = data[i.replace(/ [\d.]+$/, ' 0')];
9625
+ usage = data[i.replace(/ [^\s]+$/, ' 0')];
9621
9626
  }
9622
9627
  return all + (usage || 0);
9623
9628
  }, 0);
@@ -9961,7 +9966,7 @@ var QUERIES = [{
9961
9966
  }, {
9962
9967
  regexp: /^dead$/i,
9963
9968
  select: function select() {
9964
- return ['ie 10', 'ie_mob 10', 'bb 10', 'bb 7'];
9969
+ return ['ie 10', 'ie_mob 10', 'bb 10', 'bb 7', 'op_mob 12.1'];
9965
9970
  }
9966
9971
  }, {
9967
9972
  regexp: /^(\w+)$/i,
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: 8.3.0
4
+ version: 8.3.0.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: 2018-04-15 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs