autoprefixer-rails 0.8.20131009 → 0.8.20131015
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/Gemfile.lock +2 -2
- data/lib/autoprefixer-rails/version.rb +1 -1
- data/vendor/autoprefixer.js +62 -29
- 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: bdf4711f2c200bc8f211ae9d1649bd193784b862
         | 
| 4 | 
            +
              data.tar.gz: 4fd14f9a4bef2afb4badec2e51fa38814b287c8f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: fe871c5a1508a41cd3b2237c6cf092f6fd6d02b403915b10b9d927ff0a53a7f947853d502bdbb455df5496399925f50a7cd947dff58f5794e9fcf7a9d452ae04
         | 
| 7 | 
            +
              data.tar.gz: a06ea18bac80eb02b3f82120f0f60108991182cfc0a1d85611c1bb13a79567d62dd52c5dc45182d110da59ff5cc509d403520dd315ffce5cc71839a633b491db
         | 
    
        data/ChangeLog
    CHANGED
    
    | @@ -44,6 +44,9 @@ | |
| 44 44 | 
             
            20131009:
         | 
| 45 45 | 
             
            * Opera 17 is moved to released versions.
         | 
| 46 46 |  | 
| 47 | 
            +
            20131015:
         | 
| 48 | 
            +
            * Fix converting multiple gradients to old webkit syntax (by Aleksei Androsov).
         | 
| 49 | 
            +
             | 
| 47 50 | 
             
            == 0.7 (We Do Not Sow)
         | 
| 48 51 | 
             
            * Add vendor prefixes to selectors.
         | 
| 49 52 | 
             
            * 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.20131015)
         | 
| 5 5 | 
             
                  execjs
         | 
| 6 6 |  | 
| 7 7 | 
             
            GEM
         | 
| @@ -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.8. | 
| 48 | 
            +
                multi_json (1.8.2)
         | 
| 49 49 | 
             
                polyglot (0.3.3)
         | 
| 50 50 | 
             
                rack (1.5.2)
         | 
| 51 51 | 
             
                rack-test (0.6.2)
         | 
    
        data/vendor/autoprefixer.js
    CHANGED
    
    | @@ -2611,6 +2611,8 @@ require.register("autoprefixer/lib/autoprefixer/hacks/gradient.js", function(exp | |
| 2611 2611 |  | 
| 2612 2612 | 
             
                Gradient.names = ['linear-gradient', 'repeating-linear-gradient', 'radial-gradient', 'repeating-radial-gradient'];
         | 
| 2613 2613 |  | 
| 2614 | 
            +
                Gradient.starts = new RegExp('(^|\\s*)' + Gradient.names.join('|'), 'i');
         | 
| 2615 | 
            +
             | 
| 2614 2616 | 
             
                Gradient.regexps = {};
         | 
| 2615 2617 |  | 
| 2616 2618 | 
             
                _ref = Gradient.names;
         | 
| @@ -2628,37 +2630,46 @@ require.register("autoprefixer/lib/autoprefixer/hacks/gradient.js", function(exp | |
| 2628 2630 | 
             
                Gradient.prototype.addPrefix = function(prefix, string) {
         | 
| 2629 2631 | 
             
                  var _this = this;
         | 
| 2630 2632 | 
             
                  return string.replace(this.regexp, function(all, before, args) {
         | 
| 2631 | 
            -
                    var  | 
| 2632 | 
            -
                     | 
| 2633 | 
            -
                     | 
| 2634 | 
            -
                     | 
| 2635 | 
            -
                       | 
| 2636 | 
            -
             | 
| 2637 | 
            -
             | 
| 2638 | 
            -
             | 
| 2639 | 
            -
                         | 
| 2640 | 
            -
             | 
| 2641 | 
            -
             | 
| 2642 | 
            -
             | 
| 2643 | 
            -
             | 
| 2644 | 
            -
             | 
| 2645 | 
            -
             | 
| 2646 | 
            -
             | 
| 2647 | 
            -
             | 
| 2648 | 
            -
             | 
| 2649 | 
            -
             | 
| 2650 | 
            -
             | 
| 2651 | 
            -
             | 
| 2652 | 
            -
             | 
| 2653 | 
            -
                          params | 
| 2654 | 
            -
             | 
| 2655 | 
            -
                           | 
| 2656 | 
            -
                        } else  | 
| 2657 | 
            -
                           | 
| 2633 | 
            +
                    var decl, prefixedDecls, _j, _len1, _ref1;
         | 
| 2634 | 
            +
                    prefixedDecls = [];
         | 
| 2635 | 
            +
                    _ref1 = _this.splitDecls(all);
         | 
| 2636 | 
            +
                    for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
         | 
| 2637 | 
            +
                      decl = _ref1[_j];
         | 
| 2638 | 
            +
                      prefixedDecls.push(decl.replace(_this.regexp, function(all, before, args) {
         | 
| 2639 | 
            +
                        var params;
         | 
| 2640 | 
            +
                        params = _this.splitParams(args);
         | 
| 2641 | 
            +
                        params = _this.newDirection(params);
         | 
| 2642 | 
            +
                        if (prefix === '-webkit- old') {
         | 
| 2643 | 
            +
                          if (_this.name !== 'linear-gradient') {
         | 
| 2644 | 
            +
                            return all;
         | 
| 2645 | 
            +
                          }
         | 
| 2646 | 
            +
                          if (params[0] && params[0].indexOf('deg') !== -1) {
         | 
| 2647 | 
            +
                            return all;
         | 
| 2648 | 
            +
                          }
         | 
| 2649 | 
            +
                          if (args.indexOf('-corner') !== -1) {
         | 
| 2650 | 
            +
                            return all;
         | 
| 2651 | 
            +
                          }
         | 
| 2652 | 
            +
                          if (args.indexOf('-side') !== -1) {
         | 
| 2653 | 
            +
                            return all;
         | 
| 2654 | 
            +
                          }
         | 
| 2655 | 
            +
                          params = _this.oldDirection(params);
         | 
| 2656 | 
            +
                          params = _this.colorStops(params);
         | 
| 2657 | 
            +
                          return '-webkit-gradient(linear, ' + params.join(', ') + ')';
         | 
| 2658 | 
            +
                        } else {
         | 
| 2659 | 
            +
                          if (params.length > 0) {
         | 
| 2660 | 
            +
                            if (params[0].slice(0, 3) === 'to ') {
         | 
| 2661 | 
            +
                              params[0] = _this.fixDirection(params[0]);
         | 
| 2662 | 
            +
                            } else if (params[0].indexOf('deg') !== -1) {
         | 
| 2663 | 
            +
                              params[0] = _this.fixAngle(params[0]);
         | 
| 2664 | 
            +
                            } else if (params[0].indexOf(' at ') !== -1) {
         | 
| 2665 | 
            +
                              _this.fixRadial(params);
         | 
| 2666 | 
            +
                            }
         | 
| 2667 | 
            +
                          }
         | 
| 2668 | 
            +
                          return before + prefix + _this.name + '(' + params.join(', ') + ')';
         | 
| 2658 2669 | 
             
                        }
         | 
| 2659 | 
            -
                      }
         | 
| 2660 | 
            -
                      return before + prefix + _this.name + '(' + params.join(', ') + ')';
         | 
| 2670 | 
            +
                      }));
         | 
| 2661 2671 | 
             
                    }
         | 
| 2672 | 
            +
                    return prefixedDecls.join(',');
         | 
| 2662 2673 | 
             
                  });
         | 
| 2663 2674 | 
             
                };
         | 
| 2664 2675 |  | 
| @@ -2680,6 +2691,28 @@ require.register("autoprefixer/lib/autoprefixer/hacks/gradient.js", function(exp | |
| 2680 2691 | 
             
                  'bottom left': 'top right, bottom left'
         | 
| 2681 2692 | 
             
                };
         | 
| 2682 2693 |  | 
| 2694 | 
            +
                Gradient.prototype.splitDecls = function(decl) {
         | 
| 2695 | 
            +
                  var chunks, currentDecl, decls, _j, _len1;
         | 
| 2696 | 
            +
                  decls = [];
         | 
| 2697 | 
            +
                  chunks = decl.split(',');
         | 
| 2698 | 
            +
                  currentDecl = [];
         | 
| 2699 | 
            +
                  for (_j = 0, _len1 = chunks.length; _j < _len1; _j++) {
         | 
| 2700 | 
            +
                    i = chunks[_j];
         | 
| 2701 | 
            +
                    if (Gradient.starts.test(i)) {
         | 
| 2702 | 
            +
                      if (currentDecl.length === 0) {
         | 
| 2703 | 
            +
                        currentDecl.push(i);
         | 
| 2704 | 
            +
                      } else {
         | 
| 2705 | 
            +
                        decls.push(currentDecl.join(','));
         | 
| 2706 | 
            +
                        currentDecl = [i];
         | 
| 2707 | 
            +
                      }
         | 
| 2708 | 
            +
                    } else {
         | 
| 2709 | 
            +
                      currentDecl.push(i);
         | 
| 2710 | 
            +
                    }
         | 
| 2711 | 
            +
                  }
         | 
| 2712 | 
            +
                  decls.push(currentDecl.join(','));
         | 
| 2713 | 
            +
                  return decls;
         | 
| 2714 | 
            +
                };
         | 
| 2715 | 
            +
             | 
| 2683 2716 | 
             
                Gradient.prototype.splitParams = function(params) {
         | 
| 2684 2717 | 
             
                  var array, char, func, param, _j, _len1;
         | 
| 2685 2718 | 
             
                  array = [];
         | 
    
        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.20131015
         | 
| 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-15 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: execjs
         |