sass-embedded 1.60.0 → 1.61.0

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: b42e3b99f07f36214aeeecb821984d32efe98dbadf9568eba9826884fd21b8c5
4
- data.tar.gz: 0f1de502e946eb8b9bca368f875ed7a407f2ba4ba23012bff25b773d5336d682
3
+ metadata.gz: 973255796aa11969ef461ea1071583a3840d17241723cc146ec05e7aebbb944d
4
+ data.tar.gz: 419f2b88c82bde9bf76b9260c902d548fda457ef5735bc24f8a3414a24f5f4fb
5
5
  SHA512:
6
- metadata.gz: 5512bd79f7d30fd972b7214c923c4133082431021ecdd64556cfe858654a1d52937d8289e6c9a206abaa3414c88d7e80b8e9916fd435fabfa54a1ae3e3608850
7
- data.tar.gz: fc3341fa29a84f20f1c40c3dc4f360a77e773b14624e929f258ae49136416553c640cc24de1800759cf97efd6058bab332755c9eaf252d60444caa138a9e445b
6
+ metadata.gz: 90445a47ea86e3ff558c10480ec6f2afc8a09dfd93d161a9fb58a826460f3a726bb8cef983bb60ab75ffbd5abbe5a4074bfbb61c2ad53167d6ec89644172e408
7
+ data.tar.gz: 41fff84ce76c6aa4d8bbdd84b3a2454a5332d37617977374fb395ba4994a0e5ef677b2304d435e8c60936c9659d6cfcc5e8f79f10f714df5615a3528d8470ba8
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "sass-embedded": "1.60.0"
3
+ "sass-embedded": "1.61.0"
4
4
  }
5
5
  }
@@ -14,15 +14,15 @@ module Sass
14
14
  def to_proto(obj)
15
15
  case obj
16
16
  when Sass::Value::String
17
- Sass::EmbeddedProtocol::Value.new(
18
- string: Sass::EmbeddedProtocol::Value::String.new(
17
+ EmbeddedProtocol::Value.new(
18
+ string: EmbeddedProtocol::Value::String.new(
19
19
  text: obj.text,
20
20
  quoted: obj.quoted?
21
21
  )
22
22
  )
23
23
  when Sass::Value::Number
24
- Sass::EmbeddedProtocol::Value.new(
25
- number: Sass::EmbeddedProtocol::Value::Number.new(
24
+ EmbeddedProtocol::Value.new(
25
+ number: EmbeddedProtocol::Value::Number.new(
26
26
  value: obj.value.to_f,
27
27
  numerators: obj.numerator_units,
28
28
  denominators: obj.denominator_units
@@ -30,8 +30,8 @@ module Sass
30
30
  )
31
31
  when Sass::Value::Color
32
32
  if obj.instance_eval { !defined?(@hue) }
33
- Sass::EmbeddedProtocol::Value.new(
34
- rgb_color: Sass::EmbeddedProtocol::Value::RgbColor.new(
33
+ EmbeddedProtocol::Value.new(
34
+ rgb_color: EmbeddedProtocol::Value::RgbColor.new(
35
35
  red: obj.red,
36
36
  green: obj.green,
37
37
  blue: obj.blue,
@@ -39,8 +39,8 @@ module Sass
39
39
  )
40
40
  )
41
41
  elsif obj.instance_eval { !defined?(@saturation) }
42
- Sass::EmbeddedProtocol::Value.new(
43
- hwb_color: Sass::EmbeddedProtocol::Value::HwbColor.new(
42
+ EmbeddedProtocol::Value.new(
43
+ hwb_color: EmbeddedProtocol::Value::HwbColor.new(
44
44
  hue: obj.hue.to_f,
45
45
  whiteness: obj.whiteness.to_f,
46
46
  blackness: obj.blackness.to_f,
@@ -48,8 +48,8 @@ module Sass
48
48
  )
49
49
  )
50
50
  else
51
- Sass::EmbeddedProtocol::Value.new(
52
- hsl_color: Sass::EmbeddedProtocol::Value::HslColor.new(
51
+ EmbeddedProtocol::Value.new(
52
+ hsl_color: EmbeddedProtocol::Value::HslColor.new(
53
53
  hue: obj.hue.to_f,
54
54
  saturation: obj.saturation.to_f,
55
55
  lightness: obj.lightness.to_f,
@@ -58,8 +58,8 @@ module Sass
58
58
  )
59
59
  end
60
60
  when Sass::Value::ArgumentList
61
- Sass::EmbeddedProtocol::Value.new(
62
- argument_list: Sass::EmbeddedProtocol::Value::ArgumentList.new(
61
+ EmbeddedProtocol::Value.new(
62
+ argument_list: EmbeddedProtocol::Value::ArgumentList.new(
63
63
  id: obj.instance_eval { @id },
64
64
  contents: obj.contents.map { |element| to_proto(element) },
65
65
  keywords: obj.keywords.transform_values { |value| to_proto(value) },
@@ -67,18 +67,18 @@ module Sass
67
67
  )
68
68
  )
69
69
  when Sass::Value::List
70
- Sass::EmbeddedProtocol::Value.new(
71
- list: Sass::EmbeddedProtocol::Value::List.new(
70
+ EmbeddedProtocol::Value.new(
71
+ list: EmbeddedProtocol::Value::List.new(
72
72
  contents: obj.contents.map { |element| to_proto(element) },
73
73
  separator: ListSeparator.to_proto(obj.separator),
74
74
  has_brackets: obj.bracketed?
75
75
  )
76
76
  )
77
77
  when Sass::Value::Map
78
- Sass::EmbeddedProtocol::Value.new(
79
- map: Sass::EmbeddedProtocol::Value::Map.new(
78
+ EmbeddedProtocol::Value.new(
79
+ map: EmbeddedProtocol::Value::Map.new(
80
80
  entries: obj.contents.map do |key, value|
81
- Sass::EmbeddedProtocol::Value::Map::Entry.new(
81
+ EmbeddedProtocol::Value::Map::Entry.new(
82
82
  key: to_proto(key),
83
83
  value: to_proto(value)
84
84
  )
@@ -87,25 +87,25 @@ module Sass
87
87
  )
88
88
  when Sass::Value::Function
89
89
  if obj.id
90
- Sass::EmbeddedProtocol::Value.new(
91
- compiler_function: Sass::EmbeddedProtocol::Value::CompilerFunction.new(
90
+ EmbeddedProtocol::Value.new(
91
+ compiler_function: EmbeddedProtocol::Value::CompilerFunction.new(
92
92
  id: obj.id
93
93
  )
94
94
  )
95
95
  else
96
- Sass::EmbeddedProtocol::Value.new(
97
- host_function: Sass::EmbeddedProtocol::Value::HostFunction.new(
96
+ EmbeddedProtocol::Value.new(
97
+ host_function: EmbeddedProtocol::Value::HostFunction.new(
98
98
  id: @function_registry.register(obj.callback),
99
99
  signature: obj.signature
100
100
  )
101
101
  )
102
102
  end
103
103
  when Sass::Value::Boolean
104
- Sass::EmbeddedProtocol::Value.new(
104
+ EmbeddedProtocol::Value.new(
105
105
  singleton: obj.value ? :TRUE : :FALSE
106
106
  )
107
107
  when Sass::Value::Null
108
- Sass::EmbeddedProtocol::Value.new(
108
+ EmbeddedProtocol::Value.new(
109
109
  singleton: :NULL
110
110
  )
111
111
  else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.60.0'
5
+ VERSION = '1.61.0'
6
6
  end
7
7
  end
data/lib/sass/embedded.rb CHANGED
@@ -248,4 +248,6 @@ module Sass
248
248
  @channel.closed?
249
249
  end
250
250
  end
251
+
252
+ private_constant :EmbeddedProtocol
251
253
  end
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.60.0
4
+ version: 1.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-24 00:00:00.000000000 Z
11
+ date: 2023-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.48.0
61
+ version: 1.49.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.48.0
68
+ version: 1.49.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-performance
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -160,8 +160,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
160
160
  licenses:
161
161
  - MIT
162
162
  metadata:
163
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.60.0
164
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.60.0
163
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.61.0
164
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.61.0
165
165
  funding_uri: https://github.com/sponsors/ntkme
166
166
  post_install_message:
167
167
  rdoc_options: []
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.4.9
181
+ rubygems_version: 3.4.10
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Use dart-sass with Ruby!