compass 1.0.0.alpha.17 → 1.0.0.alpha.18
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/RELEASE_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/compass.rb +0 -1
- data/lib/compass/compiler.rb +5 -3
- data/lib/compass/frameworks.rb +22 -0
- data/test/fixtures/stylesheets/compass/css/browser-support.css +23 -15
- data/test/fixtures/stylesheets/compass/css/filters.css +6 -6
- data/test/fixtures/stylesheets/compass/css/fonts.css +1 -1
- data/test/fixtures/stylesheets/compass/css/support.css +6 -6
- data/test/fixtures/stylesheets/compass/sass/support.scss +1 -1
- data/test/units/caniuse_test.rb +2 -2
- data/test/units/sass_extensions_test.rb +12 -1
- metadata +8 -11
- data/lib/compass/util.rb +0 -19
- data/test/fixtures/stylesheets/compass/sass/sprites.scss +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bed8b65b09fbe50a999ee8a9db57dcc59c9cba64
|
4
|
+
data.tar.gz: da81a2212b1e5644a9b37fb85a1605e7763fcb1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dfcd52c8d48b7ac26569e24eb520af2589a39fb5ffefe340ee4b287344ee55c60a839751c7e0eca97c1166308411054822abcd996c7e989cbae1169782c1d2d
|
7
|
+
data.tar.gz: f1e2edfe0877543b11446854cebbbedf161d9841a7b3ddfc34639c06f234ad8e7137e37252957234a8156fd5c49887b48a9929c25092085fb63dd6c327892f23
|
data/RELEASE_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.alpha.
|
1
|
+
1.0.0.alpha.18
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.alpha.
|
1
|
+
1.0.0.alpha.17
|
data/lib/compass.rb
CHANGED
data/lib/compass/compiler.rb
CHANGED
@@ -174,14 +174,16 @@ module Compass
|
|
174
174
|
end
|
175
175
|
duration = options[:time] ? "(#{(css_content.__duration * 1000).round / 1000.0}s)" : ""
|
176
176
|
write_file(css_filename, css_content, options.merge(:force => true, :extra => duration), sass_options[:unix_newlines])
|
177
|
-
|
177
|
+
Compass.configuration.run_stylesheet_saved(css_filename)
|
178
|
+
if sourcemap && sourcemap_filename
|
178
179
|
sourcemap_content = sourcemap.to_json(:css_path => css_filename,
|
179
180
|
:sourcemap_path => sourcemap_filename)
|
180
181
|
write_file(sourcemap_filename, sourcemap_content, options.merge(:force => true), sass_options[:unix_newlines])
|
181
|
-
|
182
|
+
Compass.configuration.run_sourcemap_saved(sourcemap_filename)
|
183
|
+
elsif sourcemap_filename && File.exist?(sourcemap_filename)
|
182
184
|
remove sourcemap_filename
|
185
|
+
Compass.configuration.run_sourcemap_removed(sourcemap_filename)
|
183
186
|
end
|
184
|
-
Compass.configuration.run_stylesheet_saved(css_filename)
|
185
187
|
end
|
186
188
|
|
187
189
|
def relative_path(from_path, to_path)
|
data/lib/compass/frameworks.rb
CHANGED
@@ -7,6 +7,7 @@ module Compass
|
|
7
7
|
class Framework
|
8
8
|
attr_accessor :name
|
9
9
|
attr_accessor :path
|
10
|
+
attr_accessor :version
|
10
11
|
attr_accessor :templates_directory, :stylesheets_directory
|
11
12
|
def initialize(name, *arguments)
|
12
13
|
options = arguments.last.is_a?(Hash) ? arguments.pop : {}
|
@@ -16,7 +17,9 @@ module Compass
|
|
16
17
|
@templates_directory ||= File.join(path, 'templates') if path
|
17
18
|
@stylesheets_directory = options[:stylesheets_directory]
|
18
19
|
@stylesheets_directory ||= File.join(path, 'stylesheets') if path
|
20
|
+
@version = options[:version]
|
19
21
|
end
|
22
|
+
|
20
23
|
def template_directories
|
21
24
|
if templates_directory
|
22
25
|
Dir.glob(File.join(templates_directory, "*")).map{|f| File.basename(f)}
|
@@ -24,9 +27,11 @@ module Compass
|
|
24
27
|
[]
|
25
28
|
end
|
26
29
|
end
|
30
|
+
|
27
31
|
def manifest_file(pattern)
|
28
32
|
File.join(templates_directory, pattern.to_s, "manifest.rb")
|
29
33
|
end
|
34
|
+
|
30
35
|
def manifest(pattern, options = {})
|
31
36
|
options[:pattern_name] ||= pattern
|
32
37
|
Compass::Installers::Manifest.new(manifest_file(pattern), options)
|
@@ -42,6 +47,14 @@ module Compass
|
|
42
47
|
end
|
43
48
|
|
44
49
|
def register(name, *arguments)
|
50
|
+
opts = if arguments.last.is_a?(Hash)
|
51
|
+
arguments.last
|
52
|
+
else
|
53
|
+
o = {}
|
54
|
+
arguments << o
|
55
|
+
o
|
56
|
+
end
|
57
|
+
opts[:version] ||= guess_gem_version(caller[0])
|
45
58
|
@registered = Framework.new(name, *arguments)
|
46
59
|
if idx = ALL.index(self[name])
|
47
60
|
ALL[idx] = @registered
|
@@ -54,6 +67,15 @@ module Compass
|
|
54
67
|
ALL.detect{|f| f.name.to_s == name.to_s}
|
55
68
|
end
|
56
69
|
|
70
|
+
def guess_gem_version(line_reference)
|
71
|
+
if line_reference =~ %r{/gems/([^/]*-[^/]*)/}
|
72
|
+
split_at = $1.rindex("-")
|
73
|
+
name = $1[1...split_at]
|
74
|
+
version = $1[(split_at + 1)..-1]
|
75
|
+
version unless name == "compass"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
57
79
|
def discover(frameworks_directory)
|
58
80
|
if frameworks_directory == :defaults
|
59
81
|
warn("The :defaults argument to Compass::Frameworks.discover is no longer necessary")
|
@@ -1,21 +1,28 @@
|
|
1
1
|
.android {
|
2
|
-
versions: "2.1", "2.2", "2.3", "3", "4", "4.1", "4.2";
|
2
|
+
versions: "2.1", "2.2", "2.3", "3", "4", "4.1", "4.2-4.3", "4.4";
|
3
3
|
background-img-opts: -webkit;
|
4
4
|
background-img-opts-unprefixed-at: "3";
|
5
5
|
border-image: -webkit;
|
6
|
+
border-image-unprefixed-at: "4.4";
|
6
7
|
border-radius: -webkit;
|
7
8
|
border-radius-unprefixed-at: "2.2";
|
8
9
|
css-animation: -webkit;
|
9
10
|
css-boxshadow: -webkit;
|
10
11
|
css-boxshadow-unprefixed-at: "4";
|
11
12
|
css-canvas: -webkit;
|
13
|
+
css-filters: -webkit;
|
12
14
|
css-gradients: -webkit;
|
15
|
+
css-gradients-unprefixed-at: "4.4";
|
13
16
|
css-masks: -webkit;
|
14
17
|
css-reflections: -webkit;
|
15
18
|
css-repeating-gradients: -webkit;
|
19
|
+
css-repeating-gradients-unprefixed-at: "4.4";
|
16
20
|
css-transitions: -webkit;
|
21
|
+
css-transitions-unprefixed-at: "4.4";
|
17
22
|
css3-boxsizing: -webkit;
|
18
23
|
css3-boxsizing-unprefixed-at: "4";
|
24
|
+
font-feature: -webkit;
|
25
|
+
intrinsic-width: -webkit;
|
19
26
|
multicolumn: -webkit;
|
20
27
|
text-stroke: -webkit;
|
21
28
|
transforms2d: -webkit;
|
@@ -76,7 +83,7 @@
|
|
76
83
|
user-select-none: -webkit; }
|
77
84
|
|
78
85
|
.chrome {
|
79
|
-
versions: "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31";
|
86
|
+
versions: "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33";
|
80
87
|
border-image: -webkit;
|
81
88
|
border-image-unprefixed-at: "16";
|
82
89
|
border-radius: -webkit;
|
@@ -92,6 +99,7 @@
|
|
92
99
|
css-gradients-unprefixed-at: "26";
|
93
100
|
css-masks: -webkit;
|
94
101
|
css-placeholder: -webkit;
|
102
|
+
css-placeholder-unprefixed-at: "33";
|
95
103
|
css-reflections: -webkit;
|
96
104
|
css-regions: -webkit;
|
97
105
|
css-regions-unprefixed-at: "19";
|
@@ -112,7 +120,7 @@
|
|
112
120
|
user-select-none: -webkit; }
|
113
121
|
|
114
122
|
.firefox {
|
115
|
-
versions: "2", "3", "3.5", "3.6", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25";
|
123
|
+
versions: "2", "3", "3.5", "3.6", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28";
|
116
124
|
background-img-opts: -moz;
|
117
125
|
background-img-opts-unprefixed-at: "4";
|
118
126
|
border-image: -moz;
|
@@ -129,6 +137,7 @@
|
|
129
137
|
css-gradients-unprefixed-at: "16";
|
130
138
|
css-hyphens: -moz;
|
131
139
|
css-placeholder: -moz;
|
140
|
+
css-placeholder-unprefixed-at: "27";
|
132
141
|
css-repeating-gradients: -moz;
|
133
142
|
css-repeating-gradients-unprefixed-at: "16";
|
134
143
|
css-resize: prefix-no-longer-needed;
|
@@ -202,7 +211,7 @@
|
|
202
211
|
user-select-none: -webkit; }
|
203
212
|
|
204
213
|
.opera {
|
205
|
-
versions: "9.5-9.6", "10.0-10.1", "10.5", "10.6", "11", "11.1", "11.5", "11.6", "12", "12.1", "15", "16", "17";
|
214
|
+
versions: "9.5-9.6", "10.0-10.1", "10.5", "10.6", "11", "11.1", "11.5", "11.6", "12", "12.1", "15", "16", "17", "18";
|
206
215
|
background-img-opts: prefix-no-longer-needed;
|
207
216
|
background-img-opts-unprefixed-at: "10.5";
|
208
217
|
border-image: -o;
|
@@ -223,6 +232,7 @@
|
|
223
232
|
css3-tabsize: -o;
|
224
233
|
css3-tabsize-unprefixed-at: "15";
|
225
234
|
flexbox: prefix-no-longer-needed;
|
235
|
+
flexbox-unprefixed-at: "17";
|
226
236
|
font-feature: prefix-no-longer-needed;
|
227
237
|
intrinsic-width: prefix-no-longer-needed;
|
228
238
|
multicolumn: prefix-no-longer-needed;
|
@@ -240,29 +250,27 @@
|
|
240
250
|
text-overflow: -o; }
|
241
251
|
|
242
252
|
.opera-mobile {
|
243
|
-
versions: "10", "11.5", "12", "12.1", "
|
253
|
+
versions: "10", "11.5", "12", "12.1", "0";
|
244
254
|
border-image: -o;
|
245
|
-
border-image-unprefixed-at: "
|
255
|
+
border-image-unprefixed-at: "0";
|
246
256
|
css-animation: prefix-no-longer-needed;
|
247
257
|
css-canvas: prefix-no-longer-needed;
|
248
258
|
css-filters: prefix-no-longer-needed;
|
249
259
|
css-gradients: -o;
|
250
260
|
css-gradients-unprefixed-at: "12.1";
|
251
261
|
css-masks: prefix-no-longer-needed;
|
252
|
-
css-placeholder: prefix-no-longer-needed;
|
253
262
|
css-reflections: prefix-no-longer-needed;
|
254
263
|
css-repeating-gradients: -o;
|
255
264
|
css-repeating-gradients-unprefixed-at: "12.1";
|
256
265
|
css-transitions: -o;
|
257
266
|
css-transitions-unprefixed-at: "12.1";
|
258
267
|
css3-tabsize: -o;
|
259
|
-
css3-tabsize-unprefixed-at: "
|
260
|
-
flexbox: prefix-no-longer-needed;
|
268
|
+
css3-tabsize-unprefixed-at: "0";
|
261
269
|
font-feature: prefix-no-longer-needed;
|
262
270
|
intrinsic-width: prefix-no-longer-needed;
|
263
271
|
multicolumn: prefix-no-longer-needed;
|
264
272
|
object-fit: -o;
|
265
|
-
object-fit-unprefixed-at: "
|
273
|
+
object-fit-unprefixed-at: "0";
|
266
274
|
text-overflow: -o;
|
267
275
|
text-overflow-unprefixed-at: "12.1";
|
268
276
|
text-stroke: prefix-no-longer-needed;
|
@@ -271,29 +279,29 @@
|
|
271
279
|
user-select-none: prefix-no-longer-needed; }
|
272
280
|
|
273
281
|
.safari {
|
274
|
-
versions: "3.1", "3.2", "4", "5", "5.1", "6", "7";
|
282
|
+
versions: "3.1", "3.2", "4", "5", "5.1", "6", "6.1", "7";
|
275
283
|
border-image: -webkit;
|
276
284
|
border-image-unprefixed-at: "6";
|
277
285
|
border-radius: -webkit;
|
278
286
|
border-radius-unprefixed-at: "5";
|
279
287
|
calc: -webkit;
|
280
|
-
calc-unprefixed-at: "
|
288
|
+
calc-unprefixed-at: "6.1";
|
281
289
|
css-animation: -webkit;
|
282
290
|
css-boxshadow: -webkit;
|
283
291
|
css-boxshadow-unprefixed-at: "5.1";
|
284
292
|
css-canvas: -webkit;
|
285
293
|
css-filters: -webkit;
|
286
294
|
css-gradients: -webkit;
|
287
|
-
css-gradients-unprefixed-at: "
|
295
|
+
css-gradients-unprefixed-at: "6.1";
|
288
296
|
css-hyphens: -webkit;
|
289
297
|
css-masks: -webkit;
|
290
298
|
css-placeholder: -webkit;
|
291
299
|
css-reflections: -webkit;
|
292
300
|
css-regions: -webkit;
|
293
301
|
css-repeating-gradients: -webkit;
|
294
|
-
css-repeating-gradients-unprefixed-at: "
|
302
|
+
css-repeating-gradients-unprefixed-at: "6.1";
|
295
303
|
css-transitions: -webkit;
|
296
|
-
css-transitions-unprefixed-at: "
|
304
|
+
css-transitions-unprefixed-at: "6.1";
|
297
305
|
css3-boxsizing: -webkit;
|
298
306
|
css3-boxsizing-unprefixed-at: "5.1";
|
299
307
|
flexbox: -webkit;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/* Capability css-filters is not prefixed with -moz because 0% of users are affected which is less than the threshold of 0.1. */
|
3
3
|
/* Capability css-filters is not prefixed with -ms because 0% of users are affected which is less than the threshold of 0.1. */
|
4
4
|
/* Capability css-filters is not prefixed with -o because 0% of users are affected which is less than the threshold of 0.1. */
|
5
|
-
/* Capability css-filters is prefixed with -webkit because
|
5
|
+
/* Capability css-filters is prefixed with -webkit because 41.8008% of users need it which is more than the threshold of 0.1%. */
|
6
6
|
/* Creating new -webkit context. */
|
7
7
|
-webkit-filter: blur(5px);
|
8
8
|
filter: blur(5px); }
|
@@ -11,7 +11,7 @@
|
|
11
11
|
/* Capability css-filters is not prefixed with -moz because 0% of users are affected which is less than the threshold of 0.1. */
|
12
12
|
/* Capability css-filters is not prefixed with -ms because 0% of users are affected which is less than the threshold of 0.1. */
|
13
13
|
/* Capability css-filters is not prefixed with -o because 0% of users are affected which is less than the threshold of 0.1. */
|
14
|
-
/* Capability css-filters is prefixed with -webkit because
|
14
|
+
/* Capability css-filters is prefixed with -webkit because 41.8008% of users need it which is more than the threshold of 0.1%. */
|
15
15
|
/* Creating new -webkit context. */
|
16
16
|
-webkit-filter: brightness(0.2);
|
17
17
|
filter: brightness(0.2); }
|
@@ -20,7 +20,7 @@
|
|
20
20
|
/* Capability css-filters is not prefixed with -moz because 0% of users are affected which is less than the threshold of 0.1. */
|
21
21
|
/* Capability css-filters is not prefixed with -ms because 0% of users are affected which is less than the threshold of 0.1. */
|
22
22
|
/* Capability css-filters is not prefixed with -o because 0% of users are affected which is less than the threshold of 0.1. */
|
23
|
-
/* Capability css-filters is prefixed with -webkit because
|
23
|
+
/* Capability css-filters is prefixed with -webkit because 41.8008% of users need it which is more than the threshold of 0.1%. */
|
24
24
|
/* Creating new -webkit context. */
|
25
25
|
-webkit-filter: hue-rotate(20deg);
|
26
26
|
filter: hue-rotate(20deg); }
|
@@ -29,7 +29,7 @@
|
|
29
29
|
/* Capability css-filters is not prefixed with -moz because 0% of users are affected which is less than the threshold of 0.1. */
|
30
30
|
/* Capability css-filters is not prefixed with -ms because 0% of users are affected which is less than the threshold of 0.1. */
|
31
31
|
/* Capability css-filters is not prefixed with -o because 0% of users are affected which is less than the threshold of 0.1. */
|
32
|
-
/* Capability css-filters is prefixed with -webkit because
|
32
|
+
/* Capability css-filters is prefixed with -webkit because 41.8008% of users need it which is more than the threshold of 0.1%. */
|
33
33
|
/* Creating new -webkit context. */
|
34
34
|
-webkit-filter: contrast(150%);
|
35
35
|
filter: contrast(150%); }
|
@@ -38,7 +38,7 @@
|
|
38
38
|
/* Capability css-filters is not prefixed with -moz because 0% of users are affected which is less than the threshold of 0.1. */
|
39
39
|
/* Capability css-filters is not prefixed with -ms because 0% of users are affected which is less than the threshold of 0.1. */
|
40
40
|
/* Capability css-filters is not prefixed with -o because 0% of users are affected which is less than the threshold of 0.1. */
|
41
|
-
/* Capability css-filters is prefixed with -webkit because
|
41
|
+
/* Capability css-filters is prefixed with -webkit because 41.8008% of users need it which is more than the threshold of 0.1%. */
|
42
42
|
/* Creating new -webkit context. */
|
43
43
|
-webkit-filter: grayscale(150%);
|
44
44
|
filter: grayscale(150%); }
|
@@ -47,7 +47,7 @@
|
|
47
47
|
/* Capability css-filters is not prefixed with -moz because 0% of users are affected which is less than the threshold of 0.1. */
|
48
48
|
/* Capability css-filters is not prefixed with -ms because 0% of users are affected which is less than the threshold of 0.1. */
|
49
49
|
/* Capability css-filters is not prefixed with -o because 0% of users are affected which is less than the threshold of 0.1. */
|
50
|
-
/* Capability css-filters is prefixed with -webkit because
|
50
|
+
/* Capability css-filters is prefixed with -webkit because 41.8008% of users need it which is more than the threshold of 0.1%. */
|
51
51
|
/* Creating new -webkit context. */
|
52
52
|
-webkit-filter: sepia(150%);
|
53
53
|
filter: sepia(150%); }
|
@@ -1,4 +1,4 @@
|
|
1
1
|
@font-face {
|
2
2
|
font-family: "font1";
|
3
3
|
src: url('/fonts/font1.eot?busted=true');
|
4
|
-
src: url('/fonts/font1.eot
|
4
|
+
src: url('/fonts/font1.eot?&busted=true#iefix') format('embedded-opentype'), url('/fonts/font1.woff?busted=true') format('woff'); }
|
@@ -20,7 +20,7 @@
|
|
20
20
|
15 Tests:
|
21
21
|
- 15 Passed
|
22
22
|
- 0 Failed */
|
23
|
-
/* Capability css-animation is prefixed with -moz because
|
23
|
+
/* Capability css-animation is prefixed with -moz because 0.94353% of users need it which is more than the threshold of 0.1%. */
|
24
24
|
/* Creating new -moz context. */
|
25
25
|
@-moz-keyframes foo {
|
26
26
|
0% {
|
@@ -33,8 +33,8 @@
|
|
33
33
|
Not allowed in the current scope: ie 8 is incompatible with -moz. */
|
34
34
|
opacity: 1; } }
|
35
35
|
/* Capability css-animation is not prefixed with -ms because 0% of users are affected which is less than the threshold of 0.1. */
|
36
|
-
/* Capability css-animation is not prefixed with -o because 0.
|
37
|
-
/* Capability css-animation is prefixed with -webkit because
|
36
|
+
/* Capability css-animation is not prefixed with -o because 0.03998% of users are affected which is less than the threshold of 0.1. */
|
37
|
+
/* Capability css-animation is prefixed with -webkit because 49.71721% of users need it which is more than the threshold of 0.1%. */
|
38
38
|
/* Creating new -webkit context. */
|
39
39
|
@-webkit-keyframes foo {
|
40
40
|
0% {
|
@@ -57,12 +57,12 @@
|
|
57
57
|
Not allowed in the current scope: The current scope only works with ie 10 - 11. */
|
58
58
|
opacity: 1; } }
|
59
59
|
.foo {
|
60
|
-
/* Capability css-animation is prefixed with -moz because
|
60
|
+
/* Capability css-animation is prefixed with -moz because 0.94353% of users need it which is more than the threshold of 0.1%. */
|
61
61
|
/* Creating new -moz context. */
|
62
62
|
-moz-animation: foo 1s;
|
63
63
|
/* Capability css-animation is not prefixed with -ms because 0% of users are affected which is less than the threshold of 0.1. */
|
64
|
-
/* Capability css-animation is not prefixed with -o because 0.
|
65
|
-
/* Capability css-animation is prefixed with -webkit because
|
64
|
+
/* Capability css-animation is not prefixed with -o because 0.03998% of users are affected which is less than the threshold of 0.1. */
|
65
|
+
/* Capability css-animation is prefixed with -webkit because 49.71721% of users need it which is more than the threshold of 0.1%. */
|
66
66
|
/* Creating new -webkit context. */
|
67
67
|
-webkit-animation: foo 1s;
|
68
68
|
animation: foo 1s; }
|
@@ -97,7 +97,7 @@ $some-default-value: some default value;
|
|
97
97
|
|
98
98
|
@include test('[function] browser-out-of-scope() with version') {
|
99
99
|
@include with-browser-ranges((ie: '8' '8')) {
|
100
|
-
@include assert-
|
100
|
+
@include assert-false(not browser-out-of-scope('ie', '10'), "should not be in scope.");
|
101
101
|
@include assert-true(not browser-out-of-scope('ie', '8'), "should be in scope.");
|
102
102
|
@include assert-false(not browser-out-of-scope('ie', '7'), "should not be in scope.");
|
103
103
|
}
|
data/test/units/caniuse_test.rb
CHANGED
@@ -107,8 +107,8 @@ class CanIUseTest < Test::Unit::TestCase
|
|
107
107
|
def test_browser_ranges_including_unprefixed
|
108
108
|
mins = caniuse.browser_ranges("border-radius", "-webkit")
|
109
109
|
expected = {
|
110
|
-
"android"=>["2.1", "4.
|
111
|
-
"chrome"=>["4", "
|
110
|
+
"android"=>["2.1", "4.4"],
|
111
|
+
"chrome"=>["4", "33"],
|
112
112
|
"ios-safari"=>["3.2", "7.0"],
|
113
113
|
"safari"=>["3.1", "7"]
|
114
114
|
}
|
@@ -110,7 +110,14 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
110
110
|
assert_equal "25px", evaluate("pow($number: 5px, $exponent: 2)")
|
111
111
|
assert_equal "79.43236px", evaluate("pow(5px, e())")
|
112
112
|
assert((0..2).include?(evaluate("random(2)").to_i))
|
113
|
-
|
113
|
+
random_warning = capture_warning do
|
114
|
+
assert((4..16).include?(evaluate("random(4, 16)").to_i))
|
115
|
+
end
|
116
|
+
assert_equal <<WARNING.strip, random_warning.strip
|
117
|
+
WARNING: The $start value for random(4, 16) is not supported by Sass and is now
|
118
|
+
deprecated in Compass and will be removed in a future release.
|
119
|
+
Use `4 + random(12)` instead.
|
120
|
+
WARNING
|
114
121
|
end
|
115
122
|
|
116
123
|
def test_blank
|
@@ -194,6 +201,10 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
194
201
|
assert_equal "woff, truetype, svg, embedded-opentype", evaluate("font-formats('/font/name.woff', woff, '/fonts/name.ttf', '/fonts/name.svg#fontpath', unquote('/fonts/name.eot'))")
|
195
202
|
end
|
196
203
|
|
204
|
+
def test_linear_gradient_with_calc
|
205
|
+
assert_equal "-webkit-linear-gradient(left, #ffffff calc(100% - 50px), rgba(0, 0, 0, 0) calc(100% - 50px))",
|
206
|
+
evaluate("-webkit(-linear-gradient(to right, white calc(100% - 50px), transparent calc(100% - 50px)))")
|
207
|
+
end
|
197
208
|
|
198
209
|
def test_image_size_should_respond_to_to_path
|
199
210
|
object = mock()
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.alpha.
|
4
|
+
version: 1.0.0.alpha.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Eppstein
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: sass
|
@@ -20,42 +20,42 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 3.3.0.rc.
|
23
|
+
version: 3.3.0.rc.3
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 3.3.0.rc.
|
30
|
+
version: 3.3.0.rc.3
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: compass-core
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 1.0.0.alpha.
|
37
|
+
version: 1.0.0.alpha.17
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 1.0.0.alpha.
|
44
|
+
version: 1.0.0.alpha.17
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: compass-import-once
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - ~>
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: 1.0.
|
51
|
+
version: 1.0.2
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - ~>
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: 1.0.
|
58
|
+
version: 1.0.2
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: chunky_png
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,7 +186,6 @@ files:
|
|
186
186
|
- lib/compass/sprite_importer.rb
|
187
187
|
- lib/compass/stats.rb
|
188
188
|
- lib/compass/test_case.rb
|
189
|
-
- lib/compass/util.rb
|
190
189
|
- lib/compass/validator.rb
|
191
190
|
- lib/compass/version.rb
|
192
191
|
- lib/compass/watcher/compiler.rb
|
@@ -583,7 +582,6 @@ files:
|
|
583
582
|
- test/fixtures/stylesheets/compass/sass/replacement.scss
|
584
583
|
- test/fixtures/stylesheets/compass/sass/reset.sass
|
585
584
|
- test/fixtures/stylesheets/compass/sass/selection.scss
|
586
|
-
- test/fixtures/stylesheets/compass/sass/sprites.scss
|
587
585
|
- test/fixtures/stylesheets/compass/sass/sprites_with_explicit_separator.scss
|
588
586
|
- test/fixtures/stylesheets/compass/sass/stretching.sass
|
589
587
|
- test/fixtures/stylesheets/compass/sass/support.scss
|
@@ -1086,7 +1084,6 @@ test_files:
|
|
1086
1084
|
- test/fixtures/stylesheets/compass/sass/replacement.scss
|
1087
1085
|
- test/fixtures/stylesheets/compass/sass/reset.sass
|
1088
1086
|
- test/fixtures/stylesheets/compass/sass/selection.scss
|
1089
|
-
- test/fixtures/stylesheets/compass/sass/sprites.scss
|
1090
1087
|
- test/fixtures/stylesheets/compass/sass/sprites_with_explicit_separator.scss
|
1091
1088
|
- test/fixtures/stylesheets/compass/sass/stretching.sass
|
1092
1089
|
- test/fixtures/stylesheets/compass/sass/support.scss
|
data/lib/compass/util.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module Compass::Util
|
2
|
-
extend self
|
3
|
-
|
4
|
-
def compass_warn(*args)
|
5
|
-
Sass::Util.sass_warn(*args)
|
6
|
-
end
|
7
|
-
|
8
|
-
def blank?(value)
|
9
|
-
case value
|
10
|
-
when NilClass, FalseClass
|
11
|
-
true
|
12
|
-
when String, Array
|
13
|
-
value.length.zero?
|
14
|
-
else
|
15
|
-
false
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|