sass 3.3.6 → 3.3.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ebb0ff4acc7bb742ad25e99839228582145f498
4
- data.tar.gz: 9cbece862e1858dfccb32123986e2866951ee2ca
3
+ metadata.gz: 3056f55a693a030fff05f6e9cdb3c828c4092823
4
+ data.tar.gz: 03510d67bb0d7206043ba4fd8ea0f056f036b970
5
5
  SHA512:
6
- metadata.gz: 11bf00f275bb42c48f4c1a1bed1066f025bf613e4f07d90065cb59c5879734e6cdd759232b01e810a4180c9d81ed4a093aa687b72fa8fdb5259d30b867ad47b7
7
- data.tar.gz: e45333b121ba8f5c042d8fbdc27fe1ec564ec89b9b0e30f414220b93f357b697460abec18b471c8b13f6b0d442b52890861beeda68b888bfa9108ba24fe894e8
6
+ metadata.gz: 890d0f4b3049a3cad64dfb4aa70ce63b4cbc29d32fcb510f92c2d0dfd23a15f7c438f86fcbc865ecd3035df1e3019cf3225c63cedcb17a692d6597eb9c5e955e
7
+ data.tar.gz: d550673bc5cbd178c362aa1389ef22aadce524127a9016f0b11299cffd19eccb13af568b8b67f3b56f27698dd60baee9a2daaaf1685be2872a1afdcca1ff3871
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.6
1
+ 3.3.7
@@ -1 +1 @@
1
- 26 April 2014 01:17:48 UTC
1
+ 03 May 2014 00:22:30 UTC
@@ -123,9 +123,9 @@ module Sass
123
123
  end
124
124
  end
125
125
 
126
- # On Rails 3+ the rails plugin is loaded at the right time in railtie.rb
127
- if defined?(ActionController) && !Sass::Util.ap_geq_3?
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
@@ -370,7 +370,7 @@ MESSAGE
370
370
  return unless str
371
371
  c = str.count("\n")
372
372
  @line += c
373
- @offset = (c == 0 ? @offset + str.size : str.size - str.rindex("\n") + 1)
373
+ @offset = (c == 0 ? @offset + str.size : str.size - str.rindex("\n"))
374
374
  str
375
375
  end
376
376
 
@@ -226,8 +226,8 @@ module Sass
226
226
  return other_interp
227
227
  end
228
228
 
229
- start_pos = source_position
230
- e = node(Tree::Operation.new(e, assert_expr(#{sub.inspect}), tok.type), start_pos)
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
@@ -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(%r{\\/}, '/')
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} but was #{actual.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} but was #{actual.inspect}\n" +
817
- lines[actual.line - 1] + "\n" + ("-" * (actual.offset - 1)) + "^")
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.6
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-04-26 00:00:00.000000000 Z
13
+ date: 2014-05-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: yard