sass-embedded 1.80.0 → 1.80.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/sass/package.json +1 -1
- data/lib/sass/compiler/host/protofier.rb +5 -5
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/serializer.rb +5 -11
- data/lib/sass/value/number/unit.rb +5 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b18c28a8fa96e2584fc942e7836f4b3eb1931cd34ea666050c9221b196f276b8
|
4
|
+
data.tar.gz: d23b068cb6c525269454c3eac538c23728af1a9658dbb60a25913dad10336ef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2efc99793ccf74a6388d464b9a84366a604747483bd6aed8549f1d94a033763262653db44d4e238d50682e288d0c8559d3ccc8f2b40bec42809414ac736e9cc8
|
7
|
+
data.tar.gz: 6971e0e6f600a0e0935bb8da1de7656bb0c09325770e533cc480c4c49c137fd4bfb3f59cb0006c31f4e05432606855ad4607d245cddaea2f3ce9fa8d1a6e7a29
|
data/ext/sass/package.json
CHANGED
@@ -39,7 +39,7 @@ module Sass
|
|
39
39
|
argument_list: EmbeddedProtocol::Value::ArgumentList.new(
|
40
40
|
id: obj.instance_eval { @id },
|
41
41
|
contents: obj.to_a.map { |element| to_proto(element) },
|
42
|
-
keywords: obj.keywords.
|
42
|
+
keywords: obj.keywords.each.with_object({}) { |(key, value), hash| hash[key.to_s] = to_proto(value) },
|
43
43
|
separator: ListSeparator.to_proto(obj.separator)
|
44
44
|
)
|
45
45
|
)
|
@@ -126,8 +126,8 @@ module Sass
|
|
126
126
|
obj.contents.map do |element|
|
127
127
|
from_proto(element)
|
128
128
|
end,
|
129
|
-
obj.keywords.
|
130
|
-
[key.to_sym
|
129
|
+
obj.keywords.to_enum.with_object({}) do |(key, value), hash|
|
130
|
+
hash[key.to_sym] = from_proto(value)
|
131
131
|
end,
|
132
132
|
ListSeparator.from_proto(obj.separator)
|
133
133
|
).instance_eval do
|
@@ -144,8 +144,8 @@ module Sass
|
|
144
144
|
)
|
145
145
|
when :map
|
146
146
|
Sass::Value::Map.new(
|
147
|
-
obj.entries.
|
148
|
-
[from_proto(entry.key)
|
147
|
+
obj.entries.to_enum.with_object({}) do |entry, hash|
|
148
|
+
hash[from_proto(entry.key)] = from_proto(entry.value)
|
149
149
|
end
|
150
150
|
)
|
151
151
|
when :compiler_function
|
data/lib/sass/serializer.rb
CHANGED
@@ -5,17 +5,11 @@ module Sass
|
|
5
5
|
module Serializer
|
6
6
|
module_function
|
7
7
|
|
8
|
-
CSS_ESCAPE =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
**[*"\x01".."\x08", *"\x0A".."\x1F", "\x7F"].product(
|
14
|
-
[*'0'..'9', *'a'..'f', *'A'..'F', "\t", ' ', nil]
|
15
|
-
).to_h do |c, x|
|
16
|
-
["#{c}#{x}".freeze, "\\#{c.ord.to_s(16)}#{" #{x}" if x}".freeze]
|
17
|
-
end
|
18
|
-
}.freeze
|
8
|
+
CSS_ESCAPE = [*"\x01".."\x08", *"\x0A".."\x1F", "\x7F"]
|
9
|
+
.product([*'0'..'9', *'a'..'f', *'A'..'F', "\t", ' ', nil])
|
10
|
+
.each.with_object({ "\0" => "\uFFFD", '\\' => '\\\\', '"' => '\\"', "'" => "\\'" }) do |(c, x), h|
|
11
|
+
h["#{c}#{x}".freeze] = "\\#{c.ord.to_s(16)}#{" #{x}" if x}".freeze
|
12
|
+
end.freeze
|
19
13
|
|
20
14
|
private_constant :CSS_ESCAPE
|
21
15
|
|
@@ -141,10 +141,11 @@ module Sass
|
|
141
141
|
'pixel density': %w[dpi dpcm dppx]
|
142
142
|
}.freeze
|
143
143
|
|
144
|
-
TYPES_BY_UNIT = UNITS_BY_TYPE.
|
145
|
-
|
146
|
-
|
147
|
-
|
144
|
+
TYPES_BY_UNIT = UNITS_BY_TYPE.each.with_object({}) do |(key, values), hash|
|
145
|
+
values.each do |value|
|
146
|
+
hash[value] = key
|
147
|
+
end
|
148
|
+
end
|
148
149
|
|
149
150
|
module_function
|
150
151
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.80.
|
4
|
+
version: 1.80.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
@@ -125,8 +125,8 @@ licenses:
|
|
125
125
|
- MIT
|
126
126
|
metadata:
|
127
127
|
bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
|
128
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.80.
|
129
|
-
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.
|
128
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.80.2
|
129
|
+
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.2
|
130
130
|
funding_uri: https://github.com/sponsors/ntkme
|
131
131
|
rubygems_mfa_required: 'true'
|
132
132
|
post_install_message:
|