sassc-embedded 1.78.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: 6436923b7f104059a6be6bf037be772b3191a12478b44457dcddd6dd2913e4b2
4
- data.tar.gz: 81e184f8d2f343d23c7d8228e4cb62c7aa7343cfb609ff93aa3793b3af4abb05
3
+ metadata.gz: b23e9f3b452e97580cf174f9df81d0e60ce035c876d467182bda080154f72c04
4
+ data.tar.gz: ae8aa0e7e2e165bb83eae26547e0f20a22b1728524fe50c2ef1ecf24700357d8
5
5
  SHA512:
6
- metadata.gz: '09ad73cfc4311af1d2c2219b897a3d2a4393c7ed000736187bca650c94941470445a022f1299eb9d5ddb8defc118addb647560f8c703919e0319353a9d9acd63'
7
- data.tar.gz: 6891a983e30abec954405faca7b83ab3f4f2d9ecfc72f4724319c82f90f8c29eed650d73f14efc85b7003eb97747cbc3b52bb34e9ae6ec9f342c41257a4817fd
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.78.0'
5
+ VERSION = '1.80.0'
6
6
  end
7
7
  end
@@ -467,18 +467,21 @@ module SassC
467
467
  when ::Sass::Value::Boolean
468
468
  ::SassC::Script::Value::Bool.new(value.to_bool)
469
469
  when ::Sass::Value::Color
470
- if value.instance_eval { defined? @hue }
470
+ case value.space
471
+ when 'hsl', 'hwb'
472
+ value = value.to_space('hsl')
471
473
  ::SassC::Script::Value::Color.new(
472
- hue: value.hue,
473
- saturation: value.saturation,
474
- lightness: value.lightness,
474
+ hue: value.channel('hue'),
475
+ saturation: value.channel('saturation'),
476
+ lightness: value.channel('lightness'),
475
477
  alpha: value.alpha
476
478
  )
477
479
  else
480
+ value = value.to_space('rgb')
478
481
  ::SassC::Script::Value::Color.new(
479
- red: value.red,
480
- green: value.green,
481
- blue: value.blue,
482
+ red: value.channel('red'),
483
+ green: value.channel('green'),
484
+ blue: value.channel('blue'),
482
485
  alpha: value.alpha
483
486
  )
484
487
  end
@@ -531,14 +534,16 @@ module SassC
531
534
  red: value.red,
532
535
  green: value.green,
533
536
  blue: value.blue,
534
- alpha: value.alpha
537
+ alpha: value.alpha,
538
+ space: 'rgb'
535
539
  )
536
540
  elsif value.hlsa?
537
541
  ::Sass::Value::Color.new(
538
542
  hue: value.hue,
539
543
  saturation: value.saturation,
540
544
  lightness: value.lightness,
541
- alpha: value.alpha
545
+ alpha: value.alpha,
546
+ space: 'hsl'
542
547
  )
543
548
  else
544
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.78.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-03 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.78'
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.78'
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.78.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: