sass-embedded 1.89.1-aarch64-linux-gnu → 1.89.2-aarch64-linux-gnu

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 369a82ac93bf38b219bca4c3fad14d910fab90c620a16b9bd95f758137d304ac
4
- data.tar.gz: befce7c2486d376e6fd4d14c2d6fb1d37bb3262a814c0a35192d61f0b70e79ee
3
+ metadata.gz: ecc70d4f87f241ada734306b0e317a1f11cbb667735b0d5de47d5f45fb0b489d
4
+ data.tar.gz: 636a5859344ae460526a6b2489605cfc68044bc29c61cd7a729c0c6b75763d0b
5
5
  SHA512:
6
- metadata.gz: d1195d2305f3b7618eb3d1d9df2dc3f1a8aa297cb8b9f58a1a50f2f28f26e346e72f8e1fad5b9346adb5e4bb5108c371f1c7e7d3a23f123217974515d21c8487
7
- data.tar.gz: 4972d477a33dbed8d4598a0d41f2e70304c3ae209f95d1dd1b420748921668dba936b1781f06c8d4d74f26a2384a665b231b44240dedbfda32cac8bb9d4dfe86
6
+ metadata.gz: 7595c6da3e36f433b50bde9b97d90122711692cde2e35ff264aa8a99915d2b2218f97396da0f5322ef82e558bcdc79142104505bd8edafff0635ecab0bb32a48
7
+ data.tar.gz: edeb9b945d32028a6fa73080742a7ef4e023dac1d85e857a4d5a8339ba03830c21b05dbb97b7cd094e4c8f777e1564b1cdd14a9469c9f0666aace11ca4e6d916
Binary file
Binary file
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  module Embedded
5
- VERSION = '1.89.1'
5
+ VERSION = '1.89.2'
6
6
  end
7
7
  end
@@ -28,7 +28,7 @@ module Sass
28
28
  hue = original_oklch.send(:channel2_or_nil)
29
29
  alpha = original_oklch.send(:alpha_or_nil)
30
30
 
31
- if FuzzyMath.greater_than_or_equals(lightness.nil? ? 0 : lightness, 1)
31
+ if FuzzyMath.greater_than_or_equals?(lightness.nil? ? 0 : lightness, 1)
32
32
  if color.legacy?
33
33
  return Color.send(:_for_space,
34
34
  Space::RGB, 255, 255, 255, color.send(:alpha_or_nil))
@@ -37,7 +37,7 @@ module Sass
37
37
  return Color.send(:for_space_internal,
38
38
  color.send(:_space), 1, 1, 1, color.send(:alpha_or_nil))
39
39
  end
40
- elsif FuzzyMath.less_than_or_equals(lightness.nil? ? 0 : lightness, 0)
40
+ elsif FuzzyMath.less_than_or_equals?(lightness.nil? ? 0 : lightness, 0)
41
41
  return Color.send(:_for_space,
42
42
  Space::RGB, 0, 0, 0, color.send(:alpha_or_nil))
43
43
  .send(:_to_space, color.send(:_space))
@@ -24,7 +24,7 @@ module Sass
24
24
  missing_chroma: false, missing_hue: false)
25
25
  case dest
26
26
  when LAB
27
- powerless_ab = lightness.nil? || FuzzyMath.equals(lightness, 0)
27
+ powerless_ab = lightness.nil? || FuzzyMath.equals?(lightness, 0)
28
28
  Color.send(
29
29
  :_for_space,
30
30
  dest,
@@ -55,7 +55,7 @@ module Sass
55
55
  Color.send(
56
56
  :for_space_internal,
57
57
  dest,
58
- missing_hue || FuzzyMath.equals(saturation, 0) ? nil : hue % 360,
58
+ missing_hue || FuzzyMath.equals?(saturation, 0) ? nil : hue % 360,
59
59
  missing_chroma ? nil : saturation,
60
60
  missing_lightness ? nil : lightness * 100,
61
61
  alpha
@@ -67,7 +67,7 @@ module Sass
67
67
  Color.send(
68
68
  :for_space_internal,
69
69
  dest,
70
- missing_hue || FuzzyMath.greater_than_or_equals(whiteness + blackness, 100) ? nil : hue % 360,
70
+ missing_hue || FuzzyMath.greater_than_or_equals?(whiteness + blackness, 100) ? nil : hue % 360,
71
71
  whiteness,
72
72
  blackness,
73
73
  alpha
@@ -62,7 +62,7 @@ module Sass
62
62
  def lab_to_lch(dest, lightness, a, b, alpha, # rubocop:disable Naming/MethodParameterName
63
63
  missing_chroma: false, missing_hue: false)
64
64
  chroma = Math.sqrt(((a.nil? ? 0 : a)**2) + ((b.nil? ? 0 : b)**2))
65
- hue = if missing_hue || FuzzyMath.equals(chroma, 0)
65
+ hue = if missing_hue || FuzzyMath.equals?(chroma, 0)
66
66
  nil
67
67
  else
68
68
  Math.atan2(b.nil? ? 0 : b, a.nil? ? 0 : a) * 180 / Math::PI
@@ -318,21 +318,21 @@ module Sass
318
318
 
319
319
  if legacy?
320
320
  return false unless other.legacy?
321
- return false unless FuzzyMath.equals_nilable(other.alpha_or_nil, alpha_or_nil)
321
+ return false unless FuzzyMath.equals_nilable?(other.alpha_or_nil, alpha_or_nil)
322
322
 
323
323
  if _space == other._space
324
- FuzzyMath.equals_nilable(other.channel0_or_nil, channel0_or_nil) &&
325
- FuzzyMath.equals_nilable(other.channel1_or_nil, channel1_or_nil) &&
326
- FuzzyMath.equals_nilable(other.channel2_or_nil, channel2_or_nil)
324
+ FuzzyMath.equals_nilable?(other.channel0_or_nil, channel0_or_nil) &&
325
+ FuzzyMath.equals_nilable?(other.channel1_or_nil, channel1_or_nil) &&
326
+ FuzzyMath.equals_nilable?(other.channel2_or_nil, channel2_or_nil)
327
327
  else
328
328
  _to_space(Space::RGB) == other._to_space(Space::RGB)
329
329
  end
330
330
  else
331
331
  other._space == _space &&
332
- FuzzyMath.equals_nilable(other.channel0_or_nil, channel0_or_nil) &&
333
- FuzzyMath.equals_nilable(other.channel1_or_nil, channel1_or_nil) &&
334
- FuzzyMath.equals_nilable(other.channel2_or_nil, channel2_or_nil) &&
335
- FuzzyMath.equals_nilable(other.alpha_or_nil, alpha_or_nil)
332
+ FuzzyMath.equals_nilable?(other.channel0_or_nil, channel0_or_nil) &&
333
+ FuzzyMath.equals_nilable?(other.channel1_or_nil, channel1_or_nil) &&
334
+ FuzzyMath.equals_nilable?(other.channel2_or_nil, channel2_or_nil) &&
335
+ FuzzyMath.equals_nilable?(other.alpha_or_nil, alpha_or_nil)
336
336
  end
337
337
  end
338
338
 
@@ -367,9 +367,9 @@ module Sass
367
367
  def channel0_powerless?
368
368
  case _space
369
369
  when Space::HSL
370
- FuzzyMath.equals(channel1, 0)
370
+ FuzzyMath.equals?(channel1, 0)
371
371
  when Space::HWB
372
- FuzzyMath.greater_than_or_equals(channel1 + channel2, 100)
372
+ FuzzyMath.greater_than_or_equals?(channel1 + channel2, 100)
373
373
  else
374
374
  false
375
375
  end
@@ -398,7 +398,7 @@ module Sass
398
398
  def channel2_powerless?
399
399
  case _space
400
400
  when Space::LCH, Space::OKLCH
401
- FuzzyMath.equals(channel1, 0)
401
+ FuzzyMath.equals?(channel1, 0)
402
402
  else
403
403
  false
404
404
  end
@@ -449,7 +449,7 @@ module Sass
449
449
  when Space::HSL
450
450
  _initialize_for_space(
451
451
  space,
452
- _normalize_hue(channel0, invert: !channel1.nil? && FuzzyMath.less_than(channel1, 0)),
452
+ _normalize_hue(channel0, invert: !channel1.nil? && FuzzyMath.less_than?(channel1, 0)),
453
453
  channel1&.abs,
454
454
  channel2,
455
455
  alpha
@@ -461,7 +461,7 @@ module Sass
461
461
  space,
462
462
  channel0,
463
463
  channel1&.abs,
464
- _normalize_hue(channel2, invert: !channel1.nil? && FuzzyMath.less_than(channel1, 0)),
464
+ _normalize_hue(channel2, invert: !channel1.nil? && FuzzyMath.less_than?(channel1, 0)),
465
465
  alpha
466
466
  )
467
467
  else
@@ -488,7 +488,7 @@ module Sass
488
488
  def _is_channel_in_gamut(value, channel)
489
489
  case channel
490
490
  when LinearChannel
491
- FuzzyMath.less_than_or_equals(value, channel.max) && FuzzyMath.greater_than_or_equals(value, channel.min)
491
+ FuzzyMath.less_than_or_equals?(value, channel.max) && FuzzyMath.greater_than_or_equals?(value, channel.min)
492
492
  else
493
493
  true
494
494
  end
@@ -500,8 +500,8 @@ module Sass
500
500
  raise Sass::ScriptError.new("Expected #{wieght} to be within 0 and 1.", 'weight')
501
501
  end
502
502
 
503
- return other if FuzzyMath.equals(weight, 0)
504
- return self if FuzzyMath.equals(weight, 1)
503
+ return other if FuzzyMath.equals?(weight, 0)
504
+ return self if FuzzyMath.equals?(weight, 1)
505
505
 
506
506
  color1 = _to_space(method.space)
507
507
  color2 = other._to_space(method.space)
@@ -12,7 +12,7 @@ module Sass
12
12
 
13
13
  module_function
14
14
 
15
- def equals(number1, number2)
15
+ def equals?(number1, number2)
16
16
  return true if number1 == number2
17
17
 
18
18
  (number1 - number2).abs <= EPSILON &&
@@ -20,7 +20,7 @@ module Sass
20
20
  (number2 * INVERSE_EPSILON).round
21
21
  end
22
22
 
23
- def equals_nilable(number1, number2)
23
+ def equals_nilable?(number1, number2)
24
24
  return true if number1 == number2
25
25
  return false if number1.nil? || number2.nil?
26
26
 
@@ -29,26 +29,26 @@ module Sass
29
29
  (number2 * INVERSE_EPSILON).round
30
30
  end
31
31
 
32
- def less_than(number1, number2)
33
- number1 < number2 && !equals(number1, number2)
32
+ def less_than?(number1, number2)
33
+ number1 < number2 && !equals?(number1, number2)
34
34
  end
35
35
 
36
- def less_than_or_equals(number1, number2)
37
- number1 < number2 || equals(number1, number2)
36
+ def less_than_or_equals?(number1, number2)
37
+ number1 < number2 || equals?(number1, number2)
38
38
  end
39
39
 
40
- def greater_than(number1, number2)
41
- number1 > number2 && !equals(number1, number2)
40
+ def greater_than?(number1, number2)
41
+ number1 > number2 && !equals?(number1, number2)
42
42
  end
43
43
 
44
- def greater_than_or_equals(number1, number2)
45
- number1 > number2 || equals(number1, number2)
44
+ def greater_than_or_equals?(number1, number2)
45
+ number1 > number2 || equals?(number1, number2)
46
46
  end
47
47
 
48
48
  def integer?(number)
49
49
  return false unless number.finite?
50
50
 
51
- equals(number, number.round)
51
+ equals?(number, number.round)
52
52
  end
53
53
 
54
54
  def to_i(number)
@@ -56,8 +56,8 @@ module Sass
56
56
  end
57
57
 
58
58
  def between(number, min, max)
59
- return min if equals(number, min)
60
- return max if equals(number, max)
59
+ return min if equals?(number, min)
60
+ return max if equals?(number, max)
61
61
  return number if number > min && number < max
62
62
 
63
63
  nil
@@ -31,7 +31,7 @@ module Sass
31
31
  end
32
32
 
33
33
  # @return [::Boolean]
34
- def to_bool
34
+ def to_bool # rubocop:disable Naming/PredicateMethod
35
35
  false
36
36
  end
37
37
 
@@ -80,14 +80,14 @@ module Sass
80
80
  return false if numerator_units.length != other.numerator_units.length ||
81
81
  denominator_units.length != other.denominator_units.length
82
82
 
83
- return FuzzyMath.equals(value, other.value) if unitless?
83
+ return FuzzyMath.equals?(value, other.value) if unitless?
84
84
 
85
85
  if Unit.canonicalize_units(numerator_units) != Unit.canonicalize_units(other.numerator_units) &&
86
86
  Unit.canonicalize_units(denominator_units) != Unit.canonicalize_units(other.denominator_units)
87
87
  return false
88
88
  end
89
89
 
90
- FuzzyMath.equals(
90
+ FuzzyMath.equals?(
91
91
  value *
92
92
  Unit.canonical_multiplier(numerator_units) /
93
93
  Unit.canonical_multiplier(denominator_units),
@@ -306,7 +306,7 @@ module Sass
306
306
 
307
307
  unit_length = new_numerator_units.length + new_denominator_units.length
308
308
  units = unit_string(new_numerator_units, new_denominator_units)
309
- Sass::ScriptError.new("Expected #{self} to have unit#{unit_length > 1 ? 's' : ''} #{units}", name)
309
+ Sass::ScriptError.new("Expected #{self} to have unit#{'s' if unit_length > 1} #{units}", name)
310
310
  }
311
311
 
312
312
  result = value
data/lib/sass/value.rb CHANGED
@@ -38,7 +38,7 @@ module Sass
38
38
  end
39
39
 
40
40
  # @return [::Boolean]
41
- def to_bool
41
+ def to_bool # rubocop:disable Naming/PredicateMethod
42
42
  true
43
43
  end
44
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.89.1
4
+ version: 1.89.2
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - なつき
@@ -111,8 +111,8 @@ licenses:
111
111
  - MIT
112
112
  metadata:
113
113
  bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
114
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.89.1
115
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.89.1
114
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.89.2
115
+ source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.89.2
116
116
  funding_uri: https://github.com/sponsors/ntkme
117
117
  rubygems_mfa_required: 'true'
118
118
  rdoc_options: []