sass-embedded 1.77.0-x86-cygwin → 1.77.1-x86-cygwin

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: 7c3a69be547476320b8cc32af66dfa59b0d7398e72112e995beed4c82049a589
4
- data.tar.gz: a57e9c9159e88d4d98c33db55818d763a4096a36f025b8c3753184cad4a225b2
3
+ metadata.gz: e039ddf97ec303737f7bc5e4c81ce2b2ca09ae57bee64977a172300568fa0e1f
4
+ data.tar.gz: 6395679bf971f9c0f734908f891bd1b0d88908027f62d85dbded6cb9c755b342
5
5
  SHA512:
6
- metadata.gz: 9b3bec0c3c197e4bcf0ffbb70c4fe41ed1d0747cd435c34f0c1baa27a69a4d9b993be42ba6b15920fb16edebfee35b989839b680bcac0db30c5f9adfe771986c
7
- data.tar.gz: 30efd34425e46d75e9857cf92d2b0d8cbd059602049b2ed2618e67a0ef1a49b9f86cc9981a8e9f5123febfc2d8a3a79196216bf3c053f091a274d5099eb5c792
6
+ metadata.gz: 124d59649fc8ccf2661899f11be233d613f426fd08633df5bd76aa0f54d435eab3cc8062ab358f3407f50baa4693c9a9cf636bd5566880ffede0d7f2ce60ef10
7
+ data.tar.gz: f51ed8be3b12cbb96d0bfe274b7e1ea9a02346a13719572392691f273cf15f7afddefb379b800296d68b00274135f7058f2f67bfd81e96bf4b44f4984beed25d
Binary file
@@ -7,13 +7,17 @@ module Sass
7
7
  # @see https://sass-lang.com/documentation/js-api/interfaces/canonicalizecontext/
8
8
  class CanonicalizeContext
9
9
  # @return [String, nil]
10
- attr_reader :containing_url
10
+ def containing_url
11
+ @containing_url_unused = false
12
+ @containing_url
13
+ end
11
14
 
12
15
  # @return [Boolean]
13
16
  attr_reader :from_import
14
17
 
15
18
  # @!visibility private
16
19
  def initialize(canonicalize_request)
20
+ @containing_url_unused = true
17
21
  @containing_url = canonicalize_request.containing_url == '' ? nil : canonicalize_request.containing_url
18
22
  @from_import = canonicalize_request.from_import
19
23
  end
@@ -68,12 +68,14 @@ module Sass
68
68
 
69
69
  def canonicalize(canonicalize_request)
70
70
  importer = @importers_by_id[canonicalize_request.importer_id]
71
+ canonicalize_context = CanonicalizeContext.new(canonicalize_request)
71
72
  url = importer.canonicalize(canonicalize_request.url,
72
- CanonicalizeContext.new(canonicalize_request))&.to_s
73
+ canonicalize_context)&.to_s
73
74
 
74
75
  EmbeddedProtocol::InboundMessage::CanonicalizeResponse.new(
75
76
  id: canonicalize_request.id,
76
- url:
77
+ url:,
78
+ containing_url_unused: canonicalize_context.instance_eval { @containing_url_unused }
77
79
  )
78
80
  rescue StandardError => e
79
81
  EmbeddedProtocol::InboundMessage::CanonicalizeResponse.new(
@@ -103,12 +105,14 @@ module Sass
103
105
 
104
106
  def file_import(file_import_request)
105
107
  importer = @importers_by_id[file_import_request.importer_id]
108
+ canonicalize_context = CanonicalizeContext.new(file_import_request)
106
109
  file_url = importer.find_file_url(file_import_request.url,
107
- CanonicalizeContext.new(file_import_request))&.to_s
110
+ canonicalize_context)&.to_s
108
111
 
109
112
  EmbeddedProtocol::InboundMessage::FileImportResponse.new(
110
113
  id: file_import_request.id,
111
- file_url:
114
+ file_url:,
115
+ containing_url_unused: canonicalize_context.instance_eval { @containing_url_unused }
112
116
  )
113
117
  rescue StandardError => e
114
118
  EmbeddedProtocol::InboundMessage::FileImportResponse.new(
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  module Embedded
5
- VERSION = '1.77.0'
5
+ VERSION = '1.77.1'
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: 1.77.0
4
+ version: 1.77.1
5
5
  platform: x86-cygwin
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -94,8 +94,8 @@ licenses:
94
94
  - MIT
95
95
  metadata:
96
96
  bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
97
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.77.0
98
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.77.0
97
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.77.1
98
+ source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.77.1
99
99
  funding_uri: https://github.com/sponsors/ntkme
100
100
  rubygems_mfa_required: 'true'
101
101
  post_install_message: