sass 3.3.6 → 3.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/plugin.rb +3 -3
- data/lib/sass/script/lexer.rb +1 -1
- data/lib/sass/script/parser.rb +2 -2
- data/lib/sass/scss/parser.rb +1 -1
- data/test/sass/source_map_test.rb +22 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3056f55a693a030fff05f6e9cdb3c828c4092823
|
4
|
+
data.tar.gz: 03510d67bb0d7206043ba4fd8ea0f056f036b970
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 890d0f4b3049a3cad64dfb4aa70ce63b4cbc29d32fcb510f92c2d0dfd23a15f7c438f86fcbc865ecd3035df1e3019cf3225c63cedcb17a692d6597eb9c5e955e
|
7
|
+
data.tar.gz: d550673bc5cbd178c362aa1389ef22aadce524127a9016f0b11299cffd19eccb13af568b8b67f3b56f27698dd60baee9a2daaaf1685be2872a1afdcca1ff3871
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.7
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
03 May 2014 00:22:30 UTC
|
data/lib/sass/plugin.rb
CHANGED
@@ -123,9 +123,9 @@ module Sass
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
-
|
127
|
-
|
128
|
-
require 'sass/plugin/rails'
|
126
|
+
if defined?(ActionController)
|
127
|
+
# On Rails 3+ the rails plugin is loaded at the right time in railtie.rb
|
128
|
+
require 'sass/plugin/rails' unless Sass::Util.ap_geq_3?
|
129
129
|
elsif defined?(Merb::Plugins)
|
130
130
|
require 'sass/plugin/merb'
|
131
131
|
else
|
data/lib/sass/script/lexer.rb
CHANGED
data/lib/sass/script/parser.rb
CHANGED
@@ -226,8 +226,8 @@ module Sass
|
|
226
226
|
return other_interp
|
227
227
|
end
|
228
228
|
|
229
|
-
|
230
|
-
|
229
|
+
e = node(Tree::Operation.new(e, assert_expr(#{sub.inspect}), tok.type),
|
230
|
+
e.source_range.start_pos)
|
231
231
|
end
|
232
232
|
e
|
233
233
|
end
|
data/lib/sass/scss/parser.rb
CHANGED
@@ -1235,7 +1235,7 @@ MESSAGE
|
|
1235
1235
|
|
1236
1236
|
unless name
|
1237
1237
|
# Display basic regexps as plain old strings
|
1238
|
-
source = rx.source.gsub(
|
1238
|
+
source = rx.source.gsub(/\\\//, '/')
|
1239
1239
|
string = rx.source.gsub(/\\(.)/, '\1')
|
1240
1240
|
name = source == Regexp.escape(string) ? string.inspect : rx.inspect
|
1241
1241
|
end
|
@@ -748,6 +748,18 @@ SASS
|
|
748
748
|
{{6}}name{{/6}}: {{7}}value{{/7}};
|
749
749
|
{{8}}name{{/8}}: {{9}}value{{/9}}; }
|
750
750
|
|
751
|
+
/*# sourceMappingURL=test.css.map */
|
752
|
+
CSS
|
753
|
+
end
|
754
|
+
|
755
|
+
def test_multiline_script_scss
|
756
|
+
assert_parses_with_mapping <<SCSS, <<CSS, :syntax => :scss
|
757
|
+
$var: {{3}}foo +
|
758
|
+
bar{{/3}}; {{1}}x {{/1}}{ {{2}}y{{/2}}: $var }
|
759
|
+
SCSS
|
760
|
+
{{1}}x{{/1}} {
|
761
|
+
{{2}}y{{/2}}: {{3}}foobar{{/3}}; }
|
762
|
+
|
751
763
|
/*# sourceMappingURL=test.css.map */
|
752
764
|
CSS
|
753
765
|
end
|
@@ -810,11 +822,18 @@ CSS
|
|
810
822
|
|
811
823
|
def assert_positions_equal(expected, actual, lines, message = nil)
|
812
824
|
prefix = message ? message + ": " : ""
|
825
|
+
expected_location = lines[expected.line - 1] + "\n" + ("-" * (expected.offset - 1)) + "^"
|
826
|
+
actual_location = lines[actual.line - 1] + "\n" + ("-" * (actual.offset - 1)) + "^"
|
813
827
|
assert_equal(expected.line, actual.line, prefix +
|
814
|
-
"Expected #{expected.inspect}
|
828
|
+
"Expected #{expected.inspect}\n" +
|
829
|
+
expected_location + "\n\n" +
|
830
|
+
"But was #{actual.inspect}\n" +
|
831
|
+
actual_location)
|
815
832
|
assert_equal(expected.offset, actual.offset, prefix +
|
816
|
-
"Expected #{expected.inspect}
|
817
|
-
|
833
|
+
"Expected #{expected.inspect}\n" +
|
834
|
+
expected_location + "\n\n" +
|
835
|
+
"But was #{actual.inspect}\n" +
|
836
|
+
actual_location)
|
818
837
|
end
|
819
838
|
|
820
839
|
def assert_ranges_equal(expected, actual, lines, prefix)
|
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.3.
|
4
|
+
version: 3.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-05-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: yard
|