sass-embedded 1.77.0-x64-mingw32 → 1.77.2-x64-mingw32

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: 040bbd12ec1936534efabff11476a255fdfc5938f15a1f18a3d2dd4b484079bb
4
- data.tar.gz: 3d756ceed9cd1993fd011ef0142be56fc24ac51b9dd6212662c87e4fd117db8b
3
+ metadata.gz: 647827a5f7cd8c77ce636b36b03d39bdd821a4a2eb87320e2a488cbd19336fe4
4
+ data.tar.gz: 46935aa0221dc3352425427a621f9e71e01784ddfd83f3bc5d50b897a6e5bf46
5
5
  SHA512:
6
- metadata.gz: ab1b26c920e8fceff31bff4e4850b369ead75d407d9f3dba8115a3a77851d895e9ec707859c79049b71cc4005c20d3e151a1e719769f2e3f87117a768e95f2f8
7
- data.tar.gz: 552159fcf56aeb13881dc07cfb0b6cd94317365335b65d8cc82f39995f129b2301fc1da39ac15ba2be7cfa0b702634c55e48e619c0b31199862f024f23774dfd
6
+ metadata.gz: 2d3efe9a5dada0ce73f143e35cbd486624a8a548b527189540d86f20251eacec3c7bf4d96a8b14d39af2e51bdf2b3e5496f0c2fcc9b58787b479f7d79867a1bc
7
+ data.tar.gz: 77fed8c5123e4bfc2d545bd15b9fc0b25e6720b859e1aa2ec5346ffa849a259da8306a6d92b61fd2c87dedb83b7388c4f7d6d91419abbe4b0c6ebd006c47a3ef
@@ -87,6 +87,39 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
87
87
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
88
88
 
89
89
 
90
+ --------------------------------------------------------------------------------
91
+
92
+ _macros and macros license:
93
+
94
+ Copyright 2024, the Dart project authors.
95
+
96
+ Redistribution and use in source and binary forms, with or without
97
+ modification, are permitted provided that the following conditions are
98
+ met:
99
+
100
+ * Redistributions of source code must retain the above copyright
101
+ notice, this list of conditions and the following disclaimer.
102
+ * Redistributions in binary form must reproduce the above
103
+ copyright notice, this list of conditions and the following
104
+ disclaimer in the documentation and/or other materials provided
105
+ with the distribution.
106
+ * Neither the name of Google LLC nor the names of its
107
+ contributors may be used to endorse or promote products derived
108
+ from this software without specific prior written permission.
109
+
110
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
111
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
112
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
113
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
114
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
115
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
116
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
117
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
118
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
119
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
120
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
121
+
122
+
90
123
  --------------------------------------------------------------------------------
91
124
 
92
125
  analyzer, protobuf and protoc_plugin license:
Binary file
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
@@ -23,6 +23,8 @@ module Sass
23
23
  end
24
24
 
25
25
  @stdin.binmode
26
+
27
+ @wait_thread.name = "sass-embedded-process-waiter-#{@wait_thread.pid}"
26
28
  end
27
29
 
28
30
  def listen(dispatcher)
@@ -60,8 +62,6 @@ module Sass
60
62
  @stderr.close
61
63
  end
62
64
  end
63
-
64
- @wait_thread.name = "sass-embedded-process-waiter-#{@wait_thread.pid}"
65
65
  end
66
66
 
67
67
  def close
@@ -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.2'
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.2
5
5
  platform: x64-mingw32
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-16 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.2
98
+ source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.77.2
99
99
  funding_uri: https://github.com/sponsors/ntkme
100
100
  rubygems_mfa_required: 'true'
101
101
  post_install_message: