sassc-embedded 1.75.0 → 1.75.2

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: 0de8391b1121b4101cf613ea4f7d7f854e4e96211cc0d5463ae0b419523aa85f
4
- data.tar.gz: '06514688a9cd96979626c33a1ff7314ec6a0846d917f83b3e22404f5f1b67ec2'
3
+ metadata.gz: cf373b6b88c4dcdc3c784f85965562aa6e86ffffafd8ecb2b30513f2f52d51ae
4
+ data.tar.gz: d29bad09cafd09e2a5953c46ec546fe9674fc022bbae0b9092d399d4902b621c
5
5
  SHA512:
6
- metadata.gz: 6f3474d7c63a4fd2d1f9f9b1c1c8fc808620fa6080801c0d50a7e9448ea33083f1c1aaf341eeb919af9ffc5d20fa21d7c5f3ba1b2100b9316c7abb796eec4775
7
- data.tar.gz: 7a7cdb33102bc838a17ef302d814abb60dfe59d5f855c50f800b1f91ad6bc3b49937194d26d62fa0fcb5cc6964b4b5d72e22bc25bd73c37e381fe7851017a6ba
6
+ metadata.gz: c0ecd4e0d91d6890d2b9312a7f39889d46f58095299fa3160a7f133e2dc5efd51734ea0577c80271fedb0601357e9231d6beadd24dbff0e7e54a5b1a048ea74c
7
+ data.tar.gz: b58e4c56f4e3e41796f497885107f63765b91ec2fe81171cdc27b4d6d5d0a82909776a7453f723eee666f4e1cfedf1bedab35a75632517959e4e0cbe3b2ba909
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.75.0'
5
+ VERSION = '1.75.2'
6
6
  end
7
7
  end
@@ -135,11 +135,7 @@ module SassC
135
135
  end
136
136
 
137
137
  def load_paths
138
- @load_paths ||= if @options[:importer].nil?
139
- (@options[:load_paths] || []) + SassC.load_paths
140
- else
141
- []
142
- end
138
+ @load_paths ||= (@options[:load_paths] || []) + SassC.load_paths
143
139
  end
144
140
  end
145
141
 
@@ -309,7 +305,6 @@ module SassC
309
305
  @importer = importer
310
306
  @importer_results = {}
311
307
  @file_url = nil
312
- @load_paths = (@importer.options[:load_paths] || []) + SassC.load_paths
313
308
  end
314
309
 
315
310
  def canonicalize(url, context)
@@ -353,8 +348,8 @@ module SassC
353
348
  @importer_results.delete(canonical_url)
354
349
  end
355
350
 
356
- def find_file_url(_url, _context)
357
- return if @file_url.nil?
351
+ def find_file_url(_url, context)
352
+ return if context.containing_url.nil? || @file_url.nil?
358
353
 
359
354
  canonical_url = @file_url
360
355
  @file_url = nil
@@ -364,11 +359,8 @@ module SassC
364
359
  private
365
360
 
366
361
  def resolve_file_url(path, parent_dir, from_import)
367
- [parent_dir].concat(@load_paths).each do |load_path|
368
- resolved = FileSystemImporter.resolve_path(File.absolute_path(path, load_path), from_import)
369
- return URL.path_to_file_url(resolved) unless resolved.nil?
370
- end
371
- nil
362
+ resolved = FileSystemImporter.resolve_path(File.absolute_path(path, parent_dir), from_import)
363
+ URL.path_to_file_url(resolved) unless resolved.nil?
372
364
  end
373
365
 
374
366
  def syntax(path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassc-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.75.0
4
+ version: 1.75.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-12 00:00:00.000000000 Z
11
+ date: 2024-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass-embedded
@@ -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.75.0
82
+ source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.75.2
83
83
  funding_uri: https://github.com/sponsors/ntkme
84
84
  rubygems_mfa_required: 'true'
85
85
  post_install_message: