sass-embedded 1.80.1 → 1.80.3

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: 791ff62f74385eaf68452ec9380160d1ffb3bfbfe2763c70ec15e0d025dff309
4
- data.tar.gz: 312a7d1cdd2e8341d8727602e553652664a42ab7213fe215951ceb832c1a10e0
3
+ metadata.gz: efea36871eaf8e8900baf002520fbe854ff9d9f52019a4dbfe0f817d7d05a5f0
4
+ data.tar.gz: a522cf483c17442cd71c72e8f90f7a32b6b1e1260b3fd42b170c5a49a8ab0289
5
5
  SHA512:
6
- metadata.gz: 45e0c1199f5f7ed8a6443dfe3dc333e81478ad261846f1761cd1fe0db5df4963003f552fde702462715584ce36c6c5a507de6689bebaeb853c2d19e1f4549c51
7
- data.tar.gz: f05ad17d56ba86b7443240af9304b083e16dcacd5b34c3587f84c051bd3f2346c66141dfc955a7e59ef3c3396c8f201532734695dba0fca82ea61058ad4701ce
6
+ metadata.gz: 8797161cff914c9431daeef2e9870540a6366fbda4945f270fe4d6ed51642d0dc1cc12b923ddec903ad03a20575d0c3f6d2b76a21ebbd10fc495dd2de7dff5a8
7
+ data.tar.gz: d3fd1cc3cfe4252d187c9b73f061d51e8733ec6370c07047c392b9ac32e376200f9837d1ff24fcb0f45631874651b2ede67f5575e173c20a64dea474b2bc303e
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "sass": "1.80.1"
3
+ "sass": "1.80.3"
4
4
  }
5
5
  }
@@ -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.3'
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,14 +1,14 @@
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-17 00:00:00.000000000 Z
11
+ date: 2024-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -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.1
129
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.1
128
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.80.3
129
+ source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.3
130
130
  funding_uri: https://github.com/sponsors/ntkme
131
131
  rubygems_mfa_required: 'true'
132
132
  post_install_message: