sass-embedded 1.86.0 → 1.86.2
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/ext/sass/Rakefile +13 -5
- data/ext/sass/package.json +1 -1
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/value/number.rb +4 -6
- 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: 0bf80d836969d228265f13d2ba7802830431c176bf130f787ba7a87c087d1b11
|
4
|
+
data.tar.gz: 9a07755706a60b33aa6aae80ae5c368c76a489925130738e1568e4e034eb2ded
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c38f21bd88814af9acece7cfb7cab6632c12b4c46e61fe44484b507fd2590a9b3796cf2fb416ad8fd2537e15ca93a90459628840282c3411cc524e648c44a4d9
|
7
|
+
data.tar.gz: 151029b0d619bb4ef9ff3ae090aff3e382117f0de1927bc7055021e5ad10f5a107d998f2bdc3d82663778ba870050c030ac51b0008c044b25cf749626374dfdd
|
data/ext/sass/Rakefile
CHANGED
@@ -45,11 +45,13 @@ rescue NotImplementedError
|
|
45
45
|
end
|
46
46
|
|
47
47
|
file 'dart-sass/sass' do
|
48
|
-
gem_install 'sass-embedded', SassConfig.gem_version, SassConfig.gem_platform do |
|
49
|
-
|
48
|
+
gem_install 'sass-embedded', SassConfig.gem_version, SassConfig.gem_platform do |installer|
|
49
|
+
gh_attestation_verify(installer.gem, repo: 'sass-contrib/sass-embedded-host-ruby')
|
50
|
+
mv File.absolute_path('ext/sass/dart-sass', installer.gem_dir), 'dart-sass'
|
50
51
|
end
|
51
52
|
rescue StandardError
|
52
53
|
archive = fetch(SassConfig.dart_sass)
|
54
|
+
gh_attestation_verify(archive, repo: 'sass/dart-sass')
|
53
55
|
unarchive archive
|
54
56
|
rm archive
|
55
57
|
end
|
@@ -421,10 +423,16 @@ module FileUtils
|
|
421
423
|
installer.install
|
422
424
|
end
|
423
425
|
|
424
|
-
yield installer
|
426
|
+
yield installer
|
425
427
|
ensure
|
426
428
|
rm_rf install_dir unless Rake::FileUtilsExt.nowrite_flag
|
427
429
|
end
|
430
|
+
|
431
|
+
def gh_attestation_verify(path, repo:, hostname: 'github.com')
|
432
|
+
if SassConfig.development? && system('gh', 'auth', 'status', '--hostname', hostname, %i[out err] => File::NULL)
|
433
|
+
sh 'gh', 'attestation', 'verify', path, '--hostname', hostname, '--repo', repo
|
434
|
+
end
|
435
|
+
end
|
428
436
|
end
|
429
437
|
|
430
438
|
# The {Platform} module.
|
@@ -442,10 +450,10 @@ module Platform
|
|
442
450
|
begin
|
443
451
|
Rake::Task['true'].invoke unless File.exist?('true')
|
444
452
|
rescue NotImplementedError
|
445
|
-
|
453
|
+
return false
|
446
454
|
end
|
447
455
|
|
448
|
-
system('./true') == true
|
456
|
+
system('./true', %i[out err] => File::NULL) == true
|
449
457
|
end
|
450
458
|
|
451
459
|
def host_os(root = compat_linux_emul_path)
|
data/ext/sass/package.json
CHANGED
data/lib/sass/value/number.rb
CHANGED
@@ -275,17 +275,15 @@ module Sass
|
|
275
275
|
name: nil,
|
276
276
|
other: nil,
|
277
277
|
other_name: nil)
|
278
|
-
|
279
|
-
|
280
|
-
|
278
|
+
unless other.nil? ||
|
279
|
+
(other.numerator_units == new_numerator_units && other.denominator_units == new_denominator_units)
|
280
|
+
raise Sass::ScriptError,
|
281
|
+
"Expected #{other} to have units #{unit_string(new_numerator_units, new_denominator_units).inspect}"
|
281
282
|
end
|
282
283
|
|
283
284
|
return value if numerator_units == new_numerator_units && denominator_units == new_denominator_units
|
284
285
|
|
285
|
-
return value if numerator_units == new_numerator_units && denominator_units == new_denominator_units
|
286
|
-
|
287
286
|
other_unitless = new_numerator_units.empty? && new_denominator_units.empty?
|
288
|
-
|
289
287
|
return value if coerce_unitless && (unitless? || other_unitless)
|
290
288
|
|
291
289
|
compatibility_error = lambda {
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.86.
|
4
|
+
version: 1.86.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03
|
10
|
+
date: 2025-04-03 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|
@@ -124,8 +124,8 @@ licenses:
|
|
124
124
|
- MIT
|
125
125
|
metadata:
|
126
126
|
bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
|
127
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.86.
|
128
|
-
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.86.
|
127
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.86.2
|
128
|
+
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.86.2
|
129
129
|
funding_uri: https://github.com/sponsors/ntkme
|
130
130
|
rubygems_mfa_required: 'true'
|
131
131
|
rdoc_options: []
|