sass 3.5.2 → 3.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8bc006450eec1decf66c14cd5291f0bba21ee98
4
- data.tar.gz: 215e6234472577c8fad6f03375426b8c4c845f5e
3
+ metadata.gz: 0a9a7e7eaf523795eb1a4d5b7975591340f6ee4f
4
+ data.tar.gz: 1ed58578bc0436fc6fec5388d26d6494aee867df
5
5
  SHA512:
6
- metadata.gz: b26dc35c34da276b1be99f68c12731b4c74d219216e6e8353ef52d12f2f0317e5d10d0823268c054925b4eea746570ca281ddb15938201433e3451233ac1d17b
7
- data.tar.gz: 247f868f376a2d6c99c0e58aa2a8be7d4db58f0d45c5144febec4cd3a84d22cd2f3e8f50053c3540310ceee87165b92f8f064d7c655b70f7bd858fc28dd69932
6
+ metadata.gz: 2ea7239c454041a2370b7927f1d86face3e1cbabf6ad30a51afb1d3546e2c405ecd5bab125c0d4d90890f799bee2c89da6865f32ce931fc26a78cc6103396302
7
+ data.tar.gz: 6adf204bdf107345eca19827602b4749e9bcf02656206aafb825f70db012c49934ac881e43eab2b0af250d46310b6d21b271e5d886a0abd071a3d031e1b69820
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.5.2
1
+ 3.5.3
@@ -1 +1 @@
1
- 04 October 2017 22:22:40 UTC
1
+ 27 October 2017 00:52:01 UTC
@@ -323,6 +323,7 @@ RUBY
323
323
  pair = map_pair
324
324
  return map unless pair
325
325
  map.pairs << pair
326
+ map.source_range.end_pos = map.pairs.last.last.source_range.end_pos
326
327
  end
327
328
  map
328
329
  end
@@ -813,6 +813,17 @@ SCSS
813
813
  assert_equal 38, list.source_range.end_pos.offset
814
814
  end
815
815
 
816
+ def test_map_source_range
817
+ engine = Sass::Engine.new(<<-SCSS, :cache => false, :syntax => :scss)
818
+ $margins: (sm: 4px, md: 8px, lg: 16px);
819
+ SCSS
820
+ expr = engine.to_tree.children.first.expr
821
+ assert_equal 1, expr.source_range.start_pos.line
822
+ assert_equal 1, expr.source_range.end_pos.line
823
+ assert_equal 12, expr.source_range.start_pos.offset
824
+ assert_equal 38, expr.source_range.end_pos.offset
825
+ end
826
+
816
827
  def test_sources_array_is_uri_escaped
817
828
  map = Sass::Source::Map.new
818
829
  importer = Sass::Importers::Filesystem.new('.')
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.5.2
4
+ version: 3.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natalie Weizenbaum
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-10-04 00:00:00.000000000 Z
13
+ date: 2017-10-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sass-listen
@@ -227,8 +227,6 @@ files:
227
227
  - lib/sass/util/subset_map.rb
228
228
  - lib/sass/util/test.rb
229
229
  - lib/sass/version.rb
230
- - lib/test.css
231
- - lib/test.css.map
232
230
  - rails/init.rb
233
231
  - test/sass-spec.yml
234
232
  - test/sass/cache_test.rb
@@ -374,34 +372,34 @@ required_rubygems_version: !ruby/object:Gem::Requirement
374
372
  version: '0'
375
373
  requirements: []
376
374
  rubyforge_project: sass
377
- rubygems_version: 2.6.11
375
+ rubygems_version: 2.4.8
378
376
  signing_key:
379
377
  specification_version: 4
380
378
  summary: A powerful but elegant CSS compiler that makes CSS fun again.
381
379
  test_files:
380
+ - test/sass/extend_test.rb
381
+ - test/sass/css2sass_test.rb
382
+ - test/sass/util_test.rb
383
+ - test/sass/superselector_test.rb
384
+ - test/sass/value_helpers_test.rb
382
385
  - test/sass/plugin_test.rb
386
+ - test/sass/logger_test.rb
387
+ - test/sass/functions_test.rb
388
+ - test/sass/conversion_test.rb
389
+ - test/sass/source_map_test.rb
390
+ - test/sass/cache_test.rb
383
391
  - test/sass/encoding_test.rb
384
- - test/sass/importer_test.rb
392
+ - test/sass/script_test.rb
385
393
  - test/sass/callbacks_test.rb
394
+ - test/sass/script_conversion_test.rb
386
395
  - test/sass/scss/css_test.rb
387
396
  - test/sass/scss/rx_test.rb
388
397
  - test/sass/scss/scss_test.rb
389
- - test/sass/util/multibyte_string_scanner_test.rb
390
- - test/sass/util/normalized_map_test.rb
391
- - test/sass/util/subset_map_test.rb
392
- - test/sass/functions_test.rb
393
- - test/sass/util_test.rb
394
- - test/sass/cache_test.rb
395
398
  - test/sass/exec_test.rb
396
- - test/sass/value_helpers_test.rb
397
- - test/sass/conversion_test.rb
398
- - test/sass/script_test.rb
399
- - test/sass/logger_test.rb
400
- - test/sass/compiler_test.rb
399
+ - test/sass/importer_test.rb
401
400
  - test/sass/engine_test.rb
402
- - test/sass/css2sass_test.rb
403
- - test/sass/superselector_test.rb
404
- - test/sass/script_conversion_test.rb
405
401
  - test/sass/css_variable_test.rb
406
- - test/sass/source_map_test.rb
407
- - test/sass/extend_test.rb
402
+ - test/sass/compiler_test.rb
403
+ - test/sass/util/subset_map_test.rb
404
+ - test/sass/util/normalized_map_test.rb
405
+ - test/sass/util/multibyte_string_scanner_test.rb
@@ -1,4 +0,0 @@
1
- a {
2
- b: c; }
3
-
4
- /*# sourceMappingURL=test.css.map */
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,CAAE;EAAC,CAAC,EAAE,CAAC",
4
- "sources": ["test.scss"],
5
- "names": [],
6
- "file": "test.css"
7
- }