autoprefixer-rails 0.8.20131205 → 0.8.20131209

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: fd83476e6ebeea6cc96f6497efe9f9e21f129888
4
- data.tar.gz: 41c8c4bff8983e9d6b61fd565efe520d2e5a4743
3
+ metadata.gz: 09a629eb8c6272fdf354c8c3600e5ef74e2d40e7
4
+ data.tar.gz: 7cbfbc0246eb74fa4a8c68fb6ad2b0c037f80fdf
5
5
  SHA512:
6
- metadata.gz: f6d7925ef7b0ff14ff7540c824a85419d95d6eb865d5a39f6cd029a9eda8d60c6e1956566a5839c41a7e558094853ad0d2b1f84e68ee1c128d9ec35ae846a7b2
7
- data.tar.gz: 9226e2877ee02be120954e673104edc8293493aedfae20f373eb195339ecc6fef12192e1d66ccd58376f80ec499214a5f8c1826473fe7cc36f71b30026728599
6
+ metadata.gz: c209e6b2eb97836e8023a8de3f920c51e618621ed18fc5a31f7d390baa1870eefdc1512b5c4f61b6b09bcfaaf56063fe27379caa7d672a8077fd8672870b626d
7
+ data.tar.gz: e4d7782318253062a48839816ef1206bea7a6967b7df88d14561c5cf42a599d13a1508feb6753486ddccd7ee720b28999d5809049c81b3931889b0c1a3744417
data/ChangeLog CHANGED
@@ -11,16 +11,6 @@
11
11
  * Fix selector prefixes order.
12
12
  * Fix browser versions order in inspect.
13
13
 
14
- 20131205:
15
- * Google Chrome v33 added to future releases list.
16
- * Google Chrome v31 moved to current releases list.
17
-
18
- 20131104:
19
- * Update Android future version to 4.4
20
- * Google Chrome 32 added to future versions list
21
- * Firefox 25 now is actual version, 27 and 28 added to future versions
22
- * Browsers statistics are updated
23
-
24
14
  20130903:
25
15
  * Fix old WebKit gradients convertor on rgba() colors.
26
16
  * Allow to write old direction syntax in gradients.
@@ -70,6 +60,22 @@
70
60
  * Add Safari 6.1 data.
71
61
  * Add fx alias for Firefox.
72
62
 
63
+ 20131104:
64
+ * Update Android future version to 4.4.
65
+ * Google Chrome 32 added to future versions list.
66
+ * Firefox 25 now is actual version, 27 and 28 added to future versions.
67
+ * Browsers statistics are updated.
68
+
69
+ 20131205:
70
+ * Google Chrome 33 added to future releases list.
71
+ * Google Chrome 31 moved to current releases list.
72
+
73
+ 20131209:
74
+ * Fix Autoprefixer initializer on Heroku (by Jason Purcell).
75
+ * Use old webkit gradients for old iOS and Safari (by Chad von Nau).
76
+ * Fix direction conversion for old webkit gradients (by Chad von Nau).
77
+ * Update browsers popularity statistics.
78
+
73
79
  == 0.7 (We Do Not Sow)
74
80
  * Add vendor prefixes to selectors.
75
81
  * Add ::selection and ::placeholder selectors support.
@@ -26,7 +26,7 @@ begin
26
26
  Rake::AutoprefixerTasks.new(browsers(app))
27
27
  end
28
28
 
29
- initializer :setup_autoprefixer do |app|
29
+ initializer :setup_autoprefixer, group: :all do |app|
30
30
  AutoprefixerRails.install(app.assets, browsers(app))
31
31
  end
32
32
 
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '0.8.20131205'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '0.8.20131209'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -706,6 +706,11 @@ var Identity = require('./lib/identity');
706
706
  /**
707
707
  * Stringfy the given AST `node`.
708
708
  *
709
+ * Options:
710
+ *
711
+ * - `compress` space-optimized output
712
+ * - `sourcemap` return an object with `.code` and `.map`
713
+ *
709
714
  * @param {Object} node
710
715
  * @param {Object} [options]
711
716
  * @return {String}
@@ -719,13 +724,29 @@ module.exports = function(node, options){
719
724
  ? new Compressed(options)
720
725
  : new Identity(options);
721
726
 
722
- return compiler.compile(node);
727
+ // source maps
728
+ if (options.sourcemap) {
729
+ var sourcemaps = require('./lib/source-map-support');
730
+ sourcemaps(compiler);
731
+
732
+ var code = compiler.compile(node);
733
+ return { code: code, map: compiler.map.toJSON() };
734
+ }
735
+
736
+ var code = compiler.compile(node);
737
+ return code;
723
738
  };
724
739
 
725
740
 
726
741
  });
727
742
  require.register("visionmedia-css-stringify/lib/compress.js", function(exports, require, module){
728
743
 
744
+ /**
745
+ * Module dependencies.
746
+ */
747
+
748
+ var Base = require('./compiler');
749
+
729
750
  /**
730
751
  * Expose compiler.
731
752
  */
@@ -737,9 +758,15 @@ module.exports = Compiler;
737
758
  */
738
759
 
739
760
  function Compiler(options) {
740
- options = options || {};
761
+ Base.call(this, options);
741
762
  }
742
763
 
764
+ /**
765
+ * Inherit from `Base.prototype`.
766
+ */
767
+
768
+ Compiler.prototype.__proto__ = Base.prototype;
769
+
743
770
  /**
744
771
  * Compile `node`.
745
772
  */
@@ -750,20 +777,12 @@ Compiler.prototype.compile = function(node){
750
777
  .join('');
751
778
  };
752
779
 
753
- /**
754
- * Visit `node`.
755
- */
756
-
757
- Compiler.prototype.visit = function(node){
758
- return this[node.type](node);
759
- };
760
-
761
780
  /**
762
781
  * Visit comment node.
763
782
  */
764
783
 
765
784
  Compiler.prototype.comment = function(node){
766
- return '';
785
+ return this.emit('', node.position);
767
786
  };
768
787
 
769
788
  /**
@@ -771,7 +790,7 @@ Compiler.prototype.comment = function(node){
771
790
  */
772
791
 
773
792
  Compiler.prototype.import = function(node){
774
- return '@import ' + node.import + ';';
793
+ return this.emit('@import ' + node.import + ';', node.position);
775
794
  };
776
795
 
777
796
  /**
@@ -779,11 +798,10 @@ Compiler.prototype.import = function(node){
779
798
  */
780
799
 
781
800
  Compiler.prototype.media = function(node){
782
- return '@media '
783
- + node.media
784
- + '{'
785
- + node.rules.map(this.visit, this).join('')
786
- + '}';
801
+ return this.emit('@media ' + node.media, node.position, true)
802
+ + this.emit('{')
803
+ + this.mapVisit(node.rules)
804
+ + this.emit('}');
787
805
  };
788
806
 
789
807
  /**
@@ -793,10 +811,10 @@ Compiler.prototype.media = function(node){
793
811
  Compiler.prototype.document = function(node){
794
812
  var doc = '@' + (node.vendor || '') + 'document ' + node.document;
795
813
 
796
- return doc
797
- + '{'
798
- + node.rules.map(this.visit, this).join('')
799
- + '}';
814
+ return this.emit(doc, node.position, true)
815
+ + this.emit('{')
816
+ + this.mapVisit(node.rules)
817
+ + this.emit('}');
800
818
  };
801
819
 
802
820
  /**
@@ -804,7 +822,7 @@ Compiler.prototype.document = function(node){
804
822
  */
805
823
 
806
824
  Compiler.prototype.charset = function(node){
807
- return '@charset ' + node.charset + ';';
825
+ return this.emit('@charset ' + node.charset + ';', node.position);
808
826
  };
809
827
 
810
828
  /**
@@ -812,7 +830,7 @@ Compiler.prototype.charset = function(node){
812
830
  */
813
831
 
814
832
  Compiler.prototype.namespace = function(node){
815
- return '@namespace ' + node.namespace + ';';
833
+ return this.emit('@namespace ' + node.namespace + ';', node.position);
816
834
  };
817
835
 
818
836
  /**
@@ -820,11 +838,10 @@ Compiler.prototype.namespace = function(node){
820
838
  */
821
839
 
822
840
  Compiler.prototype.supports = function(node){
823
- return '@supports '
824
- + node.supports
825
- + '{'
826
- + node.rules.map(this.visit, this).join('')
827
- + '}';
841
+ return this.emit('@supports ' + node.supports, node.position, true)
842
+ + this.emit('{')
843
+ + this.mapVisit(node.rules)
844
+ + this.emit('}');
828
845
  };
829
846
 
830
847
  /**
@@ -832,13 +849,13 @@ Compiler.prototype.supports = function(node){
832
849
  */
833
850
 
834
851
  Compiler.prototype.keyframes = function(node){
835
- return '@'
852
+ return this.emit('@'
836
853
  + (node.vendor || '')
837
854
  + 'keyframes '
838
- + node.name
839
- + '{'
840
- + node.keyframes.map(this.visit, this).join('')
841
- + '}';
855
+ + node.name, node.position, true)
856
+ + this.emit('{')
857
+ + this.mapVisit(node.keyframes)
858
+ + this.emit('}');
842
859
  };
843
860
 
844
861
  /**
@@ -848,10 +865,10 @@ Compiler.prototype.keyframes = function(node){
848
865
  Compiler.prototype.keyframe = function(node){
849
866
  var decls = node.declarations;
850
867
 
851
- return node.values.join(',')
852
- + '{'
853
- + decls.map(this.visit, this).join('')
854
- + '}';
868
+ return this.emit(node.values.join(','), node.position, true)
869
+ + this.emit('{')
870
+ + this.mapVisit(decls)
871
+ + this.emit('}');
855
872
  };
856
873
 
857
874
  /**
@@ -863,10 +880,10 @@ Compiler.prototype.page = function(node){
863
880
  ? node.selectors.join(', ')
864
881
  : '';
865
882
 
866
- return '@page ' + sel
867
- + '{'
868
- + node.declarations.map(this.visit, this).join('')
869
- + '}';
883
+ return this.emit('@page ' + sel, node.position, true)
884
+ + this.emit('{')
885
+ + this.mapVisit(node.declarations)
886
+ + this.emit('}');
870
887
  };
871
888
 
872
889
  /**
@@ -877,10 +894,10 @@ Compiler.prototype.rule = function(node){
877
894
  var decls = node.declarations;
878
895
  if (!decls.length) return '';
879
896
 
880
- return node.selectors.join(',')
881
- + '{'
882
- + decls.map(this.visit, this).join('')
883
- + '}';
897
+ return this.emit(node.selectors.join(','), node.position, true)
898
+ + this.emit('{')
899
+ + this.mapVisit(decls)
900
+ + this.emit('}');
884
901
  };
885
902
 
886
903
  /**
@@ -888,13 +905,19 @@ Compiler.prototype.rule = function(node){
888
905
  */
889
906
 
890
907
  Compiler.prototype.declaration = function(node){
891
- return node.property + ':' + node.value + ';';
908
+ return this.emit(node.property + ':' + node.value, node.position) + this.emit(';');
892
909
  };
893
910
 
894
911
 
895
912
  });
896
913
  require.register("visionmedia-css-stringify/lib/identity.js", function(exports, require, module){
897
914
 
915
+ /**
916
+ * Module dependencies.
917
+ */
918
+
919
+ var Base = require('./compiler');
920
+
898
921
  /**
899
922
  * Expose compiler.
900
923
  */
@@ -907,23 +930,22 @@ module.exports = Compiler;
907
930
 
908
931
  function Compiler(options) {
909
932
  options = options || {};
933
+ Base.call(this, options);
910
934
  this.indentation = options.indent;
911
935
  }
912
936
 
913
937
  /**
914
- * Compile `node`.
938
+ * Inherit from `Base.prototype`.
915
939
  */
916
940
 
917
- Compiler.prototype.compile = function(node){
918
- return this.stylesheet(node);
919
- };
941
+ Compiler.prototype.__proto__ = Base.prototype;
920
942
 
921
943
  /**
922
- * Visit `node`.
944
+ * Compile `node`.
923
945
  */
924
946
 
925
- Compiler.prototype.visit = function(node){
926
- return this[node.type](node);
947
+ Compiler.prototype.compile = function(node){
948
+ return this.stylesheet(node);
927
949
  };
928
950
 
929
951
  /**
@@ -931,9 +953,7 @@ Compiler.prototype.visit = function(node){
931
953
  */
932
954
 
933
955
  Compiler.prototype.stylesheet = function(node){
934
- return node.stylesheet
935
- .rules.map(this.visit, this)
936
- .join('\n\n');
956
+ return this.mapVisit(node.stylesheet.rules, '\n\n');
937
957
  };
938
958
 
939
959
  /**
@@ -941,7 +961,7 @@ Compiler.prototype.stylesheet = function(node){
941
961
  */
942
962
 
943
963
  Compiler.prototype.comment = function(node){
944
- return this.indent() + '/*' + node.comment + '*/';
964
+ return this.emit(this.indent() + '/*' + node.comment + '*/', node.position);
945
965
  };
946
966
 
947
967
  /**
@@ -949,7 +969,7 @@ Compiler.prototype.comment = function(node){
949
969
  */
950
970
 
951
971
  Compiler.prototype.import = function(node){
952
- return '@import ' + node.import + ';';
972
+ return this.emit('@import ' + node.import + ';', node.position);
953
973
  };
954
974
 
955
975
  /**
@@ -957,13 +977,14 @@ Compiler.prototype.import = function(node){
957
977
  */
958
978
 
959
979
  Compiler.prototype.media = function(node){
960
- return '@media '
961
- + node.media
962
- + ' {\n'
963
- + this.indent(1)
964
- + node.rules.map(this.visit, this).join('\n\n')
965
- + this.indent(-1)
966
- + '\n}';
980
+ return this.emit('@media ' + node.media, node.position, true)
981
+ + this.emit(
982
+ ' {\n'
983
+ + this.indent(1))
984
+ + this.mapVisit(node.rules, '\n\n')
985
+ + this.emit(
986
+ this.indent(-1)
987
+ + '\n}');
967
988
  };
968
989
 
969
990
  /**
@@ -973,12 +994,15 @@ Compiler.prototype.media = function(node){
973
994
  Compiler.prototype.document = function(node){
974
995
  var doc = '@' + (node.vendor || '') + 'document ' + node.document;
975
996
 
976
- return doc + ' '
977
- + ' {\n'
978
- + this.indent(1)
979
- + node.rules.map(this.visit, this).join('\n\n')
980
- + this.indent(-1)
981
- + '\n}';
997
+ return this.emit(doc, node.position, true)
998
+ + this.emit(
999
+ ' '
1000
+ + ' {\n'
1001
+ + this.indent(1))
1002
+ + this.mapVisit(node.rules, '\n\n')
1003
+ + this.emit(
1004
+ this.indent(-1)
1005
+ + '\n}');
982
1006
  };
983
1007
 
984
1008
  /**
@@ -986,7 +1010,7 @@ Compiler.prototype.document = function(node){
986
1010
  */
987
1011
 
988
1012
  Compiler.prototype.charset = function(node){
989
- return '@charset ' + node.charset + ';\n';
1013
+ return this.emit('@charset ' + node.charset + ';', node.position);
990
1014
  };
991
1015
 
992
1016
  /**
@@ -994,7 +1018,7 @@ Compiler.prototype.charset = function(node){
994
1018
  */
995
1019
 
996
1020
  Compiler.prototype.namespace = function(node){
997
- return '@namespace ' + node.namespace + ';\n';
1021
+ return this.emit('@namespace ' + node.namespace + ';', node.position);
998
1022
  };
999
1023
 
1000
1024
  /**
@@ -1002,13 +1026,14 @@ Compiler.prototype.namespace = function(node){
1002
1026
  */
1003
1027
 
1004
1028
  Compiler.prototype.supports = function(node){
1005
- return '@supports '
1006
- + node.supports
1007
- + ' {\n'
1008
- + this.indent(1)
1009
- + node.rules.map(this.visit, this).join('\n\n')
1010
- + this.indent(-1)
1011
- + '\n}';
1029
+ return this.emit('@supports ' + node.supports, node.position, true)
1030
+ + this.emit(
1031
+ ' {\n'
1032
+ + this.indent(1))
1033
+ + this.mapVisit(node.rules, '\n\n')
1034
+ + this.emit(
1035
+ this.indent(-1)
1036
+ + '\n}');
1012
1037
  };
1013
1038
 
1014
1039
  /**
@@ -1016,15 +1041,14 @@ Compiler.prototype.supports = function(node){
1016
1041
  */
1017
1042
 
1018
1043
  Compiler.prototype.keyframes = function(node){
1019
- return '@'
1020
- + (node.vendor || '')
1021
- + 'keyframes '
1022
- + node.name
1023
- + ' {\n'
1024
- + this.indent(1)
1025
- + node.keyframes.map(this.visit, this).join('\n')
1026
- + this.indent(-1)
1027
- + '}';
1044
+ return this.emit('@' + (node.vendor || '') + 'keyframes ' + node.name, node.position, true)
1045
+ + this.emit(
1046
+ ' {\n'
1047
+ + this.indent(1))
1048
+ + this.mapVisit(node.keyframes, '\n')
1049
+ + this.emit(
1050
+ this.indent(-1)
1051
+ + '}');
1028
1052
  };
1029
1053
 
1030
1054
  /**
@@ -1034,13 +1058,16 @@ Compiler.prototype.keyframes = function(node){
1034
1058
  Compiler.prototype.keyframe = function(node){
1035
1059
  var decls = node.declarations;
1036
1060
 
1037
- return this.indent()
1038
- + node.values.join(', ')
1039
- + ' {\n'
1040
- + this.indent(1)
1041
- + decls.map(this.visit, this).join('\n')
1042
- + this.indent(-1)
1043
- + '\n' + this.indent() + '}\n';
1061
+ return this.emit(this.indent())
1062
+ + this.emit(node.values.join(', '), node.position, true)
1063
+ + this.emit(
1064
+ ' {\n'
1065
+ + this.indent(1))
1066
+ + this.mapVisit(decls, '\n')
1067
+ + this.emit(
1068
+ this.indent(-1)
1069
+ + '\n'
1070
+ + this.indent() + '}\n');
1044
1071
  };
1045
1072
 
1046
1073
  /**
@@ -1052,12 +1079,12 @@ Compiler.prototype.page = function(node){
1052
1079
  ? node.selectors.join(', ') + ' '
1053
1080
  : '';
1054
1081
 
1055
- return '@page ' + sel
1056
- + '{\n'
1057
- + this.indent(1)
1058
- + node.declarations.map(this.visit, this).join('\n')
1059
- + this.indent(-1)
1060
- + '\n}';
1082
+ return this.emit('@page ' + sel, node.position, true)
1083
+ + this.emit('{\n')
1084
+ + this.emit(this.indent(1))
1085
+ + this.mapVisit(node.declarations, '\n')
1086
+ + this.emit(this.indent(-1))
1087
+ + this.emit('\n}');
1061
1088
  };
1062
1089
 
1063
1090
  /**
@@ -1069,12 +1096,12 @@ Compiler.prototype.rule = function(node){
1069
1096
  var decls = node.declarations;
1070
1097
  if (!decls.length) return '';
1071
1098
 
1072
- return node.selectors.map(function(s){ return indent + s }).join(',\n')
1073
- + ' {\n'
1074
- + this.indent(1)
1075
- + decls.map(this.visit, this).join('\n')
1076
- + this.indent(-1)
1077
- + '\n' + this.indent() + '}';
1099
+ return this.emit(node.selectors.map(function(s){ return indent + s }).join(',\n'), node.position, true)
1100
+ + this.emit(' {\n')
1101
+ + this.emit(this.indent(1))
1102
+ + this.mapVisit(decls, '\n')
1103
+ + this.emit(this.indent(-1))
1104
+ + this.emit('\n' + this.indent() + '}');
1078
1105
  };
1079
1106
 
1080
1107
  /**
@@ -1082,7 +1109,9 @@ Compiler.prototype.rule = function(node){
1082
1109
  */
1083
1110
 
1084
1111
  Compiler.prototype.declaration = function(node){
1085
- return this.indent() + node.property + ': ' + node.value + ';';
1112
+ return this.emit(this.indent())
1113
+ + this.emit(node.property + ': ' + node.value, node.position)
1114
+ + this.emit(';');
1086
1115
  };
1087
1116
 
1088
1117
  /**
@@ -1100,6 +1129,146 @@ Compiler.prototype.indent = function(level) {
1100
1129
  return Array(this.level).join(this.indentation || ' ');
1101
1130
  };
1102
1131
 
1132
+ });
1133
+ require.register("visionmedia-css-stringify/lib/compiler.js", function(exports, require, module){
1134
+
1135
+ /**
1136
+ * Expose `Compiler`.
1137
+ */
1138
+
1139
+ module.exports = Compiler;
1140
+
1141
+ /**
1142
+ * Initialize a compiler.
1143
+ *
1144
+ * @param {Type} name
1145
+ * @return {Type}
1146
+ * @api public
1147
+ */
1148
+
1149
+ function Compiler(opts) {
1150
+ this.options = opts || {};
1151
+ }
1152
+
1153
+ /**
1154
+ * Emit `str`
1155
+ */
1156
+
1157
+ Compiler.prototype.emit = function(str) {
1158
+ return str;
1159
+ };
1160
+
1161
+ /**
1162
+ * Visit `node`.
1163
+ */
1164
+
1165
+ Compiler.prototype.visit = function(node){
1166
+ return this[node.type](node);
1167
+ };
1168
+
1169
+ /**
1170
+ * Map visit over array of `nodes`, optionally using a `delim`
1171
+ */
1172
+
1173
+ Compiler.prototype.mapVisit = function(nodes, delim){
1174
+ var buf = '';
1175
+ delim = delim || '';
1176
+
1177
+ for (var i = 0, length = nodes.length; i < length; i++) {
1178
+ buf += this.visit(nodes[i]);
1179
+ if (delim && i < length - 1) buf += this.emit(delim);
1180
+ }
1181
+
1182
+ return buf;
1183
+ };
1184
+
1185
+ });
1186
+ require.register("visionmedia-css-stringify/lib/source-map-support.js", function(exports, require, module){
1187
+
1188
+ /**
1189
+ * Module dependencies.
1190
+ */
1191
+
1192
+ var SourceMap = require('source-map').SourceMapGenerator;
1193
+
1194
+ /**
1195
+ * Expose `mixin()`.
1196
+ */
1197
+
1198
+ module.exports = mixin;
1199
+
1200
+ /**
1201
+ * Mixin source map support into `compiler`.
1202
+ *
1203
+ * @param {Compiler} compiler
1204
+ * @api public
1205
+ */
1206
+
1207
+ function mixin(compiler) {
1208
+ var file = compiler.options.filename || 'generated.css';
1209
+ compiler.map = new SourceMap({ file: file });
1210
+ compiler.position = { line: 1, column: 1 };
1211
+ for (var k in exports) compiler[k] = exports[k];
1212
+ }
1213
+
1214
+ /**
1215
+ * Update position.
1216
+ *
1217
+ * @param {String} str
1218
+ * @api private
1219
+ */
1220
+
1221
+ exports.updatePosition = function(str) {
1222
+ var lines = str.match(/\n/g);
1223
+ if (lines) this.position.line += lines.length;
1224
+ var i = str.lastIndexOf('\n');
1225
+ this.position.column = ~i ? str.length - i : this.position.column + str.length;
1226
+ };
1227
+
1228
+ /**
1229
+ * Emit `str`.
1230
+ *
1231
+ * @param {String} str
1232
+ * @param {Number} [pos]
1233
+ * @param {Boolean} [startOnly]
1234
+ * @return {String}
1235
+ * @api private
1236
+ */
1237
+
1238
+ exports.emit = function(str, pos, startOnly) {
1239
+ if (pos && pos.start) {
1240
+ this.map.addMapping({
1241
+ source: pos.source || 'source.css',
1242
+ generated: {
1243
+ line: this.position.line,
1244
+ column: Math.max(this.position.column - 1, 0)
1245
+ },
1246
+ original: {
1247
+ line: pos.start.line,
1248
+ column: pos.start.column - 1
1249
+ }
1250
+ });
1251
+ }
1252
+
1253
+ this.updatePosition(str);
1254
+
1255
+ if (!startOnly && pos && pos.end) {
1256
+ this.map.addMapping({
1257
+ source: pos.source || 'source.css',
1258
+ generated: {
1259
+ line: this.position.line,
1260
+ column: Math.max(this.position.column - 1, 0)
1261
+ },
1262
+ original: {
1263
+ line: pos.end.line,
1264
+ column: pos.end.column - 1
1265
+ }
1266
+ });
1267
+ }
1268
+
1269
+ return str;
1270
+ };
1271
+
1103
1272
  });
1104
1273
  require.register("autoprefixer/data/browsers.js", function(exports, require, module){
1105
1274
  (function() {
@@ -1109,46 +1278,46 @@ require.register("autoprefixer/data/browsers.js", function(exports, require, mod
1109
1278
  minor: true,
1110
1279
  future: [4.4],
1111
1280
  versions: [4.3, 4.2, 4.1, 4, 3, 2.3, 2.2, 2.1],
1112
- popularity: [0.371819, 0.371819, 1.87417, 0.994867, 0.00502458, 1.32146, 0.0854178, 0.0251229]
1281
+ popularity: [0.393833, 0.393833, 1.98513, 1.05377, 0.00532207, 1.3997, 0.0904751, 0.0266103]
1113
1282
  },
1114
1283
  bb: {
1115
1284
  prefix: "-webkit-",
1116
1285
  minor: true,
1117
1286
  versions: [10, 7],
1118
- popularity: [0, 0.141419]
1287
+ popularity: [0, 0.160821]
1119
1288
  },
1120
1289
  chrome: {
1121
1290
  prefix: "-webkit-",
1122
1291
  future: [33, 32],
1123
1292
  versions: [31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4],
1124
- popularity: [0.16058, 24.6089, 5.08236, 0.610204, 0.369334, 0.353276, 0.361305, 0.200725, 0.216783, 0.248899, 0.48174, 0.040145, 0.040145, 0.08029, 0.040145, 0.048174, 0.072261, 0.056203, 0.056203, 0.064232, 0.112406, 0.048174, 0.024087, 0.032116, 0.024087, 0.032116, 0.024087, 0.024087]
1293
+ popularity: [14.7206, 15.7521, 0.631684, 0.415792, 0.335832, 0.391804, 0.263868, 0.175912, 0.191904, 0.231884, 0.47976, 0.03998, 0.03998, 0.095952, 0.031984, 0.047976, 0.071964, 0.055972, 0.055972, 0.063968, 0.111944, 0.03998, 0.023988, 0.031984, 0.023988, 0.031984, 0.023988, 0.023988]
1125
1294
  },
1126
1295
  ff: {
1127
1296
  prefix: "-moz-",
1128
1297
  future: [27, 26],
1129
1298
  versions: [25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3.6, 3.5, 3, 2],
1130
- popularity: [0.529914, 11.0318, 0.907277, 0.256928, 0.216783, 0.16058, 0.128464, 0.112406, 0.192696, 0.264957, 0.136493, 0.096348, 0.096348, 0.208754, 0.088319, 0.112406, 0.056203, 0.072261, 0.040145, 0.048174, 0.048174, 0.072261, 0.305102, 0.040145, 0.088319, 0.016058]
1299
+ popularity: [9.51524, 2.47076, 0.295852, 0.1999, 0.191904, 0.143928, 0.11994, 0.095952, 0.191904, 0.23988, 0.135932, 0.087956, 0.087956, 0.191904, 0.087956, 0.103948, 0.055972, 0.063968, 0.03998, 0.047976, 0.03998, 0.063968, 0.311844, 0.03998, 0.087956, 0.015992]
1131
1300
  },
1132
1301
  ie: {
1133
1302
  prefix: "-ms-",
1134
1303
  versions: [11, 10, 9, 8, 7, 6, 5.5],
1135
- popularity: [0.114751, 10.7866, 5.21297, 8.31124, 0.508182, 0.204912, 0.009298]
1304
+ popularity: [1.28176, 9.68717, 4.62585, 7.55911, 0.435471, 0.246493, 0.009298]
1136
1305
  },
1137
1306
  ios: {
1138
1307
  prefix: "-webkit-",
1139
1308
  versions: [7, 6.1, 6, 5.1, 5, 4.3, 4.2, 4.1, 4, 3.2],
1140
- popularity: [2.52071, 0.578165, 0.578165, 0.14204, 0.14204, 0.01400395, 0.01400395, 0.00400113, 0.00400113, 0.00400113]
1309
+ popularity: [2.91427, 0.517185, 0.517185, 0.154512, 0.154512, 0.015022, 0.015022, 0.004292, 0.004292, 0.004292]
1141
1310
  },
1142
1311
  opera: {
1143
1312
  prefix: "-o-",
1144
1313
  future: [18],
1145
1314
  versions: [17, 16, 15, 12.1, 12, 11.6, 11.5, 11.1, 11, 10.6, 10.5, 10.1, 10, 9.6, 9.5],
1146
- popularity: [0.16058, 0.104377, 0.032116, 0.48174, 0.040145, 0.032116, 0.016058, 0.008219, 0.008219, 0.008029, 0.008392, 0.008029, 0.008029, 0.0041095, 0.0041095]
1315
+ popularity: [0.191904, 0.03998, 0.023988, 0.447776, 0.03998, 0.023988, 0.015992, 0.008219, 0.008219, 0.007996, 0.008392, 0.007996, 0.007996, 0.003998, 0.003998]
1147
1316
  },
1148
1317
  safari: {
1149
1318
  prefix: "-webkit-",
1150
1319
  versions: [7, 6.1, 6, 5.1, 5, 4, 3.2, 3.1],
1151
- popularity: [0.16058, 0.064232, 2.04739, 1.28464, 0.305102, 0.104377, 0.008692, 0]
1320
+ popularity: [0.751624, 0.583708, 0.943528, 1.0075, 0.295852, 0.111944, 0.008692, 0]
1152
1321
  }
1153
1322
  };
1154
1323
 
@@ -1374,7 +1543,7 @@ require.register("autoprefixer/data/prefixes.js", function(exports, require, mod
1374
1543
  "linear-gradient": {
1375
1544
  props: ["background", "background-image", "border-image"],
1376
1545
  mistakes: ["-ms-"],
1377
- browsers: ["android 2.1 old", "android 2.2 old", "android 2.3 old", "android 3 old", "android 4", "android 4.1", "android 4.2", "android 4.3", "bb 7", "bb 10", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "ff 3.6", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "safari 4", "safari 5", "safari 5.1", "safari 6"]
1546
+ browsers: ["android 2.1 old", "android 2.2 old", "android 2.3 old", "android 3 old", "android 4", "android 4.1", "android 4.2", "android 4.3", "bb 7", "bb 10", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "ff 3.6", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ios 3.2 old", "ios 4 old", "ios 4.1 old", "ios 4.2 old", "ios 4.3 old", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "safari 4 old", "safari 5 old", "safari 5.1", "safari 6"]
1378
1547
  },
1379
1548
  "max-content": {
1380
1549
  props: ["width", "min-width", "max-width", "height", "min-height", "max-height"],
@@ -1398,17 +1567,17 @@ require.register("autoprefixer/data/prefixes.js", function(exports, require, mod
1398
1567
  "radial-gradient": {
1399
1568
  props: ["background", "background-image", "border-image"],
1400
1569
  mistakes: ["-ms-"],
1401
- browsers: ["android 2.1 old", "android 2.2 old", "android 2.3 old", "android 3 old", "android 4", "android 4.1", "android 4.2", "android 4.3", "bb 7", "bb 10", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "ff 3.6", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "safari 4", "safari 5", "safari 5.1", "safari 6"]
1570
+ browsers: ["android 2.1 old", "android 2.2 old", "android 2.3 old", "android 3 old", "android 4", "android 4.1", "android 4.2", "android 4.3", "bb 7", "bb 10", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "ff 3.6", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ios 3.2 old", "ios 4 old", "ios 4.1 old", "ios 4.2 old", "ios 4.3 old", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "safari 4 old", "safari 5 old", "safari 5.1", "safari 6"]
1402
1571
  },
1403
1572
  "repeating-linear-gradient": {
1404
1573
  props: ["background", "background-image", "border-image"],
1405
1574
  mistakes: ["-ms-"],
1406
- browsers: ["android 2.1 old", "android 2.2 old", "android 2.3 old", "android 3 old", "android 4", "android 4.1", "android 4.2", "android 4.3", "bb 7", "bb 10", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "ff 3.6", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "safari 4", "safari 5", "safari 5.1", "safari 6"]
1575
+ browsers: ["android 2.1 old", "android 2.2 old", "android 2.3 old", "android 3 old", "android 4", "android 4.1", "android 4.2", "android 4.3", "bb 7", "bb 10", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "ff 3.6", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ios 3.2 old", "ios 4 old", "ios 4.1 old", "ios 4.2 old", "ios 4.3 old", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "safari 4 old", "safari 5 old", "safari 5.1", "safari 6"]
1407
1576
  },
1408
1577
  "repeating-radial-gradient": {
1409
1578
  props: ["background", "background-image", "border-image"],
1410
1579
  mistakes: ["-ms-"],
1411
- browsers: ["android 2.1 old", "android 2.2 old", "android 2.3 old", "android 3 old", "android 4", "android 4.1", "android 4.2", "android 4.3", "bb 7", "bb 10", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "ff 3.6", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ios 3.2", "ios 4", "ios 4.1", "ios 4.2", "ios 4.3", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "safari 4", "safari 5", "safari 5.1", "safari 6"]
1580
+ browsers: ["android 2.1 old", "android 2.2 old", "android 2.3 old", "android 3 old", "android 4", "android 4.1", "android 4.2", "android 4.3", "bb 7", "bb 10", "chrome 4", "chrome 5", "chrome 6", "chrome 7", "chrome 8", "chrome 9", "chrome 10", "chrome 11", "chrome 12", "chrome 13", "chrome 14", "chrome 15", "chrome 16", "chrome 17", "chrome 18", "chrome 19", "chrome 20", "chrome 21", "chrome 22", "chrome 23", "chrome 24", "chrome 25", "ff 3.6", "ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ios 3.2 old", "ios 4 old", "ios 4.1 old", "ios 4.2 old", "ios 4.3 old", "ios 5", "ios 5.1", "ios 6", "ios 6.1", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "safari 4 old", "safari 5 old", "safari 5.1", "safari 6"]
1412
1581
  },
1413
1582
  "tab-size": {
1414
1583
  browsers: ["ff 4", "ff 5", "ff 6", "ff 7", "ff 8", "ff 9", "ff 10", "ff 11", "ff 12", "ff 13", "ff 14", "ff 15", "ff 16", "ff 17", "ff 18", "ff 19", "ff 20", "ff 21", "ff 22", "ff 23", "ff 24", "ff 25", "ff 26", "ff 27", "opera 10.6", "opera 11", "opera 11.1", "opera 11.5", "opera 11.6", "opera 12", "opera 12.1"]
@@ -2731,14 +2900,14 @@ require.register("autoprefixer/lib/autoprefixer/hacks/gradient.js", function(exp
2731
2900
  };
2732
2901
 
2733
2902
  Gradient.prototype.oldDirections = {
2734
- 'top': 'bottom left, top left',
2735
- 'left': 'top right, top left',
2736
- 'bottom': 'top left, bottom left',
2737
- 'right': 'top left, top right',
2738
- 'top right': 'bottom left, top right',
2739
- 'top left': 'bottom right, top left',
2740
- 'bottom right': 'top left, bottom right',
2741
- 'bottom left': 'top right, bottom left'
2903
+ 'top': 'left bottom, left top',
2904
+ 'left': 'right top, left top',
2905
+ 'bottom': 'left top, left bottom',
2906
+ 'right': 'left top, right top',
2907
+ 'top right': 'left bottom, right top',
2908
+ 'top left': 'right bottom, left top',
2909
+ 'bottom right': 'left top, right bottom',
2910
+ 'bottom left': 'right top, left bottom'
2742
2911
  };
2743
2912
 
2744
2913
  Gradient.prototype.splitDecls = function(decl) {
@@ -4075,7 +4244,7 @@ require.register("autoprefixer/lib/autoprefixer/updater.js", function(exports, r
4075
4244
  sorted[key] = json[key];
4076
4245
  }
4077
4246
  file = __dirname + ("/../../data/" + name);
4078
- content = "# Don't edit this files, because it's autogenerated.\n" + "# See updaters/ dir for generator. Run bin/update to update." + "\n\n";
4247
+ content = "# Don't edit this files, because it's autogenerated.\n" + "# See updaters/ dir for generator. " + "Run `bin/autoprefixer --update` to update." + "\n\n";
4079
4248
  content += "module.exports =" + this.stringify(sorted) + ";\n";
4080
4249
  if (fs.existsSync(file + '.js')) {
4081
4250
  file += '.js';
@@ -4354,7 +4523,7 @@ require.register("autoprefixer/updaters/prefixes.js", function(exports, require,
4354
4523
  });
4355
4524
  this.feature('css-gradients', function(browsers) {
4356
4525
  browsers = _this.map(browsers, function(browser, name, version) {
4357
- if (name === 'android' && version < 4) {
4526
+ if (name === 'android' && version < 4 || name === 'safari' && version < 5.1 || name === 'ios' && version < 5) {
4358
4527
  return browser + ' old';
4359
4528
  } else {
4360
4529
  return browser;
@@ -4491,6 +4660,8 @@ require.alias("visionmedia-css-parse/index.js", "css-parse/index.js");
4491
4660
  require.alias("visionmedia-css-stringify/index.js", "autoprefixer/deps/css-stringify/index.js");
4492
4661
  require.alias("visionmedia-css-stringify/lib/compress.js", "autoprefixer/deps/css-stringify/lib/compress.js");
4493
4662
  require.alias("visionmedia-css-stringify/lib/identity.js", "autoprefixer/deps/css-stringify/lib/identity.js");
4663
+ require.alias("visionmedia-css-stringify/lib/compiler.js", "autoprefixer/deps/css-stringify/lib/compiler.js");
4664
+ require.alias("visionmedia-css-stringify/lib/source-map-support.js", "autoprefixer/deps/css-stringify/lib/source-map-support.js");
4494
4665
  require.alias("visionmedia-css-stringify/index.js", "css-stringify/index.js");
4495
4666
 
4496
4667
  require.alias("autoprefixer/lib/autoprefixer.js", "autoprefixer/index.js");if (typeof exports == "object") {
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.20131205
4
+ version: 0.8.20131209
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-12-05 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs