sass 3.2.9 → 3.2.10
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.
- data/MIT-LICENSE +2 -2
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/engine.rb +0 -1
- data/lib/sass/error.rb +2 -2
- data/lib/sass/exec.rb +6 -3
- data/lib/sass/script/functions.rb +516 -449
- data/lib/sass/scss/parser.rb +0 -1
- data/lib/sass/selector/sequence.rb +11 -4
- data/lib/sass/tree/visitors/convert.rb +0 -1
- data/lib/sass/tree/visitors/perform.rb +2 -2
- data/lib/sass/util/test.rb +10 -0
- data/test/sass/engine_test.rb +12 -10
- data/test/sass/exec_test.rb +86 -0
- data/test/sass/extend_test.rb +38 -15
- data/test/sass/functions_test.rb +75 -72
- data/test/sass/plugin_test.rb +17 -0
- data/test/sass/scss/css_test.rb +1 -1
- data/test/sass/scss/scss_test.rb +8 -0
- data/test/sass/templates/bork5.sass +3 -0
- metadata +6 -2
data/test/sass/plugin_test.rb
CHANGED
@@ -123,6 +123,23 @@ CSS
|
|
123
123
|
File.delete(tempfile_loc('bork1'))
|
124
124
|
end
|
125
125
|
|
126
|
+
def test_full_exception_with_block_comment
|
127
|
+
File.delete(tempfile_loc('bork5'))
|
128
|
+
check_for_updates!
|
129
|
+
File.open(tempfile_loc('bork5')) do |file|
|
130
|
+
assert_equal(<<CSS.strip, file.read.split("\n")[0...7].join("\n"))
|
131
|
+
/*
|
132
|
+
Syntax error: Undefined variable: "$bork".
|
133
|
+
on line 3 of #{template_loc('bork5')}
|
134
|
+
|
135
|
+
1: bork
|
136
|
+
2: /* foo *\\/
|
137
|
+
3: :bork $bork
|
138
|
+
CSS
|
139
|
+
end
|
140
|
+
File.delete(tempfile_loc('bork1'))
|
141
|
+
end
|
142
|
+
|
126
143
|
def test_single_level_import_loop
|
127
144
|
File.delete(tempfile_loc('single_import_loop'))
|
128
145
|
check_for_updates!
|
data/test/sass/scss/css_test.rb
CHANGED
@@ -725,7 +725,7 @@ SCSS
|
|
725
725
|
|
726
726
|
# Taken from http://dev.w3.org/csswg/selectors4/#overview, but without element
|
727
727
|
# names.
|
728
|
-
def
|
728
|
+
def test_more_summarized_selectors
|
729
729
|
assert_selector_parses(':not(s)')
|
730
730
|
assert_selector_parses(':not(s1, s2)')
|
731
731
|
assert_selector_parses(':matches(s1, s2)')
|
data/test/sass/scss/scss_test.rb
CHANGED
@@ -1711,6 +1711,14 @@ SCSS
|
|
1711
1711
|
|
1712
1712
|
# Regression
|
1713
1713
|
|
1714
|
+
def test_loud_comment_in_compressed_mode
|
1715
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1716
|
+
/*! foo */
|
1717
|
+
CSS
|
1718
|
+
/*! foo */
|
1719
|
+
SCSS
|
1720
|
+
end
|
1721
|
+
|
1714
1722
|
def test_parsing_decimals_followed_by_comments_doesnt_take_forever
|
1715
1723
|
assert_equal(<<CSS, render(<<SCSS))
|
1716
1724
|
.foo {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-07-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: yard
|
@@ -117,6 +117,7 @@ files:
|
|
117
117
|
- lib/sass/root.rb
|
118
118
|
- lib/sass/importers.rb
|
119
119
|
- lib/sass/logger.rb
|
120
|
+
- lib/sass/util/test.rb
|
120
121
|
- lib/sass/util/multibyte_string_scanner.rb
|
121
122
|
- lib/sass/util/subset_map.rb
|
122
123
|
- lib/sass/scss.rb
|
@@ -240,6 +241,7 @@ files:
|
|
240
241
|
- test/sass/templates/line_numbers.sass
|
241
242
|
- test/sass/templates/expanded.sass
|
242
243
|
- test/sass/templates/bork3.sass
|
244
|
+
- test/sass/templates/bork5.sass
|
243
245
|
- test/sass/templates/import_content.sass
|
244
246
|
- test/sass/templates/warn_imported.sass
|
245
247
|
- test/sass/templates/import_charset_ibm866.sass
|
@@ -274,6 +276,7 @@ files:
|
|
274
276
|
- test/sass/templates/_imported_charset_utf8.sass
|
275
277
|
- test/sass/conversion_test.rb
|
276
278
|
- test/sass/script_test.rb
|
279
|
+
- test/sass/exec_test.rb
|
277
280
|
- test/sass/util/subset_map_test.rb
|
278
281
|
- test/sass/util/multibyte_string_scanner_test.rb
|
279
282
|
- test/sass/callbacks_test.rb
|
@@ -366,6 +369,7 @@ test_files:
|
|
366
369
|
- test/sass/css2sass_test.rb
|
367
370
|
- test/sass/conversion_test.rb
|
368
371
|
- test/sass/script_test.rb
|
372
|
+
- test/sass/exec_test.rb
|
369
373
|
- test/sass/util/subset_map_test.rb
|
370
374
|
- test/sass/util/multibyte_string_scanner_test.rb
|
371
375
|
- test/sass/callbacks_test.rb
|