sass-embedded 1.64.0-x64-mingw32 → 1.64.1-x64-mingw32

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: 501b17543c4b9633f5595d6f42f70fd2d3818f8ace8cda537cb34b45d4d757f6
4
- data.tar.gz: a967e9d6efe05532eacabd2c9ee4f1238457db74a7b833d6319e71bfea8d8789
3
+ metadata.gz: 2f423d3b7da203a0027e86cad34bdd38cef6d1d30925628f06d90fc882b13df7
4
+ data.tar.gz: a04df281061ecdeea6a61fe2529c208c76cdb9ea629ffa7f6731f2b6a7ebbc88
5
5
  SHA512:
6
- metadata.gz: 0d18ad7c330dd169919cd542c2d704be018b30cf7a5ed7472146632c302d61b48c911979958ab589813d17a358edbbc36c7ee0f18659e3dc52887d5909b1c0d4
7
- data.tar.gz: e0fd1726c2c34722aa204e46ac439c9a870fe66843191b2e59016516545dcf28d58208adf1fade9116e687e6267338874ac48c54cab7276e396cec6c2f503794
6
+ metadata.gz: 9f3e0c478224ed9a43ce7713c11bdf80c659b4f41f1d558dd020f9459bb99ab5264b598785892393cbe5d685a497c10ff3fac6e68daba8131d3d98180b548209
7
+ data.tar.gz: 8ad9671038151b69a266c1e84ac1e1df5fd068cf1d41f9c695a88574aa806225ba2e1e2bd22bf91a1c5c15009b884aa3042cfdbf79065d0f6ff90bad8454ebd2
Binary file
@@ -230,39 +230,11 @@ module Sass
230
230
  end
231
231
 
232
232
  def from_proto(obj)
233
- case obj.name
234
- when 'calc'
235
- if obj.arguments.length != 1
236
- raise Sass::ScriptError,
237
- 'Value.Calculation.arguments must have exactly one argument for calc().'
238
- end
239
-
240
- Sass::Value::Calculation.calc(*obj.arguments.map { |argument| CalculationValue.from_proto(argument) })
241
- when 'clamp'
242
- if obj.arguments.length != 3
243
- raise Sass::ScriptError,
244
- 'Value.Calculation.arguments must have exactly 3 arguments for clamp().'
245
- end
246
-
247
- Sass::Value::Calculation.clamp(*obj.arguments.map { |argument| CalculationValue.from_proto(argument) })
248
- when 'min'
249
- if obj.arguments.empty?
250
- raise Sass::ScriptError,
251
- 'Value.Calculation.arguments must have at least 1 argument for min().'
252
- end
253
-
254
- Sass::Value::Calculation.min(obj.arguments.map { |argument| CalculationValue.from_proto(argument) })
255
- when 'max'
256
- if obj.arguments.empty?
257
- raise Sass::ScriptError,
258
- 'Value.Calculation.arguments must have at least 1 argument for max().'
259
- end
260
-
261
- Sass::Value::Calculation.max(obj.arguments.map { |argument| CalculationValue.from_proto(argument) })
262
- else
263
- raise Sass::ScriptError,
264
- "Value.Calculation.name #{calculation.name.inspect} is not a recognized calculation type."
265
- end
233
+ Sass::Value::Calculation.send(
234
+ :new,
235
+ obj.name,
236
+ obj.arguments.map { |argument| CalculationValue.from_proto(argument) }
237
+ )
266
238
  end
267
239
  end
268
240
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.64.0'
5
+ VERSION = '1.64.1'
6
6
  end
7
7
  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.64.0
4
+ version: 1.64.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-20 00:00:00.000000000 Z
11
+ date: 2023-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -84,8 +84,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
84
84
  licenses:
85
85
  - MIT
86
86
  metadata:
87
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.64.0
88
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.64.0
87
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.64.1
88
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.64.1
89
89
  funding_uri: https://github.com/sponsors/ntkme
90
90
  post_install_message:
91
91
  rdoc_options: []