sass-embedded 0.10.0 → 0.11.0

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: e3c01d861dce5149bb56f25e6cb89e54d21a26bc4e50486298f860b2386198b7
4
- data.tar.gz: 36f04488a3118b833f6210766e590a617fe7204dabb31b0908023b32a008ed21
3
+ metadata.gz: 8d392419747bbe1cffb4c3843a60a8de343a07fc938c1ad061ce8cde4519fd4a
4
+ data.tar.gz: 358c8083d14d6d27d84d6091cad64dd39e35c1076295e030b668386b4856098a
5
5
  SHA512:
6
- metadata.gz: c7c15d96579e3dc1843c3dfc66709c9a3ae48bcbb7458f0defcc91c313cffb53dc43b01d114c35b13b8a7b8cfae516440037730283d52e5ea506fffa70a9bcac
7
- data.tar.gz: ae089947ade94c0550e9a066860e89e1c774572ddc1ab7c5b42327f4a9f3fe6db41c4422ce96a9454d63b44ae8675091239278ebd8d6f524438c0f680a3e5e26
6
+ metadata.gz: 3a50de89e870d5d4fe054eb0702da7774fba5e445e65fba3efb9364d6ed140bbb07cb1dec2d06bee96d08cf79017c383a921def2487c78468c2a3fe2c3e6a54e
7
+ data.tar.gz: e746cc7db807ab73557e03d342d7a5f88d81b7c581a5969d2a63dec1a63699828bc49fcfa1fa4d80ac5edb8452495b15bc8c2e5163127d4985276490c3259e98
@@ -72,7 +72,9 @@ module Sass
72
72
  when EmbeddedProtocol::OutboundMessage::LogEvent
73
73
  return unless message.compilation_id == id
74
74
 
75
- log message
75
+ Thread.new do
76
+ log message
77
+ end
76
78
  when EmbeddedProtocol::OutboundMessage::CanonicalizeRequest
77
79
  return unless message.compilation_id == id
78
80
 
@@ -318,7 +318,8 @@ module Sass
318
318
  end
319
319
 
320
320
  def canonicalize(url)
321
- canonical_url = Url.path_to_file_url(File.absolute_path(url, (@file.nil? ? 'stdin' : @file)))
321
+ path = Url.file_url_to_path(url)
322
+ canonical_url = Url.path_to_file_url(File.absolute_path(path, (@file.nil? ? 'stdin' : @file)))
322
323
 
323
324
  result = @importer.call canonical_url, @file
324
325
 
@@ -14,11 +14,19 @@ module Sass
14
14
  module_function
15
15
 
16
16
  def path_to_file_url(path)
17
- "file://#{Platform::OS == 'windows' ? File::SEPARATOR : ''}#{URI_PARSER.escape(path)}"
17
+ if File.absolute_path? path
18
+ "file://#{Platform::OS == 'windows' ? File::SEPARATOR : ''}#{URI_PARSER.escape(path)}"
19
+ else
20
+ URI_PARSER.escape(path)
21
+ end
18
22
  end
19
23
 
20
- def file_url_to_path(file_uri)
21
- URI_PARSER.unescape(file_uri[(Platform::OS == 'windows' ? 8 : 7)..])
24
+ def file_url_to_path(url)
25
+ if url.start_with? 'file://'
26
+ URI_PARSER.unescape url[(Platform::OS == 'windows' ? 8 : 7)..]
27
+ else
28
+ URI_PARSER.unescape url
29
+ end
22
30
  end
23
31
  end
24
32
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '0.10.0'
5
+ VERSION = '0.11.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-15 00:00:00.000000000 Z
11
+ date: 2022-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -164,8 +164,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
164
164
  licenses:
165
165
  - MIT
166
166
  metadata:
167
- documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.10.0
168
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.10.0
167
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.11.0
168
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.11.0
169
169
  funding_uri: https://github.com/sponsors/ntkme
170
170
  post_install_message:
171
171
  rdoc_options: []
@@ -175,14 +175,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - ">="
177
177
  - !ruby/object:Gem::Version
178
- version: 2.6.0
178
+ version: 2.7.0
179
179
  required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  requirements:
181
181
  - - ">="
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.2.32
185
+ rubygems_version: 3.3.3
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Use dart-sass with Ruby!