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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34031aeea257c96619288ac2e9922e05d4de708c27e0e100ba40b9249ada2645
4
- data.tar.gz: 906c7e379a79de64501d5cf159931c088c6130257a101fa3f5eaf0f2491adf43
3
+ metadata.gz: 0bf80d836969d228265f13d2ba7802830431c176bf130f787ba7a87c087d1b11
4
+ data.tar.gz: 9a07755706a60b33aa6aae80ae5c368c76a489925130738e1568e4e034eb2ded
5
5
  SHA512:
6
- metadata.gz: fab702e18c1d12c8c4dfdc775b853245bc6cae7b69af711f8de1d928614bead139ba1917f92e875e9f6df4d13fe0e741ca62e15872a50b738e6d901f141c2484
7
- data.tar.gz: c56c8f8b18b0c4caa01aafaf945704d0ef34199bf1f919512a36b5ba0b0362d8818e44c12aa9b9aa8f333d72bbec2e46d4b8ffd58716f5c81cee5c8dad93a1c1
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 |dir|
49
- mv File.absolute_path('ext/sass/dart-sass', dir), 'dart-sass'
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.dir
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
- # do nothing
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)
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "sass": "1.86.0"
3
+ "sass": "1.86.2"
4
4
  }
5
5
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  module Embedded
5
- VERSION = '1.86.0'
5
+ VERSION = '1.86.2'
6
6
  end
7
7
  end
@@ -275,17 +275,15 @@ module Sass
275
275
  name: nil,
276
276
  other: nil,
277
277
  other_name: nil)
278
- if other && (other.numerator_units != new_denominator_units && other.denominator_units != new_denominator_units)
279
- raise Sass::ScriptError, "Expected #{other} to have units #{unit_string(new_numerator_units,
280
- new_denominator_units).inspect}"
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.0
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-17 00:00:00.000000000 Z
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.0
128
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.86.0
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: []