sassc-embedded 1.79.0 → 1.80.0

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: 66fd09940c4005fa13fef08722e1a29409d784c5d288ce2f3a13548532b89ee4
4
- data.tar.gz: 7fbb946f5ded3c950defdb5686d8be13d92fd61da46d1103d908f37f316cfdaa
3
+ metadata.gz: b23e9f3b452e97580cf174f9df81d0e60ce035c876d467182bda080154f72c04
4
+ data.tar.gz: ae8aa0e7e2e165bb83eae26547e0f20a22b1728524fe50c2ef1ecf24700357d8
5
5
  SHA512:
6
- metadata.gz: 414d5d19de1f3acbc3e51ab41126fb9d0faeeb84aa8e410bbbcbb68d8ff1e6188d94bc95c95f05f1a2897027a918dd4e22ef39826b5d7d9d9ee20d28c3fe7b72
7
- data.tar.gz: ac70c7c62a22b9e1fbd1df0c24da29afd2ee31b13800bb6f97b59f5cd032459cab04d2ca96b86bf9ba084b807ca54c37cb8a7101b0ceb0434da49bb7b8f7f5d6
6
+ metadata.gz: 282ab574b7175f1e97dc8984157b97290c55dd70b948c5d482b808d3167ef8ae6fc553a7c674bccb1806dd4c6c65798149c1084e66f8eebb0fe01f688cbef6cb
7
+ data.tar.gz: a51a55be548e4de909e9efc245a8bd11b4477d6fd0b4a31f753d571402b00a2af2a647e3a0e63e0ce7a56addc45100aaa396ef08bbe4300f9381cb51c83713b8
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.79.0'
5
+ VERSION = '1.80.0'
6
6
  end
7
7
  end
@@ -456,10 +456,6 @@ module SassC
456
456
  end
457
457
 
458
458
  module ValueConversion
459
- COLOR4 = Sass::Value::Color.method_defined?(:space)
460
-
461
- private_constant :COLOR4
462
-
463
459
  class << self
464
460
  remove_method(:from_native) if public_method_defined?(:from_native, false)
465
461
  end
@@ -471,37 +467,21 @@ module SassC
471
467
  when ::Sass::Value::Boolean
472
468
  ::SassC::Script::Value::Bool.new(value.to_bool)
473
469
  when ::Sass::Value::Color
474
- if COLOR4
475
- case value.space
476
- when 'hsl', 'hwb'
477
- value = value.to_space('hsl')
478
- ::SassC::Script::Value::Color.new(
479
- hue: value.channel('hue'),
480
- saturation: value.channel('saturation'),
481
- lightness: value.channel('lightness'),
482
- alpha: value.alpha
483
- )
484
- else
485
- value = value.to_space('rgb')
486
- ::SassC::Script::Value::Color.new(
487
- red: value.channel('red'),
488
- green: value.channel('green'),
489
- blue: value.channel('blue'),
490
- alpha: value.alpha
491
- )
492
- end
493
- elsif value.instance_eval { defined? @hue }
470
+ case value.space
471
+ when 'hsl', 'hwb'
472
+ value = value.to_space('hsl')
494
473
  ::SassC::Script::Value::Color.new(
495
- hue: value.hue,
496
- saturation: value.saturation,
497
- lightness: value.lightness,
474
+ hue: value.channel('hue'),
475
+ saturation: value.channel('saturation'),
476
+ lightness: value.channel('lightness'),
498
477
  alpha: value.alpha
499
478
  )
500
479
  else
480
+ value = value.to_space('rgb')
501
481
  ::SassC::Script::Value::Color.new(
502
- red: value.red,
503
- green: value.green,
504
- blue: value.blue,
482
+ red: value.channel('red'),
483
+ green: value.channel('green'),
484
+ blue: value.channel('blue'),
505
485
  alpha: value.alpha
506
486
  )
507
487
  end
@@ -551,19 +531,19 @@ module SassC
551
531
  when ::SassC::Script::Value::Color
552
532
  if value.rgba?
553
533
  ::Sass::Value::Color.new(
554
- **(COLOR4 ? { space: 'rgb' } : {}),
555
534
  red: value.red,
556
535
  green: value.green,
557
536
  blue: value.blue,
558
- alpha: value.alpha
537
+ alpha: value.alpha,
538
+ space: 'rgb'
559
539
  )
560
540
  elsif value.hlsa?
561
541
  ::Sass::Value::Color.new(
562
- **(COLOR4 ? { space: 'hsl' } : {}),
563
542
  hue: value.hue,
564
543
  saturation: value.saturation,
565
544
  lightness: value.lightness,
566
- alpha: value.alpha
545
+ alpha: value.alpha,
546
+ space: 'hsl'
567
547
  )
568
548
  else
569
549
  raise UnsupportedValue, "Sass color mode #{value.instance_eval { @mode }} unsupported"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassc-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.79.0
4
+ version: 1.80.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-26 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass-embedded
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.79'
19
+ version: '1.80'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.79'
26
+ version: '1.80'
27
27
  description: An embedded sass shim for SassC.
28
28
  email:
29
29
  - i@ntk.me
@@ -79,7 +79,7 @@ licenses:
79
79
  metadata:
80
80
  bug_tracker_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/issues
81
81
  documentation_uri: https://rubydoc.info/gems/sassc
82
- source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.79.0
82
+ source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.80.0
83
83
  funding_uri: https://github.com/sponsors/ntkme
84
84
  rubygems_mfa_required: 'true'
85
85
  post_install_message: