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

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: 5a77aeef696ccd1b12c878dfc7f96f45b3d4d3fffa61b5a515e63ae12dd4290c
4
- data.tar.gz: c9872be8b60d4159b6b2bacdb89b54bdcaf1e6901ad97a4284877cdc0a0e3148
3
+ metadata.gz: 5c899fc096691bb10458befd5ab7ada578554ebe2ff3f7878381b3df9b6dcdc9
4
+ data.tar.gz: 277b0c5e8d6203379733c26c9480346557325fedac0f4a6789bf73a093f85d1a
5
5
  SHA512:
6
- metadata.gz: 3dde663c01671bc2f7710d209804b9934aea6422e7ab519e4a6d71d939bb6ee3f77a988cde0cbb538bc9e14a204e5f02939a5aa18d64ad812e0d2ec5ae00102e
7
- data.tar.gz: 1f107901d9d9df1dc0a0f86e0b84c2d8ae8e142f702d35ee5cc8bbc740b1d6da2c1c9570f902a01d7743b833b37d8c940f29eb3946dcfec95d106143d35059d0
6
+ metadata.gz: 44c52a93f6348a55e81e21d283c88f04ddd79f845956e10c2001e37f83405d6e56a54f9ab85c5fa2c4e694576914bb30a318ce13050ca75a4910efff2245ae61
7
+ data.tar.gz: 1c1863c9486590f1e7846563f0512bf519c38e8474ad9e2303d2ed2e91e5b58e091fb4c0ed3f232be8a57fc2aa0e8f01cf0b3b0963b9cb1dea0fa58db657965d
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-android
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: []