sass-embedded 1.64.0-x86-mingw32 → 1.64.1-x86-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: 52f37efe1fcd8c87bf565810fe19498295d275842bd80b7f1e3b032bcd76a303
4
- data.tar.gz: 18647a6b89e11ebaad952cad20ac1ba9dcab1be7df666c84a1d48c905fb9932c
3
+ metadata.gz: 1ec480f06040f6fea50f8db11f15d70abf37ccade7485969cfc7799caa0f2062
4
+ data.tar.gz: 83e169115925e9a6481bbc92a232f391379c87e6ec192f81c61370e81a9bc78b
5
5
  SHA512:
6
- metadata.gz: fe1e6ef5369d1458ddd7b852b16cef415e8b8fc432da2b61eb33ac14ce0ac2da78c66a9c1599f4809aa3ac8feed7e72efa00ccce0afbaf4438d80063b695454f
7
- data.tar.gz: 8eb2df60c213cdaf39fd67e453313c612a88014784570624a30dd4cc7da5f8a3d1abeed482829d8807b45d5a83848740c8eb6cd7c62944172ab268a3a801c2ff
6
+ metadata.gz: 2795e34b3e97788dda757c1c0aa3743df9a76c95599efd560737d1f19a6e4e0925528995052bfe719166a39b57cce588c2e0b5dc57d2cdc97224eda4daf10b68
7
+ data.tar.gz: 3126791b88dc0eb1772a8995caf6b0674766d3cf0f67fc8e8a577cd80de626042437806f1dfe2c75fd33a6b720726b1972dc8094b62482cf74b28e7a893af1c1
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: x86-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: []