sass-embedded 1.56.1-x86-mingw32 → 1.57.1-x86-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: dadbf70ea72cfb83328a2c3719f8e93d7aa2ae18258c225a95ec7cbe7102999e
4
- data.tar.gz: 236c88eebfd2a88474a253e754779fe14c32eedcfc3672138966516a1e73abf7
3
+ metadata.gz: 486bfc5dc55e06007853c02a0b49459fe547cdca64e1b9b4f30d6deaaf9be90b
4
+ data.tar.gz: 3e9fce1cfd74ab3f37e23fd722233195dc5338513a8d0b04f22876d176804588
5
5
  SHA512:
6
- metadata.gz: a9db86731114e2796956a181f6b78736e4c1f12cfc434fa3804c04faf7929dc2ad4a2afaa37c5e2e57ac552f5ed43f90fab6caf4fda881b19243bbcc32e609c3
7
- data.tar.gz: 1fdbc7bed1b641f34f23f117be340aa5bd5bbdf75f6fce28207e6a73c153c82dc5ffff2d717fba9f4c54e442af1a0921934a0e60b8030296c99064952d07e4de
6
+ metadata.gz: 94a265533d80d4adddb1ba6add26283e1f001affa99fe82434011c456a411d01be990648c3568692798a90e7bde6f212d7a54e69d89cbfd79f4266dcba91e144
7
+ data.tar.gz: 87f9f575d82b5d87606993889e48bb1a45c6440e1fd2f1ac98ab153bd7e600e2c5ff7c0d41be292cfb49cd6061e1b7d6fe7cebbd350a95ce01ff7a39933eeb58
@@ -1,4 +1,4 @@
1
- sass_embedded license:
1
+ Dart Sass Embedded license:
2
2
 
3
3
  Copyright (c) 2019, Google LLC
4
4
 
@@ -182,7 +182,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
182
182
 
183
183
  --------------------------------------------------------------------------------
184
184
 
185
- async, cli_util, collection, mime, stream_channel and typed_data license:
185
+ async, cli_util, collection, mime, source_map_stack_trace, stream_channel and
186
+ typed_data license:
186
187
 
187
188
  Copyright 2015, the Dart project authors.
188
189
 
@@ -215,9 +216,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
215
216
 
216
217
  --------------------------------------------------------------------------------
217
218
 
218
- boolean_selector and test_descriptor license:
219
+ boolean_selector, meta and shelf_packages_handler license:
220
+
221
+ Copyright 2016, the Dart project authors.
219
222
 
220
- Copyright 2016, the Dart project authors. All rights reserved.
221
223
  Redistribution and use in source and binary forms, with or without
222
224
  modification, are permitted provided that the following conditions are
223
225
  met:
@@ -228,7 +230,7 @@ met:
228
230
  copyright notice, this list of conditions and the following
229
231
  disclaimer in the documentation and/or other materials provided
230
232
  with the distribution.
231
- * Neither the name of Google Inc. nor the names of its
233
+ * Neither the name of Google LLC nor the names of its
232
234
  contributors may be used to endorse or promote products derived
233
235
  from this software without specific prior written permission.
234
236
 
@@ -247,7 +249,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
247
249
 
248
250
  --------------------------------------------------------------------------------
249
251
 
250
- charcode, source_maps and stack_trace license:
252
+ charcode license:
251
253
 
252
254
  Copyright 2014, the Dart project authors. All rights reserved.
253
255
  Redistribution and use in source and binary forms, with or without
@@ -646,7 +648,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
646
648
 
647
649
  --------------------------------------------------------------------------------
648
650
 
649
- fixnum, http_multi_server, shelf and shelf_web_socket license:
651
+ fixnum, http_multi_server, shelf, shelf_web_socket, source_maps and stack_trace
652
+ license:
650
653
 
651
654
  Copyright 2014, the Dart project authors.
652
655
 
@@ -746,7 +749,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
746
749
 
747
750
  --------------------------------------------------------------------------------
748
751
 
749
- io and term_glyph license:
752
+ io, stream_transform and term_glyph license:
750
753
 
751
754
  Copyright 2017, the Dart project authors.
752
755
 
@@ -812,7 +815,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
812
815
 
813
816
  --------------------------------------------------------------------------------
814
817
 
815
- json_annotation and stream_transform license:
818
+ json_annotation license:
816
819
 
817
820
  Copyright 2017, the Dart project authors. All rights reserved.
818
821
  Redistribution and use in source and binary forms, with or without
@@ -875,39 +878,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
875
878
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
876
879
 
877
880
 
878
- --------------------------------------------------------------------------------
879
-
880
- meta and shelf_packages_handler license:
881
-
882
- Copyright 2016, the Dart project authors.
883
-
884
- Redistribution and use in source and binary forms, with or without
885
- modification, are permitted provided that the following conditions are
886
- met:
887
-
888
- * Redistributions of source code must retain the above copyright
889
- notice, this list of conditions and the following disclaimer.
890
- * Redistributions in binary form must reproduce the above
891
- copyright notice, this list of conditions and the following
892
- disclaimer in the documentation and/or other materials provided
893
- with the distribution.
894
- * Neither the name of Google LLC nor the names of its
895
- contributors may be used to endorse or promote products derived
896
- from this software without specific prior written permission.
897
-
898
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
899
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
900
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
901
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
902
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
903
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
904
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
905
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
906
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
907
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
908
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
909
-
910
-
911
881
  --------------------------------------------------------------------------------
912
882
 
913
883
  node_interop license:
@@ -1053,6 +1023,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1053
1023
  THE SOFTWARE.
1054
1024
 
1055
1025
 
1026
+ --------------------------------------------------------------------------------
1027
+
1028
+ pointycastle license:
1029
+
1030
+
1031
+ Copyright (c) 2000 - 2019 The Legion of the Bouncy Castle Inc. (https://www.bouncycastle.org)
1032
+
1033
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
1034
+ this software and associated documentation files (the "Software"), to deal in
1035
+ the Software without restriction, including without limitation the rights to
1036
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
1037
+ of the Software, and to permit persons to whom the Software is furnished to do
1038
+ so, subject to the following conditions:
1039
+
1040
+ The above copyright notice and this permission notice shall be included in all
1041
+ copies or substantial portions of the Software.
1042
+
1043
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1044
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1045
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1046
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1047
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1048
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1049
+
1050
+
1051
+
1056
1052
  --------------------------------------------------------------------------------
1057
1053
 
1058
1054
  pubspec_parse, test_api and test_core license:
@@ -1088,7 +1084,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1088
1084
 
1089
1085
  --------------------------------------------------------------------------------
1090
1086
 
1091
- quiver license:
1087
+ retry license:
1092
1088
 
1093
1089
 
1094
1090
  Apache License
@@ -1321,9 +1317,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1321
1317
 
1322
1318
  --------------------------------------------------------------------------------
1323
1319
 
1324
- source_map_stack_trace license:
1320
+ test_descriptor and web_socket_channel license:
1321
+
1322
+ Copyright 2016, the Dart project authors.
1325
1323
 
1326
- Copyright 2015, the Dart project authors. All rights reserved.
1327
1324
  Redistribution and use in source and binary forms, with or without
1328
1325
  modification, are permitted provided that the following conditions are
1329
1326
  met:
@@ -1334,7 +1331,7 @@ met:
1334
1331
  copyright notice, this list of conditions and the following
1335
1332
  disclaimer in the documentation and/or other materials provided
1336
1333
  with the distribution.
1337
- * Neither the name of Google Inc. nor the names of its
1334
+ * Neither the name of Google LLC nor the names of its
1338
1335
  contributors may be used to endorse or promote products derived
1339
1336
  from this software without specific prior written permission.
1340
1337
 
@@ -1411,39 +1408,6 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1411
1408
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1412
1409
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1413
1410
 
1414
- --------------------------------------------------------------------------------
1415
-
1416
- web_socket_channel license:
1417
-
1418
- Copyright 2016, the Dart project authors.
1419
-
1420
- Redistribution and use in source and binary forms, with or without
1421
- modification, are permitted provided that the following conditions are
1422
- met:
1423
-
1424
- * Redistributions of source code must retain the above copyright
1425
- notice, this list of conditions and the following disclaimer.
1426
- * Redistributions in binary form must reproduce the above
1427
- copyright notice, this list of conditions and the following
1428
- disclaimer in the documentation and/or other materials provided
1429
- with the distribution.
1430
- * Neither the name of Google LLC nor the names of its
1431
- contributors may be used to endorse or promote products derived
1432
- from this software without specific prior written permission.
1433
-
1434
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1435
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1436
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1437
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1438
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1439
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1440
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1441
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1442
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1443
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1444
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1445
-
1446
-
1447
1411
  --------------------------------------------------------------------------------
1448
1412
 
1449
1413
  yaml license:
Binary file
@@ -15,26 +15,19 @@ module Sass
15
15
  private_constant :State
16
16
 
17
17
  def initialize
18
- @error = nil
19
18
  @result = nil
20
19
  @state = State::PENDING
21
20
 
22
21
  @condition_variable = ConditionVariable.new
23
22
  @mutex = Mutex.new
24
-
25
- begin
26
- yield if block_given?
27
- rescue StandardError => e
28
- reject e
29
- end
30
23
  end
31
24
 
32
25
  def resolve(value)
33
26
  @mutex.synchronize do
34
27
  return unless @state == State::PENDING
35
28
 
36
- @state = State::FULFILLED
37
29
  @result = value
30
+ @state = State::FULFILLED
38
31
  @condition_variable.broadcast
39
32
  end
40
33
  end
@@ -43,8 +36,8 @@ module Sass
43
36
  @mutex.synchronize do
44
37
  return unless @state == State::PENDING
45
38
 
39
+ @result = reason
46
40
  @state = State::REJECTED
47
- @error = reason
48
41
  @condition_variable.broadcast
49
42
  end
50
43
  end
@@ -53,7 +46,7 @@ module Sass
53
46
  @mutex.synchronize do
54
47
  @condition_variable.wait(@mutex) if @state == State::PENDING
55
48
 
56
- raise @error if @state == State::REJECTED
49
+ raise @result if @state == State::REJECTED
57
50
 
58
51
  @result
59
52
  end
@@ -70,13 +70,7 @@ module Sass
70
70
  when :error
71
71
  @mutex.synchronize do
72
72
  @id = PROTOCOL_ERROR_ID
73
- if message.type == :PARAMS
74
- []
75
- elsif message.id == PROTOCOL_ERROR_ID
76
- @observers.values
77
- else
78
- [@observers[message.id]]
79
- end
73
+ message.id == PROTOCOL_ERROR_ID ? @observers.values : [@observers[message.id]]
80
74
  end.each do |observer|
81
75
  observer.public_send(oneof, message)
82
76
  end
@@ -14,7 +14,6 @@ module Sass
14
14
 
15
15
  @global_functions = functions.keys
16
16
  @functions_by_name = functions.transform_keys do |signature|
17
- signature = signature.chomp
18
17
  index = signature.index('(')
19
18
  if index
20
19
  signature.slice(0, index)
@@ -86,10 +86,6 @@ module Sass
86
86
  importer = @importers_by_id[file_import_request.importer_id]
87
87
  file_url = importer.find_file_url(file_import_request.url, from_import: file_import_request.from_import)&.to_s
88
88
 
89
- if !file_url.nil? && !file_url.start_with?('file:')
90
- raise "file_url must be a file: URL, was #{file_url.inspect}"
91
- end
92
-
93
89
  EmbeddedProtocol::InboundMessage::FileImportResponse.new(
94
90
  id: file_import_request.id,
95
91
  file_url: file_url
@@ -180,7 +180,7 @@ module Sass
180
180
  when :compiler_function
181
181
  Sass::Value::Function.new(obj.id)
182
182
  when :host_function
183
- raise ProtocolError, 'The compiler may not send Value.host_function to host'
183
+ raise Sass::ScriptError, 'The compiler may not send Value.host_function to host'
184
184
  when :singleton
185
185
  case obj
186
186
  when :TRUE
@@ -15,14 +15,6 @@ module Sass
15
15
  @channel = channel
16
16
  end
17
17
 
18
- def id
19
- @connection.id
20
- end
21
-
22
- def send_message(**kwargs)
23
- @connection.send_message(**kwargs)
24
- end
25
-
26
18
  def compile_request(path:,
27
19
  source:,
28
20
  importer:,
@@ -85,11 +77,11 @@ module Sass
85
77
  end
86
78
 
87
79
  def compile_response(message)
88
- @async.resolve(message)
80
+ resolve(message)
89
81
  end
90
82
 
91
83
  def version_response(message)
92
- @async.resolve(message)
84
+ resolve(message)
93
85
  end
94
86
 
95
87
  def canonicalize_request(message)
@@ -109,7 +101,7 @@ module Sass
109
101
  end
110
102
 
111
103
  def error(message)
112
- @async.reject(CompileError.new(message.message, nil, nil, nil))
104
+ reject(CompileError.new(message.message, nil, nil, nil))
113
105
  end
114
106
 
115
107
  private
@@ -122,6 +114,22 @@ module Sass
122
114
  ensure
123
115
  @connection&.disconnect
124
116
  end
117
+
118
+ def resolve(value)
119
+ @async.resolve(value)
120
+ end
121
+
122
+ def reject(reason)
123
+ @async.reject(reason)
124
+ end
125
+
126
+ def id
127
+ @connection.id
128
+ end
129
+
130
+ def send_message(**kwargs)
131
+ @connection.send_message(**kwargs)
132
+ end
125
133
  end
126
134
 
127
135
  private_constant :Host
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.56.1'
5
+ VERSION = '1.57.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.56.1
4
+ version: 1.57.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-10 00:00:00.000000000 Z
11
+ date: 2022-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.38.0
61
+ version: 1.40.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.38.0
68
+ version: 1.40.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-performance
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.15.0
103
+ version: 2.16.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.15.0
110
+ version: 2.16.0
111
111
  description: A Ruby library that will communicate with Embedded Dart Sass using the
112
112
  Embedded Sass protocol.
113
113
  email:
@@ -161,8 +161,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
161
161
  licenses:
162
162
  - MIT
163
163
  metadata:
164
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.56.1
165
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.56.1
164
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.57.1
165
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.57.1
166
166
  funding_uri: https://github.com/sponsors/ntkme
167
167
  post_install_message:
168
168
  rdoc_options: []
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.3.25
182
+ rubygems_version: 3.3.26
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Use dart-sass with Ruby!