sassc-embedded 1.77.6 → 1.77.7

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
  SHA256:
3
- metadata.gz: abfda7ec1954206ddeaa5615edb426019fbe31b3eefd755b70123790d7184e17
4
- data.tar.gz: 82c27c03bb0cafb0066e9e0cb06a6facef27306a3d39bf8ac586ee807e5bd9ff
3
+ metadata.gz: 4a5084e30e04703dd21157b4dd3bf32abee7f789e939056a033bc4ddb4c2b1a2
4
+ data.tar.gz: eb1f8e6e1ce7ea90364fccbd4241fb5ccb677ae29a11ed385ec8c1bec068ae85
5
5
  SHA512:
6
- metadata.gz: 6ab470b94835dcde4f7c3430b9410535645f4b335283cd777a06932eba4c378fde7319c5c1bf76f127be4c4f36761efb24d99e0de7926a39443832bd84ce60d8
7
- data.tar.gz: ae24593c836f5878d120ea0d43feea97bba1dabbb80ac4dc347972f840a4321d60cfeca92d071573a6cc6ec7051026919a397b1e707dc5295cbd87fc38a00742
6
+ metadata.gz: 0a1bc6dc872c8cb0ebec80c1cc4d7550b62445515a3e6eca3d510094aadc0c48ce8d213ad5b31934501150b3f771efcdc931560befb87b8c827f74a0cb80fe4e
7
+ data.tar.gz: d9012320b9955c2aea7012bd11d0874dbf3b68ff807e6b7b5f395b22e7b8e4bbc75f48c38c9618fd2da669fd093193c61c257afd0eebc1507cba5a2ab792a0a4
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.77.6'
5
+ VERSION = '1.77.7'
6
6
  end
7
7
  end
@@ -231,7 +231,7 @@ module SassC
231
231
 
232
232
  private_constant :FileImporter
233
233
 
234
- class FileSystemImporter
234
+ module FileSystemImporter
235
235
  class << self
236
236
  def resolve_path(path, from_import)
237
237
  ext = File.extname(path)
@@ -308,6 +308,7 @@ module SassC
308
308
  def initialize(importer)
309
309
  @importer = importer
310
310
  @importer_results = {}
311
+ @importer_result = nil
311
312
  @file_url = nil
312
313
  end
313
314
 
@@ -322,28 +323,29 @@ module SassC
322
323
 
323
324
  if containing_url.include?('?')
324
325
  canonical_url = Uri.path_to_file_url(File.absolute_path(path, parent_dir))
325
- if @importer_results.key?(canonical_url)
326
- canonical_url
327
- else
326
+ unless @importer_results.key?(canonical_url)
328
327
  @file_url = resolve_file_url(path, parent_dir, context.from_import)
329
- nil
328
+ return
330
329
  end
331
330
  else
332
331
  imports = @importer.imports(path, parent_path)
333
332
  imports = [SassC::Importer::Import.new(path)] if imports.nil?
334
333
  imports = [imports] unless imports.is_a?(Array)
335
334
  canonical_url = imports_to_native(imports, parent_dir, context.from_import, url, containing_url)
336
- if @importer_results.key?(canonical_url)
337
- canonical_url
338
- else
335
+ unless @importer_results.key?(canonical_url)
339
336
  @file_url = canonical_url
340
- nil
337
+ return
341
338
  end
342
339
  end
340
+
341
+ @importer_result = @importer_results.delete(canonical_url)
342
+ canonical_url
343
343
  end
344
344
 
345
- def load(canonical_url)
346
- @importer_results.delete(canonical_url)
345
+ def load(_canonical_url)
346
+ importer_result = @importer_result
347
+ @importer_result = nil
348
+ importer_result
347
349
  end
348
350
 
349
351
  def find_file_url(_url, context)
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.77.6
4
+ version: 1.77.7
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.77.6
82
+ source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.77.7
83
83
  funding_uri: https://github.com/sponsors/ntkme
84
84
  rubygems_mfa_required: 'true'
85
85
  post_install_message: