sassc-embedded 1.64.1 → 1.64.2

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: 519d9a7796c0476fcb6fade84dbd2cf9f2d8fdee276ac28dfc9fb13895640645
4
- data.tar.gz: 6baaf9cd2d19147644f6c1c320492947f4af5f4c1e4886437e1906cda93643fd
3
+ metadata.gz: c0c3f79381ebf1f13b2b1a3e049acc02fe092da0fd229a87095014e93347c317
4
+ data.tar.gz: c99f48ee690cc56999888b6f92013a18ef6f6df3f2cc7baa9fd2080393078026
5
5
  SHA512:
6
- metadata.gz: ac771c550f630bb8d1d363dc7d84a9c18d04161b54f91eed048651db39e0e1ba06d65b249dfec6604fb14c3b9e1ff552c911a54d10e61ea3795e808acfbdb259
7
- data.tar.gz: 5d84bbc68bcf6f3ad056f9c7bcd49421a63286a9eb3892eef4c4048d3817e398c31693d2eaf6a88c244e8168ec21dafd0b1d435be845e9b9f5df76eddff07521
6
+ metadata.gz: 2065c04a11cc220990695434439602abb7b99710463b3da0541a25a2ef451a31e64ccce15852edd4e6a0e74c9c8ae3cd2cee0fc862e51e1ed20817ddc374095a
7
+ data.tar.gz: e1c3107e97173a4018676c10244cee380099d0d615283e838b2191460d0c310ee83ab15316c9525c011bf55c778bc1c58678ce6fb11babecede27de818fbb761
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.64.1'
5
+ VERSION = '1.64.2'
6
6
  end
7
7
  end
@@ -13,9 +13,11 @@ module SassC
13
13
  def render
14
14
  return @template.dup if @template.empty?
15
15
 
16
+ base_importer = import_handler.setup(nil)
17
+
16
18
  result = ::Sass.compile_string(
17
19
  @template,
18
- importer: import_handler.setup(nil),
20
+ importer: base_importer,
19
21
  load_paths: load_paths,
20
22
  syntax: syntax,
21
23
  url: file_url,
@@ -26,7 +28,7 @@ module SassC
26
28
  style: output_style,
27
29
 
28
30
  functions: functions_handler.setup(nil, functions: @functions),
29
- importers: @options.fetch(:importers, []),
31
+ importers: (base_importer.nil? ? [] : [base_importer]).concat(@options.fetch(:importers, [])),
30
32
 
31
33
  alert_ascii: @options.fetch(:alert_ascii, false),
32
34
  alert_color: @options.fetch(:alert_color, nil),
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.64.1
4
+ version: 1.64.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -54,8 +54,8 @@ homepage: https://github.com/ntkme/sassc-embedded-shim-ruby
54
54
  licenses:
55
55
  - MIT
56
56
  metadata:
57
- documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.64.1
58
- source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.64.1
57
+ documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.64.2
58
+ source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.64.2
59
59
  funding_uri: https://github.com/sponsors/ntkme
60
60
  post_install_message:
61
61
  rdoc_options: []