autoprefixer-rails 0.8.20130906 → 0.8.20130911

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -19,6 +19,9 @@
19
19
  * Fix direction syntax in radial gradients.
20
20
  * Don’t prefix IE filter with modern syntax.
21
21
 
22
+ 20130911:
23
+ * Fix parsing property name with spaces.
24
+
22
25
  == 0.7 (We Do Not Sow)
23
26
  * Add vendor prefixes to selectors.
24
27
  * Add ::selection and ::placeholder selectors support.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autoprefixer-rails (0.8.20130906)
4
+ autoprefixer-rails (0.8.20130911)
5
5
  execjs
6
6
 
7
7
  GEM
@@ -32,7 +32,7 @@ GEM
32
32
  thread_safe (~> 0.1)
33
33
  tzinfo (~> 0.3.37)
34
34
  arel (4.0.0)
35
- atomic (1.1.13)
35
+ atomic (1.1.14)
36
36
  builder (3.1.4)
37
37
  diff-lcs (1.2.4)
38
38
  erubis (2.7.0)
@@ -45,7 +45,7 @@ GEM
45
45
  treetop (~> 1.4.8)
46
46
  mime-types (1.25)
47
47
  minitest (4.7.5)
48
- multi_json (1.7.9)
48
+ multi_json (1.8.0)
49
49
  polyglot (0.3.3)
50
50
  rack (1.5.2)
51
51
  rack-test (0.6.2)
@@ -89,7 +89,7 @@ GEM
89
89
  libv8 (~> 3.16.14.0)
90
90
  ref
91
91
  thor (0.18.1)
92
- thread_safe (0.1.2)
92
+ thread_safe (0.1.3)
93
93
  atomic
94
94
  tilt (1.4.1)
95
95
  treetop (1.4.15)
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '0.8.20130906'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '0.8.20130911'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -28,9 +28,11 @@ function require(path, parent, orig) {
28
28
  // by invoking the module's
29
29
  // registered function
30
30
  if (!module.exports) {
31
- module.exports = {};
32
- module.client = module.component = true;
33
- module.call(this, module.exports, require.relative(resolved), module);
31
+ var mod = {};
32
+ mod.exports = {};
33
+ mod.client = mod.component = true;
34
+ module.call(this, mod.exports, require.relative(resolved), mod);
35
+ module.exports = mod.exports;
34
36
  }
35
37
 
36
38
  return module.exports;
@@ -297,7 +299,7 @@ module.exports = function(css, options){
297
299
  var rules = [];
298
300
  whitespace();
299
301
  comments(rules);
300
- while (css[0] != '}' && (node = atrule() || rule())) {
302
+ while (css.charAt(0) != '}' && (node = atrule() || rule())) {
301
303
  rules.push(node);
302
304
  comments(rules);
303
305
  }
@@ -342,10 +344,10 @@ module.exports = function(css, options){
342
344
 
343
345
  function comment() {
344
346
  var pos = position();
345
- if ('/' != css[0] || '*' != css[1]) return;
347
+ if ('/' != css.charAt(0) || '*' != css.charAt(1)) return;
346
348
 
347
349
  var i = 2;
348
- while (null != css[i] && ('*' != css[i] || '/' != css[i + 1])) ++i;
350
+ while (null != css.charAt(i) && ('*' != css.charAt(i) || '/' != css.charAt(i + 1))) ++i;
349
351
  i += 2;
350
352
 
351
353
  var str = css.slice(2, i - 2);
@@ -367,7 +369,7 @@ module.exports = function(css, options){
367
369
  function selector() {
368
370
  var m = match(/^([^{]+)/);
369
371
  if (!m) return;
370
- return m[0].trim().split(/\s*,\s*/);
372
+ return trim(m[0]).split(/\s*,\s*/);
371
373
  }
372
374
 
373
375
  /**
@@ -380,7 +382,7 @@ module.exports = function(css, options){
380
382
  // prop
381
383
  var prop = match(/^(\*?[-\/\*\w]+)\s*/);
382
384
  if (!prop) return;
383
- prop = prop[0];
385
+ prop = trim(prop[0]);
384
386
 
385
387
  // :
386
388
  if (!match(/^:\s*/)) return error("property missing ':'");
@@ -392,7 +394,7 @@ module.exports = function(css, options){
392
394
  var ret = pos({
393
395
  type: 'declaration',
394
396
  property: prop,
395
- value: val[0].trim()
397
+ value: trim(val[0])
396
398
  });
397
399
 
398
400
  // ;
@@ -489,7 +491,7 @@ module.exports = function(css, options){
489
491
  var m = match(/^@supports *([^{]+)/);
490
492
 
491
493
  if (!m) return;
492
- var supports = m[1].trim();
494
+ var supports = trim(m[1]);
493
495
 
494
496
  if (!open()) return error("@supports missing '{'");
495
497
 
@@ -513,7 +515,7 @@ module.exports = function(css, options){
513
515
  var m = match(/^@media *([^{]+)/);
514
516
 
515
517
  if (!m) return;
516
- var media = m[1].trim();
518
+ var media = trim(m[1]);
517
519
 
518
520
  if (!open()) return error("@media missing '{'");
519
521
 
@@ -567,8 +569,8 @@ module.exports = function(css, options){
567
569
  var m = match(/^@([-\w]+)?document *([^{]+)/);
568
570
  if (!m) return;
569
571
 
570
- var vendor = (m[1] || '').trim();
571
- var doc = m[2].trim();
572
+ var vendor = trim(m[1]);
573
+ var doc = trim(m[2]);
572
574
 
573
575
  if (!open()) return error("@document missing '{'");
574
576
 
@@ -617,7 +619,7 @@ module.exports = function(css, options){
617
619
  var m = match(new RegExp('^@' + name + ' *([^;\\n]+);'));
618
620
  if (!m) return;
619
621
  var ret = { type: name };
620
- ret[name] = m[1].trim();
622
+ ret[name] = trim(m[1]);
621
623
  return pos(ret);
622
624
  }
623
625
 
@@ -657,6 +659,13 @@ module.exports = function(css, options){
657
659
  return stylesheet();
658
660
  };
659
661
 
662
+ /**
663
+ * Trim `str`.
664
+ */
665
+
666
+ function trim(str) {
667
+ return (str || '').replace(/^\s+|\s+$/g, '');
668
+ }
660
669
 
661
670
  });
662
671
  require.register("visionmedia-css-stringify/index.js", function(exports, require, module){
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.8.20130906
4
+ version: 0.8.20130911
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-09-06 00:00:00.000000000 Z
12
+ date: 2013-09-11 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: -1426671435859909895
87
+ hash: 4221752281044002580
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: -1426671435859909895
96
+ hash: 4221752281044002580
97
97
  requirements: []
98
98
  rubyforge_project:
99
99
  rubygems_version: 1.8.23