sassc-embedded 1.74.0 → 1.74.1

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
  SHA256:
3
- metadata.gz: f2035f16da9c3d02bf4fce8ac06465db89afbee4b1ece61dfd3213b4fec4a150
4
- data.tar.gz: 1ec55533d5a8949ed2ab53266b52abf963a2be427d228605e0c7147974490856
3
+ metadata.gz: 411e788cd6cc17fd4f63773757f4f5b57aca396fd20218a6b2f3b3f15d1a1c9a
4
+ data.tar.gz: df11ec77342a51c7283da1cd8f3d20f1a4b779752e09ec56baadd321e3baa974
5
5
  SHA512:
6
- metadata.gz: 4f0d03db8a9d0848c96c21bcc340ee8fc15993f7b56697649fee823bb4e6a398a992b6245c4b6d274a12cf846c6aa8ee59bf56cc19c1b11081d251ae4509e05e
7
- data.tar.gz: 40760cf8ab3aa85a459b83f2b41e5513b96fea52fc000fa435dd4f4115526914e3665388305962fdd91da1c454a326f64acb27bd47fd6ddd566a6e428bfb1b9f
6
+ metadata.gz: fd6134bfefa373e58bc505ab03e55764a10c970d052a66d9138dc61bd46d1bf143093e3d5ca4d8279936f110d6b3d5485f679d5893035d5da630f15c87acb304
7
+ data.tar.gz: 7e072a1950cf8a5de7ee5e980f42fa590bc05140259315e87a0389f45b73827add28a0b9f5314c4ce7357b233b9911690d41a1e33a7cf21ac1bba2f912a48eec
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.74.0'
5
+ VERSION = '1.74.1'
6
6
  end
7
7
  end
@@ -324,6 +324,7 @@ module SassC
324
324
  def initialize(importer)
325
325
  @importer = importer
326
326
  @canonical_urls = {}
327
+ @id = 0
327
328
  @importer_results = {}
328
329
  @load_paths = (@importer.options[:load_paths] || []) + SassC.load_paths
329
330
  @parent_urls = [URL.path_to_file_url(File.absolute_path(@importer.options[:filename] || 'stdin'))]
@@ -437,8 +438,8 @@ module SassC
437
438
  else
438
439
  canonical_url = URL.escape(import.path)
439
440
  end
440
- import_url = "#{Protocol::IMPORT}#{canonical_url}"
441
- loaded_url = "#{Protocol::LOADED}#{canonical_url}"
441
+ import_url = "#{Protocol::IMPORT}#{next_id}"
442
+ loaded_url = "#{Protocol::LOADED}#{next_id}"
442
443
  @canonical_urls[import_url] = canonical_url
443
444
  at_rule = from_import ? '@import' : '@forward'
444
445
  <<~SCSS
@@ -449,6 +450,12 @@ module SassC
449
450
  syntax: :scss
450
451
  }
451
452
  end
453
+
454
+ def next_id
455
+ id = @id
456
+ @id = id.next
457
+ id
458
+ end
452
459
  end
453
460
 
454
461
  private_constant :ImportCache
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassc-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.74.0
4
+ version: 1.74.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -79,7 +79,7 @@ licenses:
79
79
  metadata:
80
80
  bug_tracker_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/issues
81
81
  documentation_uri: https://rubydoc.info/gems/sassc
82
- source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.74.0
82
+ source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.74.1
83
83
  funding_uri: https://github.com/sponsors/ntkme
84
84
  rubygems_mfa_required: 'true'
85
85
  post_install_message: