sass 3.2.0.alpha.60 → 3.2.0.alpha.61

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ @import url(basic.css);
2
+ @import url(../results/complex.css);
1
3
  imported { otherconst: hello; myconst: goodbye; pre-mixin: here; }
2
4
 
3
5
  body { font: Arial; background: blue; }
@@ -22,8 +24,6 @@ body { font: Arial; background: blue; }
22
24
  #content.user.show #container.top #column.right { width: 600px; }
23
25
  #content.user.show #container.bottom { background: brown; }
24
26
 
25
- @import url(basic.css);
26
- @import url(../results/complex.css);
27
27
  #foo { background-color: #bbaaff; }
28
28
 
29
29
  nonimported { myconst: hello; otherconst: goodbye; post-mixin: here; }
@@ -1,3 +1,5 @@
1
+ @import url(basic.css);
2
+ @import url(../results/complex.css);
1
3
  imported { otherconst: hello; myconst: goodbye; pre-mixin: here; }
2
4
 
3
5
  body { font: Arial; background: blue; }
@@ -24,8 +26,6 @@ body { font: Arial; background: blue; }
24
26
  #content.user.show #container.top #column.right { width: 600px; }
25
27
  #content.user.show #container.bottom { background: brown; }
26
28
 
27
- @import url(basic.css);
28
- @import url(../results/complex.css);
29
29
  #foo { background-color: #bbaaff; }
30
30
 
31
31
  nonimported { myconst: hello; otherconst: goodbye; post-mixin: here; }
@@ -1,4 +1,5 @@
1
1
  @charset "UTF-8";
2
+ @import url(foo.css);
2
3
  .foo { a: b; }
3
4
 
4
5
  .bar { a: щ; }
@@ -1,4 +1,5 @@
1
1
  @charset "IBM866";
2
+ @import url(foo.css);
2
3
  .foo { a: b; }
3
4
 
4
5
  .bar { a: �; }
@@ -1,4 +1,5 @@
1
1
  @charset "IBM866";
2
+ @import url(foo.css);
2
3
  .foo { a: b; }
3
4
 
4
5
  .bar { a: �; }
@@ -1,3 +1,5 @@
1
+ @import url(basic.css);
2
+ @import url(../results/complex.css);
1
3
  imported { otherconst: hello; myconst: goodbye; pre-mixin: here; }
2
4
 
3
5
  body { font: Arial; background: blue; }
@@ -24,8 +26,6 @@ body { font: Arial; background: blue; }
24
26
  #content.user.show #container.top #column.right { width: 600px; }
25
27
  #content.user.show #container.bottom { background: brown; }
26
28
 
27
- @import url(basic.css);
28
- @import url(../results/complex.css);
29
29
  #foo { background-color: #bbaaff; }
30
30
 
31
31
  nonimported { myconst: hello; otherconst: goodbye; post-mixin: here; }
@@ -432,6 +432,11 @@ SASS
432
432
  assert_raise_message(Sass::SyntaxError, "wrong number of arguments (1 for 0) for `arg-error'") {resolve("arg-error(1)")}
433
433
  end
434
434
 
435
+ def test_boolean_ops_short_circuit
436
+ assert_equal "false", resolve("$ie and $ie <= 7", {}, env('ie' => Sass::Script::Bool.new(false)))
437
+ assert_equal "true", resolve("$ie or $undef", {}, env('ie' => Sass::Script::Bool.new(true)))
438
+ end
439
+
435
440
  # Regression Tests
436
441
 
437
442
  def test_funcall_has_higher_precedence_than_color_name
@@ -1245,11 +1245,11 @@ SCSS
1245
1245
 
1246
1246
 
1247
1247
  def test_newlines_removed_from_selectors_when_compressed
1248
- assert_equal <<CSS, render(<<SCSS, :style=>:compressed)
1248
+ assert_equal <<CSS, render(<<SCSS, :style => :compressed)
1249
1249
  z a,z b{display:block}
1250
1250
  CSS
1251
- a,
1252
- b {
1251
+ a
1252
+ , b {
1253
1253
  z & {
1254
1254
  display: block;
1255
1255
  }
@@ -1,6 +1,8 @@
1
1
  .foo
2
2
  a: b
3
3
 
4
+ @import "foo.css"
5
+
4
6
  // Even though the imported file is in IBM866,
5
7
  // since the root file is in UTF-8/ASCII
6
8
  // the output will end up being UTF-8.
@@ -1,4 +1,6 @@
1
1
  .foo
2
2
  a: b
3
3
 
4
+ @import "foo.css"
5
+
4
6
  @import "imported_charset_ibm866"
@@ -3,6 +3,8 @@
3
3
  .foo
4
4
  a: b
5
5
 
6
+ @import "foo.css"
7
+
6
8
  // Even though the imported file is in UTF-8,
7
9
  // since the root file is in IBM866
8
10
  // the output will end up being IBM866.
@@ -159,6 +159,12 @@ class UtilTest < Test::Unit::TestCase
159
159
  enum_cons(%w[foo bar baz], 2).map {|s1, s2| "#{s1}#{s2}"})
160
160
  end
161
161
 
162
+ def test_extract
163
+ arr = [1, 2, 3, 4, 5]
164
+ assert_equal([1, 3, 5], extract!(arr) {|e| e % 2 == 1})
165
+ assert_equal([2, 4], arr)
166
+ end
167
+
162
168
  def test_ord
163
169
  assert_equal(102, ord("f"))
164
170
  assert_equal(98, ord("bar"))
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass
3
3
  version: !ruby/object:Gem::Version
4
- hash: 592302949
4
+ hash: 592302951
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
9
  - 0
10
10
  - alpha
11
- - 60
12
- version: 3.2.0.alpha.60
11
+ - 61
12
+ version: 3.2.0.alpha.61
13
13
  platform: ruby
14
14
  authors:
15
15
  - Nathan Weizenbaum
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2012-01-19 00:00:00 -05:00
22
+ date: 2012-02-03 00:00:00 -05:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
@@ -86,6 +86,7 @@ files:
86
86
  - lib/sass/logger.rb
87
87
  - lib/sass/logger/base.rb
88
88
  - lib/sass/logger/log_level.rb
89
+ - lib/sass/util.rb
89
90
  - lib/sass/plugin.rb
90
91
  - lib/sass/plugin/compiler.rb
91
92
  - lib/sass/plugin/configuration.rb
@@ -133,7 +134,7 @@ files:
133
134
  - lib/sass/shared.rb
134
135
  - lib/sass/tree/charset_node.rb
135
136
  - lib/sass/tree/comment_node.rb
136
- - lib/sass/tree/node.rb
137
+ - lib/sass/tree/media_node.rb
137
138
  - lib/sass/tree/debug_node.rb
138
139
  - lib/sass/tree/directive_node.rb
139
140
  - lib/sass/tree/each_node.rb
@@ -142,8 +143,8 @@ files:
142
143
  - lib/sass/tree/function_node.rb
143
144
  - lib/sass/tree/if_node.rb
144
145
  - lib/sass/tree/import_node.rb
145
- - lib/sass/tree/media_node.rb
146
146
  - lib/sass/tree/mixin_def_node.rb
147
+ - lib/sass/tree/node.rb
147
148
  - lib/sass/tree/mixin_node.rb
148
149
  - lib/sass/tree/prop_node.rb
149
150
  - lib/sass/tree/return_node.rb
@@ -162,11 +163,10 @@ files:
162
163
  - lib/sass/tree/warn_node.rb
163
164
  - lib/sass/tree/while_node.rb
164
165
  - lib/sass/tree/trace_node.rb
165
- - lib/sass/util.rb
166
+ - lib/sass/media.rb
166
167
  - lib/sass/util/multibyte_string_scanner.rb
167
168
  - lib/sass/util/subset_map.rb
168
169
  - lib/sass/version.rb
169
- - lib/sass/media.rb
170
170
  - vendor/fssm/Gemfile
171
171
  - vendor/fssm/LICENSE
172
172
  - vendor/fssm/README.markdown
@@ -239,7 +239,7 @@ files:
239
239
  - test/sass/results/import_charset.css
240
240
  - test/sass/results/import_charset_1_8.css
241
241
  - test/sass/results/import_charset_ibm866.css
242
- - test/sass/results/import_content.css
242
+ - test/sass/results/scss_import.css
243
243
  - test/sass/results/line_numbers.css
244
244
  - test/sass/results/mixins.css
245
245
  - test/sass/results/multiline.css
@@ -247,13 +247,13 @@ files:
247
247
  - test/sass/results/options.css
248
248
  - test/sass/results/parent_ref.css
249
249
  - test/sass/results/script.css
250
- - test/sass/results/scss_import.css
251
250
  - test/sass/results/scss_importee.css
252
251
  - test/sass/results/subdir/nested_subdir/nested_subdir.css
253
252
  - test/sass/results/subdir/subdir.css
254
253
  - test/sass/results/units.css
255
254
  - test/sass/results/warn.css
256
255
  - test/sass/results/warn_imported.css
256
+ - test/sass/results/import_content.css
257
257
  - test/sass/script_conversion_test.rb
258
258
  - test/sass/script_test.rb
259
259
  - test/sass/scss/css_test.rb
@@ -262,7 +262,7 @@ files:
262
262
  - test/sass/scss/test_helper.rb
263
263
  - test/sass/templates/_imported_charset_ibm866.sass
264
264
  - test/sass/templates/_imported_charset_utf8.sass
265
- - test/sass/templates/_imported_content.sass
265
+ - test/sass/templates/import_charset.sass
266
266
  - test/sass/templates/_partial.sass
267
267
  - test/sass/templates/alt.sass
268
268
  - test/sass/templates/basic.sass
@@ -277,10 +277,9 @@ files:
277
277
  - test/sass/templates/expanded.sass
278
278
  - test/sass/templates/if.sass
279
279
  - test/sass/templates/import.sass
280
- - test/sass/templates/import_charset.sass
281
280
  - test/sass/templates/import_charset_1_8.sass
282
281
  - test/sass/templates/import_charset_ibm866.sass
283
- - test/sass/templates/import_content.sass
282
+ - test/sass/templates/_imported_content.sass
284
283
  - test/sass/templates/importee.less
285
284
  - test/sass/templates/importee.sass
286
285
  - test/sass/templates/line_numbers.sass
@@ -306,6 +305,7 @@ files:
306
305
  - test/sass/templates/units.sass
307
306
  - test/sass/templates/warn.sass
308
307
  - test/sass/templates/warn_imported.sass
308
+ - test/sass/templates/import_content.sass
309
309
  - test/sass/test_helper.rb
310
310
  - test/sass/util/multibyte_string_scanner_test.rb
311
311
  - test/sass/util/subset_map_test.rb