sassc-embedded 1.80.0 → 1.80.1

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: b23e9f3b452e97580cf174f9df81d0e60ce035c876d467182bda080154f72c04
4
- data.tar.gz: ae8aa0e7e2e165bb83eae26547e0f20a22b1728524fe50c2ef1ecf24700357d8
3
+ metadata.gz: 7bcb2ad67ca13ea4108da3411010d0ba6174be0c81344ba4e872c72a975de4e8
4
+ data.tar.gz: 7c4fb6fb6f586c1a1df518969919621684f7db14ee714565d09a7ba84aa944a0
5
5
  SHA512:
6
- metadata.gz: 282ab574b7175f1e97dc8984157b97290c55dd70b948c5d482b808d3167ef8ae6fc553a7c674bccb1806dd4c6c65798149c1084e66f8eebb0fe01f688cbef6cb
7
- data.tar.gz: a51a55be548e4de909e9efc245a8bd11b4477d6fd0b4a31f753d571402b00a2af2a647e3a0e63e0ce7a56addc45100aaa396ef08bbe4300f9381cb51c83713b8
6
+ metadata.gz: 995360f534fdb95387ea7265bab5648d36ad1d87581c48343985b43552182c39b037f9636c6d46e0796f1c2fdf69c54e377b2a1618b696d3505a3766339240e4
7
+ data.tar.gz: 2bbb05391583018d90900043363bd97fec65626488c22d992518fc8b8c6fe23fde4f653cb7ec0fadb8ae48a67526bcbd7b4ff53236cce269eab8ee3bdf1fe407
data/README.md CHANGED
@@ -21,7 +21,7 @@ This library shims [`sassc`](https://github.com/sass/sassc-ruby) with the [`sass
21
21
  - [`sassc-rails`](https://github.com/sass/sassc-rails)
22
22
  - [`sprockets`](https://github.com/rails/sprockets)
23
23
  - [`sprockets-rails`](https://github.com/rails/sprockets-rails)
24
- - [`sassc`](https://github.com/sass/sassc-ruby) [is deprecated](https://sass-lang.com/blog/libsass-is-deprecated/).
24
+ - [`sassc`](https://github.com/sass/sassc-ruby) [has reached end-of-life](https://github.com/sass/sassc-ruby/blob/HEAD/README.md#sassc-has-reached-end-of-life).
25
25
  - [`sass`](https://github.com/sass/ruby-sass) [has reached end-of-life](https://sass-lang.com/blog/ruby-sass-is-unsupported/).
26
26
 
27
27
  ## Install
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.80.0'
5
+ VERSION = '1.80.1'
6
6
  end
7
7
  end
@@ -139,8 +139,6 @@ module SassC
139
139
  remove_method(:setup) if public_method_defined?(:setup, false)
140
140
 
141
141
  def setup(_native_options, functions: Script::Functions)
142
- @callbacks = {}
143
-
144
142
  functions_wrapper = Class.new do
145
143
  attr_accessor :options
146
144
 
@@ -148,7 +146,7 @@ module SassC
148
146
  end.new
149
147
  functions_wrapper.options = @options
150
148
 
151
- Script.custom_functions(functions:).each do |custom_function|
149
+ Script.custom_functions(functions:).each_with_object({}) do |custom_function, callbacks|
152
150
  callback = lambda do |native_argument_list|
153
151
  function_arguments = arguments_from_native_list(native_argument_list)
154
152
  begin
@@ -162,10 +160,8 @@ module SassC
162
160
  raise e
163
161
  end
164
162
 
165
- @callbacks[Script.formatted_function_name(custom_function, functions:)] = callback
163
+ callbacks[Script.formatted_function_name(custom_function, functions:)] = callback
166
164
  end
167
-
168
- @callbacks
169
165
  end
170
166
 
171
167
  private
@@ -500,7 +496,7 @@ module SassC
500
496
  )
501
497
  when ::Sass::Value::Map
502
498
  ::SassC::Script::Value::Map.new(
503
- value.contents.to_a.to_h { |k, v| [from_native(k, options), from_native(v, options)] }
499
+ value.contents.each_with_object({}) { |(k, v), h| h[from_native(k, options)] = from_native(v, options) }
504
500
  )
505
501
  when ::Sass::Value::Number
506
502
  ::SassC::Script::Value::Number.new(
@@ -563,7 +559,7 @@ module SassC
563
559
  )
564
560
  when ::SassC::Script::Value::Map
565
561
  ::Sass::Value::Map.new(
566
- value.value.to_a.to_h { |k, v| [to_native(k), to_native(v)] }
562
+ value.value.each_with_object({}) { |(k, v), h| h[to_native(k)] = to_native(v) }
567
563
  )
568
564
  when ::SassC::Script::Value::Number
569
565
  ::Sass::Value::Number.new(
@@ -629,8 +625,8 @@ module SassC
629
625
  decode_uri_hash_with_preserve_escaped = if unescaped.nil? || unescaped.empty?
630
626
  decode_uri_hash
631
627
  else
632
- decode_uri_hash.to_h do |key, value|
633
- [key, unescaped.include?(value) ? key : value]
628
+ decode_uri_hash.each_with_object({}) do |(key, value), hash|
629
+ hash[key] = unescaped.include?(value) ? key : value
634
630
  end.freeze
635
631
  end
636
632
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassc-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.80.0
4
+ version: 1.80.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -79,7 +79,7 @@ licenses:
79
79
  metadata:
80
80
  bug_tracker_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/issues
81
81
  documentation_uri: https://rubydoc.info/gems/sassc
82
- source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.80.0
82
+ source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.80.1
83
83
  funding_uri: https://github.com/sponsors/ntkme
84
84
  rubygems_mfa_required: 'true'
85
85
  post_install_message: