sass-embedded 0.19.2 → 0.19.3

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: 827e324d735fe63938d7ddeb8d13c31577d9eec28971561bf6eae4cca7013eeb
4
- data.tar.gz: b8536a68113173ca68edecca565ef7f4e13aba5a647902f0dd4d1411c2127380
3
+ metadata.gz: 5bd880f5e8c75f6b6a49d2359b96df7f11b49cad5273f81d08a46eeac5c105f1
4
+ data.tar.gz: ac523992c522ae01aac03727690d35c67f00d1d24d3d73d36400917b29968616
5
5
  SHA512:
6
- metadata.gz: 9c16c31eec049d62c380049e2b565fcb1d05c55205f3f5966b43b47fd058d1c0fffc959f178ed68b47465cbd0c152b355c8196912a3688ba01a2c5783a2b9719
7
- data.tar.gz: 4d4836379db8fa44061bf92c49c2a49dcb76f0299fad42df56c8c4d59ce0babf66d8245f3c73e36b51a6f58062050e9bff8bccbfb5356a8b87b40329abcb1f41
6
+ metadata.gz: 586635d023e843dbcc27e48669b5421f9e1488d90770f062a55e02328cec114753c5e8c94ba8b2afcb1d8ddace38eff746ffb3357bfdf27efd999d9c33edc388
7
+ data.tar.gz: 3aca765800907870df8a5fe377ab7211be5293f244c7b140ed6ca6de7f0588589b4f76e8e8258fc1da8b8e8d136126de6f873579ae91136c5c60178d2951e416
@@ -372,30 +372,33 @@ module Sass
372
372
  # @deprecated
373
373
  # The {Url} module.
374
374
  module Url
375
- # The {::URI::Parser} that is in consistent with RFC 2396 (URI Generic Syntax) and dart:core library.
376
- URI_PARSER = URI::Parser.new({ RESERVED: ';/?:@&=+$,' })
377
-
378
375
  FILE_SCHEME = 'file://'
379
376
 
380
- private_constant :URI_PARSER, :FILE_SCHEME
377
+ private_constant :FILE_SCHEME
381
378
 
382
379
  module_function
383
380
 
384
381
  def path_to_file_url(path)
385
382
  if File.absolute_path? path
386
- URI_PARSER.escape "#{FILE_SCHEME}#{Gem.win_platform? ? '/' : ''}#{path}"
383
+ uri_parser.escape "#{FILE_SCHEME}#{Gem.win_platform? ? '/' : ''}#{path}"
387
384
  else
388
- URI_PARSER.escape path
385
+ uri_parser.escape path
389
386
  end
390
387
  end
391
388
 
392
389
  def file_url_to_path(url)
393
390
  if url.start_with? FILE_SCHEME
394
- URI_PARSER.unescape url[(FILE_SCHEME.length + (Gem.win_platform? ? 1 : 0))..]
391
+ uri_parser.unescape url[(FILE_SCHEME.length + (Gem.win_platform? ? 1 : 0))..]
395
392
  else
396
- URI_PARSER.unescape url
393
+ uri_parser.unescape url
397
394
  end
398
395
  end
396
+
397
+ private
398
+
399
+ def uri_parser
400
+ @uri_parser ||= URI::Parser.new({ RESERVED: ';/?:@&=+$,' })
401
+ end
399
402
  end
400
403
 
401
404
  private_constant :LegacyImporter
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '0.19.2'
5
+ VERSION = '0.19.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2
4
+ version: 0.19.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -163,8 +163,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
163
163
  licenses:
164
164
  - MIT
165
165
  metadata:
166
- documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.19.2
167
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.19.2
166
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.19.3
167
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.19.3
168
168
  funding_uri: https://github.com/sponsors/ntkme
169
169
  post_install_message:
170
170
  rdoc_options: []