sass-embedded 1.56.2-x64-mingw-ucrt → 1.58.0-x64-mingw-ucrt

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: 5b9d7237b9e3c5f6e5bf5050ab4042ec039efe9ab76cca09bc539fb3db77efdc
4
- data.tar.gz: 69823a99ee762e3beb67a9f0d5c7e71d453519f51ff550a59529f5c0b185a7a9
3
+ metadata.gz: cfea108417409e961cf4abd927dfc896779e781a1c545daad55a5a6a574c131e
4
+ data.tar.gz: cbcf68061ea3e7e7b9cf9e63bcf357714c36f5ac3020f63d51b4cbc8ac121313
5
5
  SHA512:
6
- metadata.gz: '09e3bc6724e03a6f741c658c3f069316b23fc82e16c71bfc2d027cda3a825a586fcc339a5b74f3e98bb4b477a7f855fb19385da0a21f2f40408ba8b1d3598997'
7
- data.tar.gz: ee56a1a939210f9308b541a9373aa87b0d89fb5cb0007fc582d2169ccf84fe45be15b16782a1cbf25790c04b8611a585b070dddb375393df6a3a2405547e15af
6
+ metadata.gz: cc996db02d36db4d336b8d44c25113df272115bed31144dd496165fa2e7c2a61ee27dadd8f3d1775561f9fa15bb89062bf701c0d822c187a7802d97848cb7c17
7
+ data.tar.gz: 5e0b4d2cfe2db5227043f104e07ffc3e2ff1c08cee5a4758019d403acdab2f22df25410cf85a88d7bf2633774ad4170ec33f333a4c90838de6b3507526708ebd
data/ext/sass/embedded.rb CHANGED
@@ -3,7 +3,10 @@
3
3
  module Sass
4
4
  class Embedded
5
5
  class Compiler
6
- PATH = File.absolute_path('sass_embedded/dart-sass-embedded.bat', __dir__)
6
+ COMMAND = [
7
+ File.absolute_path('sass_embedded/src/dart.exe', __dir__),
8
+ File.absolute_path('sass_embedded/src/dart-sass-embedded.snapshot', __dir__)
9
+ ].freeze
7
10
  end
8
11
  end
9
12
  end
@@ -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
@@ -9,7 +9,7 @@ module Sass
9
9
  # It runs the `dart-sass-embedded` process.
10
10
  class Compiler
11
11
  def initialize
12
- @stdin, @stdout, @stderr, @wait_thread = Open3.popen3(PATH, chdir: __dir__)
12
+ @stdin, @stdout, @stderr, @wait_thread = Open3.popen3(*COMMAND, chdir: __dir__)
13
13
  @stdin.binmode
14
14
  @stdout.binmode
15
15
  @stdin_mutex = Mutex.new
@@ -44,7 +44,13 @@ module Sass
44
44
  @mutex.synchronize do
45
45
  @observers.delete(id)
46
46
 
47
- close if @id == PROTOCOL_ERROR_ID && @observers.empty?
47
+ return unless @observers.empty?
48
+
49
+ if @id == PROTOCOL_ERROR_ID
50
+ close
51
+ else
52
+ @id = 0
53
+ end
48
54
  end
49
55
  end
50
56
 
@@ -57,7 +63,8 @@ module Sass
57
63
  end
58
64
 
59
65
  def send_message(**kwargs)
60
- @compiler.write(EmbeddedProtocol::InboundMessage.new(**kwargs).to_proto)
66
+ inbound_message = EmbeddedProtocol::InboundMessage.new(**kwargs)
67
+ @compiler.write(inbound_message.to_proto)
61
68
  end
62
69
 
63
70
  private
@@ -16,9 +16,9 @@ module Sass
16
16
  @functions_by_name = functions.transform_keys do |signature|
17
17
  index = signature.index('(')
18
18
  if index
19
- signature.slice(0, index).chomp
19
+ signature.slice(0, index)
20
20
  else
21
- signature.chomp
21
+ signature
22
22
  end
23
23
  end
24
24
 
@@ -32,7 +32,7 @@ module Sass
32
32
  logger:,
33
33
  quiet_deps:,
34
34
  verbose:)
35
- await do
35
+ compile_response = await do
36
36
  alert_color = $stderr.tty? if alert_color.nil?
37
37
 
38
38
  @function_registry = FunctionRegistry.new(functions, alert_color: alert_color)
@@ -62,14 +62,18 @@ module Sass
62
62
  verbose: verbose
63
63
  ))
64
64
  end
65
+
66
+ Protofier.from_proto_compile_response(compile_response)
65
67
  end
66
68
 
67
69
  def version_request
68
- await do
70
+ version_response = await do
69
71
  send_message(version_request: EmbeddedProtocol::InboundMessage::VersionRequest.new(
70
72
  id: id
71
73
  ))
72
74
  end
75
+
76
+ "sass-embedded\t#{version_response.implementation_version}"
73
77
  end
74
78
 
75
79
  def log_event(message)
@@ -22,7 +22,7 @@ module Sass
22
22
  def write(writeable, value)
23
23
  bytes = []
24
24
  until value < 0x80
25
- bytes << (0x80 | (value & 0x7f))
25
+ bytes << ((value & 0x7f) | 0x80)
26
26
  value >>= 7
27
27
  end
28
28
  bytes << value
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.56.2'
5
+ VERSION = '1.58.0'
6
6
  end
7
7
  end
data/lib/sass/embedded.rb CHANGED
@@ -28,8 +28,13 @@ require_relative 'value'
28
28
  # @example
29
29
  # Sass.compile_string('h1 { font-size: 40px; }')
30
30
  module Sass
31
+ @instance = nil
32
+ @mutex = Mutex.new
33
+
34
+ # rubocop:disable Layout/LineLength
31
35
  class << self
32
36
  # Compiles the Sass file at +path+ to CSS.
37
+ # @overload compile(path, load_paths: [], charset: true, source_map: false, source_map_include_sources: false, style: :expanded, functions: {}, importers: [], alert_ascii: false, alert_color: nil, logger: nil, quiet_deps: false, verbose: false)
33
38
  # @param (see Embedded#compile)
34
39
  # @return (see Embedded#compile)
35
40
  # @raise (see Embedded#compile)
@@ -39,6 +44,7 @@ module Sass
39
44
  end
40
45
 
41
46
  # Compiles a stylesheet whose contents is +source+ to CSS.
47
+ # @overload compile_string(source, importer: nil, load_paths: [], syntax: :scss, url: nil, charset: true, source_map: false, source_map_include_sources: false, style: :expanded, functions: {}, importers: [], alert_ascii: false, alert_color: nil, logger: nil, quiet_deps: false, verbose: false)
42
48
  # @param (see Embedded#compile_string)
43
49
  # @return (see Embedded#compile_string)
44
50
  # @raise (see Embedded#compile_string)
@@ -58,17 +64,21 @@ module Sass
58
64
  private
59
65
 
60
66
  def instance
61
- if defined? @instance
62
- @instance = Embedded.new if @instance.closed?
63
- else
67
+ return @instance if @instance
68
+
69
+ @mutex.synchronize do
70
+ return @instance if @instance
71
+
64
72
  @instance = Embedded.new
65
73
  at_exit do
66
74
  @instance.close
67
75
  end
68
76
  end
77
+
69
78
  @instance
70
79
  end
71
80
  end
81
+ # rubocop:enable Layout/LineLength
72
82
 
73
83
  # The {Embedded} host for using dart-sass-embedded. Each instance creates
74
84
  # its own communication {Channel} with a dedicated compiler process.
@@ -129,26 +139,24 @@ module Sass
129
139
  verbose: false)
130
140
  raise ArgumentError, 'path must be set' if path.nil?
131
141
 
132
- Protofier.from_proto_compile_response(
133
- Host.new(@channel).compile_request(
134
- path: path,
135
- source: nil,
136
- importer: nil,
137
- load_paths: load_paths,
138
- syntax: nil,
139
- url: nil,
140
- charset: charset,
141
- source_map: source_map,
142
- source_map_include_sources: source_map_include_sources,
143
- style: style,
144
- functions: functions,
145
- importers: importers,
146
- alert_color: alert_color,
147
- alert_ascii: alert_ascii,
148
- logger: logger,
149
- quiet_deps: quiet_deps,
150
- verbose: verbose
151
- )
142
+ Host.new(@channel).compile_request(
143
+ path: path,
144
+ source: nil,
145
+ importer: nil,
146
+ load_paths: load_paths,
147
+ syntax: nil,
148
+ url: nil,
149
+ charset: charset,
150
+ source_map: source_map,
151
+ source_map_include_sources: source_map_include_sources,
152
+ style: style,
153
+ functions: functions,
154
+ importers: importers,
155
+ alert_color: alert_color,
156
+ alert_ascii: alert_ascii,
157
+ logger: logger,
158
+ quiet_deps: quiet_deps,
159
+ verbose: verbose
152
160
  )
153
161
  end
154
162
 
@@ -205,33 +213,31 @@ module Sass
205
213
  verbose: false)
206
214
  raise ArgumentError, 'source must be set' if source.nil?
207
215
 
208
- Protofier.from_proto_compile_response(
209
- Host.new(@channel).compile_request(
210
- path: nil,
211
- source: source,
212
- importer: importer,
213
- load_paths: load_paths,
214
- syntax: syntax,
215
- url: url,
216
- charset: charset,
217
- source_map: source_map,
218
- source_map_include_sources: source_map_include_sources,
219
- style: style,
220
- functions: functions,
221
- importers: importers,
222
- alert_color: alert_color,
223
- alert_ascii: alert_ascii,
224
- logger: logger,
225
- quiet_deps: quiet_deps,
226
- verbose: verbose
227
- )
216
+ Host.new(@channel).compile_request(
217
+ path: nil,
218
+ source: source,
219
+ importer: importer,
220
+ load_paths: load_paths,
221
+ syntax: syntax,
222
+ url: url,
223
+ charset: charset,
224
+ source_map: source_map,
225
+ source_map_include_sources: source_map_include_sources,
226
+ style: style,
227
+ functions: functions,
228
+ importers: importers,
229
+ alert_color: alert_color,
230
+ alert_ascii: alert_ascii,
231
+ logger: logger,
232
+ quiet_deps: quiet_deps,
233
+ verbose: verbose
228
234
  )
229
235
  end
230
236
 
231
237
  # @return [String] Information about the Sass implementation.
232
238
  # @see https://sass-lang.com/documentation/js-api/modules#info
233
239
  def info
234
- @info ||= "sass-embedded\t#{Host.new(@channel).version_request.implementation_version}"
240
+ @info ||= Host.new(@channel).version_request
235
241
  end
236
242
 
237
243
  def close
@@ -25,6 +25,13 @@ module Sass
25
25
  @keywords_accessed = true
26
26
  @keywords
27
27
  end
28
+
29
+ private
30
+
31
+ def initialize_copy(orig)
32
+ super
33
+ @id = 0
34
+ end
28
35
  end
29
36
  end
30
37
  end
@@ -178,21 +178,21 @@ module Sass
178
178
  if max == min
179
179
  @hue = 0
180
180
  elsif max == scaled_red
181
- @hue = (60 * (scaled_green - scaled_blue) / delta) % 360
181
+ @hue = ((scaled_green - scaled_blue) * 60 / delta) % 360
182
182
  elsif max == scaled_green
183
- @hue = (120 + (60 * (scaled_blue - scaled_red) / delta)) % 360
183
+ @hue = (((scaled_blue - scaled_red) * 60 / delta) + 120) % 360
184
184
  elsif max == scaled_blue
185
- @hue = (240 + (60 * (scaled_red - scaled_green) / delta)) % 360
185
+ @hue = (((scaled_red - scaled_green) * 60 / delta) + 240) % 360
186
186
  end
187
187
 
188
- lightness = @lightness = 50 * (max + min)
188
+ lightness = @lightness = (max + min) * 50
189
189
 
190
190
  @saturation = if max == min
191
191
  0
192
192
  elsif lightness < 50
193
- 100 * delta / (max + min)
193
+ delta * 100 / (max + min)
194
194
  else
195
- 100 * delta / (2 - max - min)
195
+ delta * 100 / (2 - max - min)
196
196
  end
197
197
  end
198
198
 
@@ -88,12 +88,12 @@ module Sass
88
88
  'deg' => Rational(Math::PI, 180),
89
89
  'grad' => Rational(Math::PI, 200),
90
90
  'rad' => Rational(1),
91
- 'turn' => Rational(2 * Math::PI)
91
+ 'turn' => Rational(Math::PI * 2)
92
92
  },
93
93
  'turn' => {
94
94
  'deg' => Rational(1, 360),
95
95
  'grad' => Rational(1, 400),
96
- 'rad' => Rational(1, 2 * Math::PI),
96
+ 'rad' => Rational(1, Math::PI * 2),
97
97
  'turn' => Rational(1)
98
98
  },
99
99
 
@@ -253,7 +253,7 @@ module Sass
253
253
  self
254
254
  end
255
255
 
256
- protected
256
+ private
257
257
 
258
258
  def single_unit?
259
259
  numerator_units.length == 1 && denominator_units.empty?
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.2
4
+ version: 1.58.0
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-08 00:00:00.000000000 Z
11
+ date: 2023-02-02 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.40.0
61
+ version: 1.44.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.40.0
68
+ version: 1.44.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.18.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.18.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.2
165
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.56.2
164
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.58.0
165
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.58.0
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.26
182
+ rubygems_version: 3.4.6
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Use dart-sass with Ruby!