autoprefixer-rails 1.0.20131222 → 1.0.20131225

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
  SHA1:
3
- metadata.gz: 36f57c886b90aa181eb51f537a53e5f477420715
4
- data.tar.gz: c40a734d9b74ea9445632dc17d5083277a93309d
3
+ metadata.gz: f76d618865d799601fee42b189801167846dfc56
4
+ data.tar.gz: 140782521051aac1d1909382cda1831b69e734ba
5
5
  SHA512:
6
- metadata.gz: b09841058967a5a008e6b012a7e3edbb311fad6ca843fdce3cc11526364110b776ed862fb03c49d8471944938c62cec9dbb30cf7c0a76d13d0cac8991509e3f5
7
- data.tar.gz: 8a68c8a8a560e78ef187c926fef5ec54eda0d33bebd42787779c7333b453bdfca2f79b7178c1b302c6033114f78aa4a23b247901efa24c95041b52f85d717f94
6
+ metadata.gz: 0210ae5817eaf395ed7c5411f90b4487fa1fb99c5b664d916c74869c1ffaf4184e0b835d7346191444e09940d005a5fec520d24a2c9e535d66af12f58153e037
7
+ data.tar.gz: 56dbc225084c68e139440716f9b53dcee22e4f760a29abc796b2d96cbf6585122b26d7f66d56e62b771117900e5189874ced07699c49990d0eb9832b910b66c7
@@ -2,6 +2,8 @@
2
2
  * Source map support.
3
3
  * Save origin indents and code formatting.
4
4
  * Change CSS parser to PostCSS.
5
+ * Keep vendor hacks, which does right after unprefixed property.
6
+ * Show syntax errors if fixed sass-rails version if used.
5
7
  * Rename compile() to process() and return result object, instead of CSS string.
6
8
  * Rename inspect() to info().
7
9
  * Allow to select last versions for specified browser.
@@ -15,6 +17,11 @@
15
17
  * Don’t prefix values for CSS3 PIE properties.
16
18
  * Use browserify to build standalone version.
17
19
 
20
+ ### 20131225:
21
+
22
+ * Add ::placeholder support for Firefix >= 18.
23
+ * Fix vendor prefixes order.
24
+
18
25
  ## 0.8 “Unbowed, Unbent, Unbroken”
19
26
  * Add more browsers to defaults ("> 1%, last 2 versions, ff 17, opera 12.1"
20
27
  instead of just "last 2 browsers").
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '1.0.20131222'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '1.0.20131225'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -56,7 +56,7 @@
56
56
  module.exports = {
57
57
  "::placeholder": {
58
58
  selector: true,
59
- browsers: ["android 4.4", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "chrome 26", "chrome 27", "chrome 28", "chrome 29", "chrome 30", "chrome 31", "chrome 32", "chrome 33", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ff 16", "ff 17", "ff 18", "ff 19", "ff 20", "ff 21", "ff 22", "ff 23", "ff 24", "ff 25", "ff 26", "ff 27", "ff 28", "ie 10", "ie 11", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "ios 7", "opera 15", "safari 5", "safari 5.1", "safari 6", "safari 6.1", "safari 7"]
59
+ browsers: ["android 4.4", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "chrome 26", "chrome 27", "chrome 28", "chrome 29", "chrome 30", "chrome 31", "chrome 32", "chrome 33", "ff 4 old", "ff 5 old", "ff 6 old", "ff 7 old", "ff 8 old", "ff 9 old", "ff 10 old", "ff 11 old", "ff 12 old", "ff 13 old", "ff 14 old", "ff 15 old", "ff 16 old", "ff 17 old", "ff 18 old", "ff 19", "ff 20", "ff 21", "ff 22", "ff 23", "ff 24", "ff 25", "ff 26", "ff 27", "ff 28", "ie 10", "ie 11", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "ios 7", "opera 15", "safari 5", "safari 5.1", "safari 6", "safari 6.1", "safari 7"]
60
60
  },
61
61
  "::selection": {
62
62
  selector: true,
@@ -419,14 +419,14 @@
419
419
  for (name in options) {
420
420
  value = options[name];
421
421
  if (name === 'file') {
422
- name === 'from';
422
+ name = 'from';
423
423
  }
424
424
  fixed[name] = value;
425
425
  }
426
426
  if (typeof console !== "undefined" && console !== null) {
427
427
  console.warn('autoprefixer: replace compile() to process(). ' + 'Method compile() is deprecated and will be removed in 1.1.');
428
428
  }
429
- return this.process(str, options).css;
429
+ return this.process(str, fixed).css;
430
430
  };
431
431
 
432
432
  Autoprefixer.prototype.postcss = function(css) {
@@ -1918,6 +1918,8 @@
1918
1918
  return '::-webkit-input-placeholder';
1919
1919
  } else if ('-ms-' === prefix) {
1920
1920
  return ':-ms-input-placeholder';
1921
+ } else if ('-moz- old' === prefix) {
1922
+ return ':-moz-placeholder';
1921
1923
  } else {
1922
1924
  return "::" + prefix + "placeholder";
1923
1925
  }
@@ -2326,9 +2328,7 @@
2326
2328
  return prefix;
2327
2329
  }
2328
2330
  });
2329
- add = utils.uniq(add).sort(function(a, b) {
2330
- return b.length - a.length;
2331
- });
2331
+ add = this.sort(utils.uniq(add));
2332
2332
  all = data.browsers.map(function(i) {
2333
2333
  return _this.browsers.prefix(i);
2334
2334
  });
@@ -2351,6 +2351,19 @@
2351
2351
  return selected;
2352
2352
  };
2353
2353
 
2354
+ Prefixes.prototype.sort = function(prefixes) {
2355
+ return prefixes.sort(function(a, b) {
2356
+ var aLength, bLength;
2357
+ aLength = utils.removeNote(a).length;
2358
+ bLength = utils.removeNote(b).length;
2359
+ if (aLength === bLength) {
2360
+ return b.length - a.length;
2361
+ } else {
2362
+ return bLength - aLength;
2363
+ }
2364
+ });
2365
+ };
2366
+
2354
2367
  Prefixes.prototype.preprocess = function(selected) {
2355
2368
  var add, name, old, olds, prefix, prefixed, prefixes, prop, props, remove, selector, value, values, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _len5, _len6, _m, _n, _o, _ref, _ref1, _ref2;
2356
2369
  add = {
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: 1.0.20131222
4
+ version: 1.0.20131225
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey "A.I." Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-22 00:00:00.000000000 Z
11
+ date: 2013-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs