Skip to content

Commit 9e2f445

Browse files
oschwaldclaude
andcommitted
Exclude link-checker config from the packaged gem
The gemspec packages Dir['**/*'] minus an exclusion list, which didn't cover the link-checking config added in this PR, so lychee.toml/mise.toml/mise.lock (and .gitignore) would ship in the published gem. Add them to the exclusion. Part of STF-557. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 38e0e9f commit 9e2f445

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

minfraud.gemspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ Gem::Specification.new do |spec|
2424
}
2525
spec.required_ruby_version = '>= 3.2'
2626

27-
spec.files = Dir['**/*'].difference(Dir['CLAUDE.md', 'CODE_OF_CONDUCT.md', 'dev-bin/**/*', 'Gemfile*', 'Rakefile', 'README.dev.md',
28-
'spec/**/*', '*.gemspec'])
27+
excluded = Dir['.github/**/*', '.gitignore', '.rspec', '.rubocop.yml', 'lychee.toml',
28+
'mise.lock', 'mise.toml', 'CLAUDE.md', 'CODE_OF_CONDUCT.md', 'dev-bin/**/*',
29+
'Gemfile*', 'Rakefile', 'README.dev.md', 'spec/**/*', '*.gemspec']
30+
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL, &:read).split("\x0").difference(excluded)
2931

3032
spec.add_dependency 'connection_pool', '>= 2.2', '< 4.0'
3133
spec.add_dependency 'http', '>= 4.3', '< 6.0'

0 commit comments

Comments
 (0)