sassc-embedded 1.0.5 → 1.0.6
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 +4 -4
- data/README.md +1 -1
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +6 -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: 549a3c63651d41009f28d92d0d2790365bebb84bccf6032f678a291326dd9e01
|
|
4
|
+
data.tar.gz: 76f918e39226e2c6beb2ec29cd4416a678bdeb2dee2e3bb19a7a21bcc06c5d75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef7775f76b00473a8c576d9dea876f3fb8ed4af76ad619f9bfd4b4a75f4250683b29df315e07aec38262d7c7702d2fd1fffbb83e887a1a2f253a36cf4e49c3e3
|
|
7
|
+
data.tar.gz: b210c166f0cdc23a984ef5bdf6d40f35d52e2dd7eebdd3fbb742d69c5f27b16f5acca8ea0fd8c0aaab420e826c1d93946f14f880643ae691cab31f818ae24fdd
|
data/README.md
CHANGED
|
@@ -51,6 +51,6 @@ See [rubydoc.info/gems/sassc](https://rubydoc.info/gems/sassc) for full API docu
|
|
|
51
51
|
|
|
52
52
|
4. Option `:line_comments` is ignored.
|
|
53
53
|
|
|
54
|
-
5.
|
|
54
|
+
5. Argument `parent_path` in `Importer#imports(path, parent_path)` is set to value of option `:filename`.
|
|
55
55
|
|
|
56
56
|
See [the dart-sass documentation](https://github.com/sass/dart-sass#behavioral-differences-from-ruby-sass) for other differences.
|
data/lib/sassc/embedded.rb
CHANGED
|
@@ -101,7 +101,7 @@ module SassC
|
|
|
101
101
|
data['file'] = Util::URI_PARSER.escape(relative_path(source_map_dir, output_path)) if output_path
|
|
102
102
|
|
|
103
103
|
data['sources'].map! do |source|
|
|
104
|
-
if source.start_with?
|
|
104
|
+
if source.start_with?('file:')
|
|
105
105
|
relative_path(source_map_dir, Util.file_url_to_path(source))
|
|
106
106
|
else
|
|
107
107
|
source
|
|
@@ -214,7 +214,11 @@ module SassC
|
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
def canonicalize(url, **)
|
|
217
|
-
path =
|
|
217
|
+
path = if url.start_with?('file:')
|
|
218
|
+
Util.file_url_to_path(url)
|
|
219
|
+
else
|
|
220
|
+
Util::URI_PARSER.unescape(url)
|
|
221
|
+
end
|
|
218
222
|
canonical_url = Util.path_to_file_url(File.absolute_path(path))
|
|
219
223
|
|
|
220
224
|
if @importer_results.key?(canonical_url)
|
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.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
@@ -138,8 +138,8 @@ homepage: https://github.com/ntkme/sassc-embedded-polyfill-ruby
|
|
|
138
138
|
licenses:
|
|
139
139
|
- MIT
|
|
140
140
|
metadata:
|
|
141
|
-
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.0.
|
|
142
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.0.
|
|
141
|
+
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.0.6
|
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.0.6
|
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
|
144
144
|
post_install_message:
|
|
145
145
|
rdoc_options: []
|