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 CHANGED
@@ -1 +1 @@
1
- 9aaeedb21f108c9ee8ca496ed018fdf3b0c5bd19
1
+ d74a11c40b4dca010ffe13228fa8ddcf1364c1ce
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.alpha.167
1
+ 3.3.0.alpha.173
@@ -1 +1 @@
1
- 03 June 2013 17:31:15 GMT
1
+ 03 June 2013 21:51:16 GMT
@@ -165,9 +165,9 @@ module Sass
165
165
 
166
166
  <<END
167
167
  /*
168
- #{header}
168
+ #{header.gsub("*/", "*\\/")}
169
169
 
170
- Backtrace:\n#{e.backtrace.join("\n")}
170
+ Backtrace:\n#{e.backtrace.join("\n").gsub("*/", "*\\/")}
171
171
  */
172
172
  body:before {
173
173
  white-space: pre;
@@ -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
- $stderr.puts "#{node.filename}:#{node.line} DEBUG: #{res}"
147
+ Sass::Util.sass_warn "#{node.filename}:#{node.line} DEBUG: #{res}"
148
148
  else
149
- $stderr.puts "Line #{node.line} DEBUG: #{res}"
149
+ Sass::Util.sass_warn "Line #{node.line} DEBUG: #{res}"
150
150
  end
151
151
  []
152
152
  end
@@ -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!
@@ -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 {
@@ -0,0 +1,3 @@
1
+ bork
2
+ /* foo */
3
+ :bork $bork
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: 592302659
4
+ hash: 592302679
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 167
12
- version: 3.3.0.alpha.167
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