autoprefixer-rails 0.3.20130424 → 0.3.20130427

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -6,6 +6,12 @@
6
6
  * Don’t change properties order.
7
7
  * Sort properties and values in inspect output.
8
8
 
9
+ 20130424:
10
+ * Fix value override in prefixer.
11
+
12
+ 20130427:
13
+ * Prefix several same values in one property.
14
+
9
15
  == 0.2 (Hear Me Roar!)
10
16
  * Update parse libraries.
11
17
  * Add inspect method and rake tast.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autoprefixer-rails (0.3.20130424)
4
+ autoprefixer-rails (0.3.20130427)
5
5
  execjs
6
6
 
7
7
  GEM
@@ -82,7 +82,7 @@ GEM
82
82
  rspec-expectations (2.13.0)
83
83
  diff-lcs (>= 1.1.3, < 2.0)
84
84
  rspec-mocks (2.13.1)
85
- rspec-rails (2.13.0)
85
+ rspec-rails (2.13.1)
86
86
  actionpack (>= 3.0)
87
87
  activesupport (>= 3.0)
88
88
  railties (>= 3.0)
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '0.3.20130424'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '0.3.20130427'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -6083,8 +6083,15 @@ var splitPrefix = function (prop) {
6083
6083
  // Generate RegExp to test, does CSS value contain some `word`.
6084
6084
  var containRegexp = function (word) {
6085
6085
  return new RegExp('(^|\\s|,|\\()' +
6086
- word.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1") +
6087
- '($|\\s|\\()');
6086
+ word.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1") +
6087
+ '($|\\s|\\()', 'ig');
6088
+ };
6089
+
6090
+ // Throw error with `messages with mark, that is from Autoprefixer.
6091
+ var error = function (message) {
6092
+ var err = new Error(message);
6093
+ err.autoprefixer = true;
6094
+ throw err;
6088
6095
  };
6089
6096
 
6090
6097
  // Parse CSS and add prefixed properties and values by Can I Use database
@@ -6195,7 +6202,7 @@ var autoprefixer = {
6195
6202
 
6196
6203
  for ( var name in values ) {
6197
6204
  var value = values[name];
6198
- if ( !value.regexp.test(rule.value) ) {
6205
+ if ( !rule.value.match(value.regexp) ) {
6199
6206
  continue;
6200
6207
  }
6201
6208
 
@@ -6288,15 +6295,19 @@ var autoprefixer = {
6288
6295
  // Check browser name and reduce version if them from future.
6289
6296
  check: function (req) {
6290
6297
  req = req.split(/\s+/);
6298
+ if ( req.length > 2 ) {
6299
+ error('Unknown browsers requirement `' + req.join(' ') + '`');
6300
+ }
6301
+
6291
6302
  var name = req[0];
6292
6303
  var version = parseFloat(req[1]);
6293
6304
 
6294
6305
  var data = this.data.browsers[name];
6295
6306
  if ( !data ) {
6296
- throw new Error('Unknown browser `' + name + '`');
6307
+ error('Unknown browser `' + name + '`');
6297
6308
  }
6298
6309
  if ( !version ) {
6299
- throw new Error("Can't recognize version in `" + req + '`');
6310
+ error("Can't recognize version in `" + req + '`');
6300
6311
  }
6301
6312
 
6302
6313
  var last = data.versions[0];
@@ -6394,6 +6405,7 @@ require.alias("visionmedia-rework/lib/plugins/prefix-selectors.js", "autoprefixe
6394
6405
  require.alias("visionmedia-rework/lib/plugins/prefix-value.js", "autoprefixer/deps/rework/lib/plugins/prefix-value.js");
6395
6406
  require.alias("visionmedia-rework/lib/plugins/media.js", "autoprefixer/deps/rework/lib/plugins/media.js");
6396
6407
  require.alias("visionmedia-rework/lib/plugins/prefix.js", "autoprefixer/deps/rework/lib/plugins/prefix.js");
6408
+ require.alias("visionmedia-rework/index.js", "rework/index.js");
6397
6409
  require.alias("visionmedia-css/index.js", "visionmedia-rework/deps/css/index.js");
6398
6410
  require.alias("visionmedia-css-parse/index.js", "visionmedia-css/deps/css-parse/index.js");
6399
6411
 
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.3.20130424
4
+ version: 0.3.20130427
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-04-24 00:00:00.000000000 Z
12
+ date: 2013-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: execjs
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  segments:
84
84
  - 0
85
- hash: 432959967411605128
85
+ hash: -960317650164460838
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  none: false
88
88
  requirements:
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: 432959967411605128
94
+ hash: -960317650164460838
95
95
  requirements: []
96
96
  rubyforge_project:
97
97
  rubygems_version: 1.8.23