sassc-embedded 1.64.1 → 1.64.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0c3f79381ebf1f13b2b1a3e049acc02fe092da0fd229a87095014e93347c317
|
4
|
+
data.tar.gz: c99f48ee690cc56999888b6f92013a18ef6f6df3f2cc7baa9fd2080393078026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2065c04a11cc220990695434439602abb7b99710463b3da0541a25a2ef451a31e64ccce15852edd4e6a0e74c9c8ae3cd2cee0fc862e51e1ed20817ddc374095a
|
7
|
+
data.tar.gz: e1c3107e97173a4018676c10244cee380099d0d615283e838b2191460d0c310ee83ab15316c9525c011bf55c778bc1c58678ce6fb11babecede27de818fbb761
|
data/lib/sassc/embedded.rb
CHANGED
@@ -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:
|
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.
|
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.
|
58
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.64.
|
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: []
|