Skip to content

Commit 18996aa

Browse files
cirdesclaude
andcommitted
Fix gemspec_test to use Gem::Package#contents
Gem::Package#each isn't a public iteration API in modern rubygems; #contents returns the full list of relative paths in the .gem and matches what we need for the allowlist assertion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 66d2ca0 commit 18996aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gem/test/gemspec_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def build_and_list_files
4343
output = `gem build ruby_ui.gemspec --output #{gem_path} 2>&1`
4444
raise "gem build failed:\n#{output}" unless $?.success?
4545
end
46-
Gem::Package.new(gem_path).map { |entry| entry.full_name }
46+
Gem::Package.new(gem_path).contents
4747
end
4848
end
4949
end

0 commit comments

Comments
 (0)