sass-embedded 1.103.1-x86_64-linux-gnu → 1.104.0-x86_64-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 +4 -4
- data/lib/sass/dart-sass/src/dart +0 -0
- data/lib/sass/dart-sass/src/sass.snapshot +0 -0
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/embedded.rb +1 -2
- data/lib/sass/value/color.rb +30 -8
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d84e996cca17c65f674aac013edb259f37751014ca34575db6887e6a776258c
|
|
4
|
+
data.tar.gz: 6eb2f062fc14f85cf17cdf243f1c5f6fa0a2d20e320dd346927537c062c2f621
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ee11e250ddb93d85f1a0a8018b9046506624f743934f482dd00ed9ea6dc8a07b723766595480c031d68ec73ef5d8bf70f7716437ff2d5fa9496c4bc67e0149e
|
|
7
|
+
data.tar.gz: c1f0ede3530d1eabb3e20bff26bfb6514c6ea324b67ba9127dac513b61edef590eddd58b28a97f5516f8d016514f79a930334d1d1d263a5cb9900d7df841b5d0
|
data/lib/sass/dart-sass/src/dart
CHANGED
|
Binary file
|
|
Binary file
|
data/lib/sass/embedded.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Sass
|
|
|
15
15
|
@compiler = nil
|
|
16
16
|
@mutex = Mutex.new
|
|
17
17
|
|
|
18
|
-
# rubocop:disable Layout/LineLength
|
|
18
|
+
# rubocop:disable-next Layout/LineLength
|
|
19
19
|
class << self
|
|
20
20
|
# Compiles the Sass file at +path+ to CSS.
|
|
21
21
|
# @overload compile(path, load_paths: [], charset: true, source_map: false, source_map_include_sources: false, style: :expanded, functions: {}, importers: [], alert_ascii: false, alert_color: nil, fatal_deprecations: [], future_deprecations: [], logger: nil, quiet_deps: false, silence_deprecations: [], verbose: false)
|
|
@@ -64,5 +64,4 @@ module Sass
|
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
|
-
# rubocop:enable Layout/LineLength
|
|
68
67
|
end
|
data/lib/sass/value/color.rb
CHANGED
|
@@ -452,22 +452,34 @@ module Sass
|
|
|
452
452
|
_initialize_for_space(
|
|
453
453
|
space,
|
|
454
454
|
_normalize_hue(channel0, invert: !channel1.nil? && FuzzyMath.less_than?(channel1, 0)),
|
|
455
|
-
channel1&.abs,
|
|
456
|
-
channel2,
|
|
457
|
-
alpha
|
|
455
|
+
_normalize_linear(channel1&.abs),
|
|
456
|
+
_normalize_linear(channel2),
|
|
457
|
+
_normalize_linear(alpha)
|
|
458
458
|
)
|
|
459
459
|
when Space::HWB
|
|
460
|
-
_initialize_for_space(
|
|
460
|
+
_initialize_for_space(
|
|
461
|
+
space,
|
|
462
|
+
_normalize_hue(channel0, invert: false),
|
|
463
|
+
_normalize_linear(channel1),
|
|
464
|
+
_normalize_linear(channel2),
|
|
465
|
+
_normalize_linear(alpha)
|
|
466
|
+
)
|
|
461
467
|
when Space::LCH, Space::OKLCH
|
|
462
468
|
_initialize_for_space(
|
|
463
469
|
space,
|
|
464
|
-
channel0,
|
|
465
|
-
channel1&.abs,
|
|
470
|
+
_normalize_linear(channel0),
|
|
471
|
+
_normalize_linear(channel1&.abs),
|
|
466
472
|
_normalize_hue(channel2, invert: !channel1.nil? && FuzzyMath.less_than?(channel1, 0)),
|
|
467
|
-
alpha
|
|
473
|
+
_normalize_linear(alpha)
|
|
468
474
|
)
|
|
469
475
|
else
|
|
470
|
-
_initialize_for_space(
|
|
476
|
+
_initialize_for_space(
|
|
477
|
+
space,
|
|
478
|
+
_normalize_linear(channel0),
|
|
479
|
+
_normalize_linear(channel1),
|
|
480
|
+
_normalize_linear(channel2),
|
|
481
|
+
_normalize_linear(alpha)
|
|
482
|
+
)
|
|
471
483
|
end
|
|
472
484
|
end
|
|
473
485
|
|
|
@@ -481,9 +493,19 @@ module Sass
|
|
|
481
493
|
FuzzyMath.assert_between(@alpha_or_nil, 0, 1, 'alpha') unless @alpha_or_nil.nil?
|
|
482
494
|
end
|
|
483
495
|
|
|
496
|
+
def _normalize_linear(value)
|
|
497
|
+
return value if value.nil?
|
|
498
|
+
|
|
499
|
+
return 0 if value.zero? || value.to_f.nan?
|
|
500
|
+
|
|
501
|
+
value
|
|
502
|
+
end
|
|
503
|
+
|
|
484
504
|
def _normalize_hue(hue, invert:)
|
|
485
505
|
return hue if hue.nil?
|
|
486
506
|
|
|
507
|
+
return 0 if hue.zero? || !hue.finite?
|
|
508
|
+
|
|
487
509
|
((hue % 360) + 360 + (invert ? 180 : 0)) % 360
|
|
488
510
|
end
|
|
489
511
|
|
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.
|
|
4
|
+
version: 1.104.0
|
|
5
5
|
platform: x86_64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
@@ -116,8 +116,8 @@ licenses:
|
|
|
116
116
|
- MIT
|
|
117
117
|
metadata:
|
|
118
118
|
bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
|
|
119
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.
|
|
120
|
-
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.
|
|
119
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.104.0
|
|
120
|
+
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.104.0
|
|
121
121
|
funding_uri: https://github.com/sponsors/ntkme
|
|
122
122
|
rubygems_mfa_required: 'true'
|
|
123
123
|
rdoc_options: []
|
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
134
134
|
- !ruby/object:Gem::Version
|
|
135
135
|
version: '0'
|
|
136
136
|
requirements: []
|
|
137
|
-
rubygems_version: 4.0.
|
|
137
|
+
rubygems_version: 4.0.20
|
|
138
138
|
specification_version: 4
|
|
139
139
|
summary: Use dart-sass with Ruby!
|
|
140
140
|
test_files: []
|