sass 3.3.0.alpha.167 → 3.3.0.alpha.173
Sign up to get free protection for your applications and to get access to all the features.
- data/REVISION +1 -1
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/error.rb +2 -2
- data/lib/sass/tree/visitors/perform.rb +2 -2
- data/test/sass/plugin_test.rb +17 -0
- data/test/sass/scss/scss_test.rb +8 -0
- data/test/sass/templates/bork5.sass +3 -0
- metadata +4 -3
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
d74a11c40b4dca010ffe13228fa8ddcf1364c1ce
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.0.alpha.
|
1
|
+
3.3.0.alpha.173
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
03 June 2013
|
1
|
+
03 June 2013 21:51:16 GMT
|
data/lib/sass/error.rb
CHANGED
@@ -144,9 +144,9 @@ class Sass::Tree::Visitors::Perform < Sass::Tree::Visitors::Base
|
|
144
144
|
res = node.expr.perform(@environment)
|
145
145
|
res = res.value if res.is_a?(Sass::Script::Value::String)
|
146
146
|
if node.filename
|
147
|
-
|
147
|
+
Sass::Util.sass_warn "#{node.filename}:#{node.line} DEBUG: #{res}"
|
148
148
|
else
|
149
|
-
|
149
|
+
Sass::Util.sass_warn "Line #{node.line} DEBUG: #{res}"
|
150
150
|
end
|
151
151
|
[]
|
152
152
|
end
|
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/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,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 592302679
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 3
|
9
9
|
- 0
|
10
10
|
- alpha
|
11
|
-
-
|
12
|
-
version: 3.3.0.alpha.
|
11
|
+
- 173
|
12
|
+
version: 3.3.0.alpha.173
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Nathan Weizenbaum
|
@@ -308,6 +308,7 @@ files:
|
|
308
308
|
- test/sass/templates/units.sass
|
309
309
|
- test/sass/templates/warn.sass
|
310
310
|
- test/sass/templates/warn_imported.sass
|
311
|
+
- test/sass/templates/bork5.sass
|
311
312
|
- test/sass/test_helper.rb
|
312
313
|
- test/sass/util/multibyte_string_scanner_test.rb
|
313
314
|
- test/sass/util/subset_map_test.rb
|