autoprefixer-rails 0.6.20130730 → 0.6.20130731

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -22,6 +22,9 @@
22
22
  * Fix correct clone comments inside keyframes (by Alexey Plutalov).
23
23
  * Fix angle recalculation in gradients (by Roman Komarov).
24
24
 
25
+ 20130731:
26
+ * Add border-image support.
27
+
25
28
  == 0.5 (Ours is the Fury)
26
29
  * Rewrite Autoprefixer to be more flexible.
27
30
  * Use css, instead of Rework, to fix CSS parsing errors faster.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autoprefixer-rails (0.6.20130730)
4
+ autoprefixer-rails (0.6.20130731)
5
5
  execjs
6
6
 
7
7
  GEM
@@ -69,7 +69,7 @@ GEM
69
69
  rspec-core (2.14.4)
70
70
  rspec-expectations (2.14.0)
71
71
  diff-lcs (>= 1.1.3, < 2.0)
72
- rspec-mocks (2.14.1)
72
+ rspec-mocks (2.14.2)
73
73
  rspec-rails (2.14.0)
74
74
  actionpack (>= 3.0)
75
75
  activesupport (>= 3.0)
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '0.6.20130730'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '0.6.20130731'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -1164,6 +1164,9 @@ require.register("autoprefixer/data/prefixes.js", function(exports, require, mod
1164
1164
  browsers: ["ff 2", "ff 3", "ff 3.5", "ff 3.6", "chrome 4", "safari 4", "safari 3.1", "safari 3.2", "ios 3.2", "android 2.1"],
1165
1165
  transition: true
1166
1166
  },
1167
+ "border-image": {
1168
+ browsers: ["ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 3.5", "ff 3.6", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "safari 4", "safari 5", "safari 3.1", "safari 3.2", "safari 5.1", "opera 11", "opera 12", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12.1", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "android 3", "android 4", "android 2.1", "android 2.2", "android 2.3", "android 4.1", "android 4.2", "bb 7"]
1169
+ },
1167
1170
  "border-radius": {
1168
1171
  browsers: ["ff 2", "ff 3", "ff 3.5", "ff 3.6", "chrome 4", "safari 4", "safari 3.1", "safari 3.2", "ios 3.2", "android 2.1"],
1169
1172
  transition: true
@@ -1276,7 +1279,7 @@ require.register("autoprefixer/data/prefixes.js", function(exports, require, mod
1276
1279
  browsers: ["ie 10", "ff 2", "ff 3", "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 3.5", "ff 3.6", "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", "safari 4", "safari 5", "safari 6", "safari 7", "safari 3.1", "safari 3.2", "safari 5.1", "opera 15", "opera 16", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "ios 7", "android 3", "android 4", "android 2.1", "android 2.2", "android 2.3", "android 4.1", "android 4.2", "bb 7", "bb 10"]
1277
1280
  },
1278
1281
  "linear-gradient": {
1279
- props: ["background", "background-image"],
1282
+ props: ["background", "background-image", "border-image"],
1280
1283
  browsers: ["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 3.6", "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", "safari 4", "safari 5", "safari 6", "safari 5.1", "opera 12", "opera 11.1", "opera 11.5", "opera 11.6", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "ios 7", "android 3", "android 4", "android 2.1", "android 2.2", "android 2.3", "android 4.1", "android 4.2", "bb 7", "bb 10"]
1281
1284
  },
1282
1285
  order: {
@@ -1291,15 +1294,15 @@ require.register("autoprefixer/data/prefixes.js", function(exports, require, mod
1291
1294
  transition: true
1292
1295
  },
1293
1296
  "radial-gradient": {
1294
- props: ["background", "background-image"],
1297
+ props: ["background", "background-image", "border-image"],
1295
1298
  browsers: ["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 3.6", "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", "safari 4", "safari 5", "safari 6", "safari 5.1", "opera 12", "opera 11.1", "opera 11.5", "opera 11.6", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "ios 7", "android 3", "android 4", "android 2.1", "android 2.2", "android 2.3", "android 4.1", "android 4.2", "bb 7", "bb 10"]
1296
1299
  },
1297
1300
  "repeating-linear-gradient": {
1298
- props: ["background", "background-image"],
1301
+ props: ["background", "background-image", "border-image"],
1299
1302
  browsers: ["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 3.6", "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", "safari 4", "safari 5", "safari 6", "safari 5.1", "opera 12", "opera 11.1", "opera 11.5", "opera 11.6", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "ios 7", "android 3", "android 4", "android 2.1", "android 2.2", "android 2.3", "android 4.1", "android 4.2", "bb 7", "bb 10"]
1300
1303
  },
1301
1304
  "repeating-radial-gradient": {
1302
- props: ["background", "background-image"],
1305
+ props: ["background", "background-image", "border-image"],
1303
1306
  browsers: ["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 3.6", "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", "safari 4", "safari 5", "safari 6", "safari 5.1", "opera 12", "opera 11.1", "opera 11.5", "opera 11.6", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "ios 7", "android 3", "android 4", "android 2.1", "android 2.2", "android 2.3", "android 4.1", "android 4.2", "bb 7", "bb 10"]
1304
1307
  },
1305
1308
  transform: {
@@ -1939,11 +1942,14 @@ require.register("autoprefixer/lib/autoprefixer/declaration.js", function(export
1939
1942
  });
1940
1943
  };
1941
1944
 
1942
- Declaration.prototype.prefixProp = function(prefix) {
1945
+ Declaration.prototype.prefixProp = function(prefix, value) {
1946
+ if (value == null) {
1947
+ value = this.value;
1948
+ }
1943
1949
  if (this.rule.contain(prefix + this.unprefixed)) {
1944
1950
  return;
1945
1951
  }
1946
- return this.insertBefore(prefix + this.unprefixed, this.value);
1952
+ return this.insertBefore(prefix + this.unprefixed, value);
1947
1953
  };
1948
1954
 
1949
1955
  Declaration.prototype.insertBefore = function(prop, value) {
@@ -1974,7 +1980,7 @@ require.register("autoprefixer/lib/autoprefixer/declaration.js", function(export
1974
1980
  };
1975
1981
 
1976
1982
  Declaration.prototype.saveValues = function() {
1977
- var prefix, prefixed, value, _ref, _results;
1983
+ var prefix, value, _ref, _results;
1978
1984
  _ref = this.valuesCache;
1979
1985
  _results = [];
1980
1986
  for (prefix in _ref) {
@@ -1982,10 +1988,12 @@ require.register("autoprefixer/lib/autoprefixer/declaration.js", function(export
1982
1988
  if (this.rule.prefix && prefix !== this.rule.prefix) {
1983
1989
  continue;
1984
1990
  }
1985
- if (prefixed = this.rule.byProp(prefix + this.unprefixed)) {
1986
- _results.push(prefixed.setValue(value));
1987
- } else {
1991
+ if (prefix === this.prefix) {
1992
+ _results.push(this.setValue(value));
1993
+ } else if (!this.rule.byProp(prefix + this.unprefixed)) {
1988
1994
  _results.push(this.insertBefore(this.prop, value));
1995
+ } else {
1996
+ _results.push(void 0);
1989
1997
  }
1990
1998
  }
1991
1999
  return _results;
@@ -2229,6 +2237,37 @@ require.register("autoprefixer/lib/autoprefixer/hacks/background-clip.js", funct
2229
2237
 
2230
2238
  }).call(this);
2231
2239
 
2240
+ });
2241
+ require.register("autoprefixer/lib/autoprefixer/hacks/border-image.js", function(exports, require, module){
2242
+ (function() {
2243
+ var BorderImage, Declaration, _ref,
2244
+ __hasProp = {}.hasOwnProperty,
2245
+ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
2246
+
2247
+ Declaration = require('../declaration');
2248
+
2249
+ BorderImage = (function(_super) {
2250
+ __extends(BorderImage, _super);
2251
+
2252
+ function BorderImage() {
2253
+ _ref = BorderImage.__super__.constructor.apply(this, arguments);
2254
+ return _ref;
2255
+ }
2256
+
2257
+ BorderImage.names = ['border-image'];
2258
+
2259
+ BorderImage.prototype.prefixProp = function(prefix) {
2260
+ return BorderImage.__super__.prefixProp.call(this, prefix, this.value.replace(/\s+fill(\s)/, '$1'));
2261
+ };
2262
+
2263
+ return BorderImage;
2264
+
2265
+ })(Declaration);
2266
+
2267
+ module.exports = BorderImage;
2268
+
2269
+ }).call(this);
2270
+
2232
2271
  });
2233
2272
  require.register("autoprefixer/lib/autoprefixer/hacks/border-radius.js", function(exports, require, module){
2234
2273
  (function() {
@@ -3347,6 +3386,8 @@ require.register("autoprefixer/lib/autoprefixer/rule.js", function(exports, requ
3347
3386
 
3348
3387
  Declaration.register(require('./hacks/align-items'));
3349
3388
 
3389
+ Declaration.register(require('./hacks/border-image'));
3390
+
3350
3391
  Declaration.register(require('./hacks/display-flex'));
3351
3392
 
3352
3393
  Declaration.register(require('./hacks/align-content'));
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoprefixer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.20130730
4
+ version: 0.6.20130731
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-30 00:00:00.000000000 Z
12
+ date: 2013-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: execjs
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: -4258714586965380786
87
+ hash: 3612682866520761942
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: -4258714586965380786
96
+ hash: 3612682866520761942
97
97
  requirements: []
98
98
  rubyforge_project:
99
99
  rubygems_version: 1.8.23