sassc-embedded 1.0.5 → 1.0.6

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: ba4aac10a3cd54af31dbc864abbb46373e7d3e60b70b8de8d29acbf4e3f012c9
4
- data.tar.gz: 4df26b873c9019d0abb12b20c8d2b2c90ad3684cc3748faba6e17518240c8848
3
+ metadata.gz: 549a3c63651d41009f28d92d0d2790365bebb84bccf6032f678a291326dd9e01
4
+ data.tar.gz: 76f918e39226e2c6beb2ec29cd4416a678bdeb2dee2e3bb19a7a21bcc06c5d75
5
5
  SHA512:
6
- metadata.gz: 8bc1d6a6eac3282c5e95e01411a76c639f49e7cf91cb970f33e2a4a5456a924bf3ccb9daba21ec8d2a42cdd04737f773ec1dacb571f23214c6ac64d20bfca778
7
- data.tar.gz: b1a6d3d4c5d8a1a18d75aa0ae451ed900a8f9da0f22edfc4aec2ffe836f9307d4b3e7426744efa6ee73799d347e3e7cb8505305e84cef3906a75cd6b4cd4182d
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. In `Importer#imports(path, parent_path)`, argument `path` is set to absolute path, and argument `parent_path` is set to value of option `:filename`.
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.0.5'
5
+ VERSION = '1.0.6'
6
6
  end
7
7
  end
@@ -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? 'file:'
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 = Util.file_url_to_path(url)
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.5
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.5
142
- source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.0.5
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: []