sassc-embedded 1.80.0 → 1.80.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +6 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bcb2ad67ca13ea4108da3411010d0ba6174be0c81344ba4e872c72a975de4e8
|
4
|
+
data.tar.gz: 7c4fb6fb6f586c1a1df518969919621684f7db14ee714565d09a7ba84aa944a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) [
|
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
|
data/lib/sassc/embedded.rb
CHANGED
@@ -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:).
|
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
|
-
|
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.
|
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.
|
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.
|
633
|
-
[key
|
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.
|
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.
|
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:
|