sass-embedded 1.64.0-x86-linux-musl → 1.64.1-x86-linux-musl

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: 046e2ebfb27e8bb4206544e8f7d4e406b1f174e222d7500c43099dd7925f2b73
4
- data.tar.gz: 1b4fa97dbe7a204f7ff87fdbe7fc6028bd02ba35a906666968a0b1666fe7ee3f
3
+ metadata.gz: '038b201ec197808263c48066d0131c6dfa5e338edbcdd44fedca8f8c7217adf6'
4
+ data.tar.gz: 29a8e06d16b348e62ccffd313cb769e84e71b6598a5407ca35bd4cee0da51784
5
5
  SHA512:
6
- metadata.gz: 0124d703fedaf6a48074e5ec099071797394aca1917d4253c91fcfd66ca7e96a0efad7e8e9b05af325b0c0471bddcf736b8257889463e599861fde9968232241
7
- data.tar.gz: 5680760dff94f9426358255a8532dd6b971f409c8941fd3e668c7d4fa0755bf40c66a5a6c34cabea6c3709b8c9b427f37889b37b25161ce77583783e2f532db5
6
+ metadata.gz: 2246511ba74afa9d6d6c3f62981ce73ae3fd579af24e4da6be6004f7d2db2b2b81efac0b464b62a31a4d18f99ca656ad04ab6ebfd6075692f565f6ddb4a09894
7
+ data.tar.gz: f7362a0c89b3779df90229e04d00a3d3d46f5b9c4d352faf0bae54e26155316704eca3415cc94bb63cfa8782e19656bcff49543b5bd39f96a0dfd6a65b3977db
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-linux-musl
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: []