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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 297b3e36a55941ec844d96806b7b2f278729e3a4
4
- data.tar.gz: 4a73c584df55b3476242dd5668f156913bd6b92d
3
+ metadata.gz: 530e5829c777be983a6edb302c22434a1c32c246
4
+ data.tar.gz: 783cc9275e5c85d40efc4ab84706606456f9468f
5
5
  SHA512:
6
- metadata.gz: 532cfe5c9d134a73a0c90a84df8c8a7d3908801f86e24c3aa378d3ec342d65e11425227e272b5fa95a25dc952860722917c42da55b29c2dd7903a61bade1d810
7
- data.tar.gz: a585d24e5effcc9da1fc6bc508ba6c7053d21c56436ed1540b3d8576f359cce46f33295accf4a7038db6e0a00f0754c88a2808a906de58cab019ddacb4c6dd4c
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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autoprefixer-rails (0.8.20131006)
4
+ autoprefixer-rails (0.8.20131007)
5
5
  execjs
6
6
 
7
7
  GEM
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
 
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '0.8.20131006'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '0.8.20131007'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -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
- clone[key] = value;
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.20131006
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-06 00:00:00.000000000 Z
11
+ date: 2013-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs