sass-embedded 1.80.1-x86-cygwin → 1.80.2-x86-cygwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a64035d53932cbd0e09df42685d2b2049689a2fa2e36462489a67788364b496
4
- data.tar.gz: f44aaced528bee893fc14ef9895ffaa71d0dcf0851b921852c40edd543ea8c8d
3
+ metadata.gz: 9bd5c308116c2ac88e31084dba783343e2f21e7e145728fed1c438d3323285db
4
+ data.tar.gz: a73b88df4a9160ad69080a28e1b4c5d5e055fc9f0403c6c05e5c1276d8f2a115
5
5
  SHA512:
6
- metadata.gz: d7bbfb4fc78c78b85c97ae9dc5bcf2cfdb1fcc90a11dbb64406426e92fd6b389f3b2f543ea844597e732fed36a4a9320a788f5b20dcaca9329cf2db1ea955c4d
7
- data.tar.gz: f7af7dce30903eae7714a4ccbd8e1e32fac598834c6b42a5a520f38a2eed0f19f4399c9d36d761d18e621e95f3aa90f7324f1817acf653d6a6f9b6090bbd170f
6
+ metadata.gz: df729d08c4c80cd8a776119f54eb309dd4ed15685704ac5445e4ba4d0d356f909a5cac33cf42ac2e200e9ff7d72686e51d4cddf6abd04fcfb119ff069477d6a7
7
+ data.tar.gz: 9e8055d354f89c1bfaaae4861ba93636cb02c5be975c40621a1769892c122dcafea3e91e9cb86c2c3556bb92d31c68327eb02eeb1ba2567b2ea50cc9ff3f7472
Binary file
Binary file
@@ -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.to_h { |key, value| [key.to_s, to_proto(value)] },
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.entries.to_h do |key, value|
130
- [key.to_sym, from_proto(value)]
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.to_h do |entry|
148
- [from_proto(entry.key), from_proto(entry.value)]
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  module Embedded
5
- VERSION = '1.80.1'
5
+ VERSION = '1.80.2'
6
6
  end
7
7
  end
@@ -5,17 +5,11 @@ module Sass
5
5
  module Serializer
6
6
  module_function
7
7
 
8
- CSS_ESCAPE = {
9
- "\0" => "\uFFFD",
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.invert
145
- .to_a
146
- .flat_map { |pair| pair[0].map { |key| [key, pair[1]] } }
147
- .to_h
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.1
4
+ version: 1.80.2
5
5
  platform: x86-cygwin
6
6
  authors:
7
7
  - なつき
@@ -112,8 +112,8 @@ licenses:
112
112
  - MIT
113
113
  metadata:
114
114
  bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
115
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.80.1
116
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.1
115
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.80.2
116
+ source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.2
117
117
  funding_uri: https://github.com/sponsors/ntkme
118
118
  rubygems_mfa_required: 'true'
119
119
  post_install_message: