autoprefixer-rails 0.8.20131015 → 0.8.20131017
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/Gemfile.lock +4 -4
- data/lib/autoprefixer-rails/version.rb +1 -1
- data/vendor/autoprefixer.js +28 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46488ccc245dfd9dd3ce0030fc3a814d58181ea8
|
4
|
+
data.tar.gz: d79ec65d9835dc73116b8b694d0c5ab4e6b4a7b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cc9bdde0b9124fe331a37444c2617322ac84696242451b692bf8c6e521131a40dca59e3d5f3f42190103ffb197151283c3f3cd9f01925a336ed97fe4e8b046e
|
7
|
+
data.tar.gz: e61da1246c5f4c80bb46ed722cab1c4c60425ff8eb0433ba255771613ea93cd6ddf470e432977cfd0725b7d380525f15c9199881f76c7dc74952054e1ca8e55e
|
data/ChangeLog
CHANGED
@@ -47,6 +47,9 @@
|
|
47
47
|
20131015:
|
48
48
|
* Fix converting multiple gradients to old webkit syntax (by Aleksei Androsov).
|
49
49
|
|
50
|
+
20131017:
|
51
|
+
* Fix @host at-rule parsing.
|
52
|
+
|
50
53
|
== 0.7 (We Do Not Sow)
|
51
54
|
* Add vendor prefixes to selectors.
|
52
55
|
* Add ::selection and ::placeholder selectors support.
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
autoprefixer-rails (0.8.
|
4
|
+
autoprefixer-rails (0.8.20131017)
|
5
5
|
execjs
|
6
6
|
|
7
7
|
GEM
|
@@ -65,10 +65,10 @@ GEM
|
|
65
65
|
thor (>= 0.18.1, < 2.0)
|
66
66
|
rake (10.1.0)
|
67
67
|
ref (1.0.5)
|
68
|
-
rspec-core (2.14.
|
68
|
+
rspec-core (2.14.6)
|
69
69
|
rspec-expectations (2.14.3)
|
70
70
|
diff-lcs (>= 1.1.3, < 2.0)
|
71
|
-
rspec-mocks (2.14.
|
71
|
+
rspec-mocks (2.14.4)
|
72
72
|
rspec-rails (2.14.0)
|
73
73
|
actionpack (>= 3.0)
|
74
74
|
activesupport (>= 3.0)
|
@@ -81,7 +81,7 @@ GEM
|
|
81
81
|
multi_json (~> 1.0)
|
82
82
|
rack (~> 1.0)
|
83
83
|
tilt (~> 1.1, != 1.3.0)
|
84
|
-
sprockets-rails (2.0.
|
84
|
+
sprockets-rails (2.0.1)
|
85
85
|
actionpack (>= 3.0)
|
86
86
|
activesupport (>= 3.0)
|
87
87
|
sprockets (~> 2.8)
|
data/vendor/autoprefixer.js
CHANGED
@@ -234,7 +234,8 @@ module.exports = function(css, options){
|
|
234
234
|
return function(node){
|
235
235
|
node.position = {
|
236
236
|
start: start,
|
237
|
-
end: { line: lineno, column: column }
|
237
|
+
end: { line: lineno, column: column },
|
238
|
+
source: options.source
|
238
239
|
};
|
239
240
|
|
240
241
|
whitespace();
|
@@ -382,7 +383,7 @@ module.exports = function(css, options){
|
|
382
383
|
var pos = position();
|
383
384
|
|
384
385
|
// prop
|
385
|
-
var prop = match(/^(\*?[-\/\*\w]+)\s*/);
|
386
|
+
var prop = match(/^(\*?[-\/\*\w]+(\[[0-9a-z_-]+\])?)\s*/);
|
386
387
|
if (!prop) return;
|
387
388
|
prop = trim(prop[0]);
|
388
389
|
|
@@ -435,7 +436,7 @@ module.exports = function(css, options){
|
|
435
436
|
var vals = [];
|
436
437
|
var pos = position();
|
437
438
|
|
438
|
-
while (m = match(/^(
|
439
|
+
while (m = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/)) {
|
439
440
|
vals.push(m[1]);
|
440
441
|
match(/^,\s*/);
|
441
442
|
}
|
@@ -508,6 +509,28 @@ module.exports = function(css, options){
|
|
508
509
|
});
|
509
510
|
}
|
510
511
|
|
512
|
+
/**
|
513
|
+
* Parse host.
|
514
|
+
*/
|
515
|
+
|
516
|
+
function athost() {
|
517
|
+
var pos = position();
|
518
|
+
var m = match(/^@host */);
|
519
|
+
|
520
|
+
if (!m) return;
|
521
|
+
|
522
|
+
if (!open()) return error("@host missing '{'");
|
523
|
+
|
524
|
+
var style = comments().concat(rules());
|
525
|
+
|
526
|
+
if (!close()) return error("@host missing '}'");
|
527
|
+
|
528
|
+
return pos({
|
529
|
+
type: 'host',
|
530
|
+
rules: style
|
531
|
+
});
|
532
|
+
}
|
533
|
+
|
511
534
|
/**
|
512
535
|
* Parse media.
|
513
536
|
*/
|
@@ -637,7 +660,8 @@ module.exports = function(css, options){
|
|
637
660
|
|| atcharset()
|
638
661
|
|| atnamespace()
|
639
662
|
|| atdocument()
|
640
|
-
|| atpage()
|
663
|
+
|| atpage()
|
664
|
+
|| athost();
|
641
665
|
}
|
642
666
|
|
643
667
|
/**
|
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: 0.8.
|
4
|
+
version: 0.8.20131017
|
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-10-
|
11
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|