autoprefixer-rails 0.8.20131006 → 0.8.20131007
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 +1 -1
- data/README.md +12 -3
- data/lib/autoprefixer-rails/version.rb +1 -1
- data/vendor/autoprefixer.js +12 -1
- 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: 530e5829c777be983a6edb302c22434a1c32c246
|
4
|
+
data.tar.gz: 783cc9275e5c85d40efc4ab84706606456f9468f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c996b15f382835c51365cc1a3054b4f5bdb79530586801cf5e52cdc07081043404308960503a9330684b60a01a6e557a77ea1f26c0f35d652e35424e8e7c903
|
7
|
+
data.tar.gz: d0b096bedbd910d1a3bfdf2841699bd358ad6ac8cfeb969265bcb2fd6989370d6b6c794cbf50d96267442a72149b689c1464fe2370c0180f7a0b4508fe6da8b0
|
data/ChangeLog
CHANGED
@@ -38,6 +38,9 @@
|
|
38
38
|
20131006:
|
39
39
|
* Chrome 30 is moved to released versions.
|
40
40
|
|
41
|
+
20131007:
|
42
|
+
* Don’t add another prefixes in rule with prefixed selector.
|
43
|
+
|
41
44
|
== 0.7 (We Do Not Sow)
|
42
45
|
* Add vendor prefixes to selectors.
|
43
46
|
* Add ::selection and ::placeholder selectors support.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -22,7 +22,7 @@ and Autoprefixer will apply prefixes for you.
|
|
22
22
|
For example in `app/assets/stylesheet/foobar.sass`:
|
23
23
|
|
24
24
|
```sass
|
25
|
-
a
|
25
|
+
:fullscreen a
|
26
26
|
transition: transform 1s
|
27
27
|
```
|
28
28
|
|
@@ -30,9 +30,18 @@ Autoprefixer uses Can I Use database with browser statistics and properties
|
|
30
30
|
support to add vendor prefixes automatically using the Asset Pipeline:
|
31
31
|
|
32
32
|
```css
|
33
|
-
a {
|
33
|
+
:-webkit-full-screen a {
|
34
34
|
-webkit-transition: -webkit-transform 1s;
|
35
|
-
transition: transform 1s
|
35
|
+
transition: transform 1s;
|
36
|
+
}
|
37
|
+
|
38
|
+
:-moz-full-screen a {
|
39
|
+
transition: transform 1s;
|
40
|
+
}
|
41
|
+
|
42
|
+
:fullscreen a {
|
43
|
+
-webkit-transition: -webkit-transform 1s;
|
44
|
+
transition: transform 1s;
|
36
45
|
}
|
37
46
|
```
|
38
47
|
|
data/vendor/autoprefixer.js
CHANGED
@@ -3545,6 +3545,7 @@ require.register("autoprefixer/lib/autoprefixer/rule.js", function(exports, requ
|
|
3545
3545
|
|
3546
3546
|
Rule = (function() {
|
3547
3547
|
function Rule(rules, number, node, prefix) {
|
3548
|
+
var match;
|
3548
3549
|
this.rules = rules;
|
3549
3550
|
this.number = number;
|
3550
3551
|
this.node = node;
|
@@ -3553,6 +3554,12 @@ require.register("autoprefixer/lib/autoprefixer/rule.js", function(exports, requ
|
|
3553
3554
|
this.declarations = this.node.declarations;
|
3554
3555
|
if (this.type === 'rule') {
|
3555
3556
|
this.selectors = this.node.selectors.join(', ');
|
3557
|
+
if (!this.prefix) {
|
3558
|
+
match = this.selectors.match(/(^|\s|:)(-(\w+)-)/);
|
3559
|
+
if (match) {
|
3560
|
+
this.prefix = match[2];
|
3561
|
+
}
|
3562
|
+
}
|
3556
3563
|
}
|
3557
3564
|
}
|
3558
3565
|
|
@@ -4019,7 +4026,11 @@ require.register("autoprefixer/lib/autoprefixer/utils.js", function(exports, req
|
|
4019
4026
|
for (key in obj) {
|
4020
4027
|
value = obj[key];
|
4021
4028
|
if (!changes[key]) {
|
4022
|
-
|
4029
|
+
if (value instanceof Array) {
|
4030
|
+
clone[key] = value.slice(0);
|
4031
|
+
} else {
|
4032
|
+
clone[key] = value;
|
4033
|
+
}
|
4023
4034
|
}
|
4024
4035
|
}
|
4025
4036
|
for (key in changes) {
|
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.20131007
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|