Skip to content

Commit c28f5e1

Browse files
committed
Update gemspec with new file paths and require paths.
1 parent 1c13563 commit c28f5e1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rubyzip-bzip2.gemspec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ Gem::Specification.new do |spec|
1717
'for reading zip files compressed with bzip2 compression'
1818
spec.homepage = 'http://github.com/rubyzip/rubyzip-bzip2'
1919
spec.license = 'BSD 2-Clause'
20+
spec.require_paths = ['lib']
2021

2122
spec.required_ruby_version = '>= 2.4'
2223

24+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
25+
f.match(%r{^(test|spec|features)/})
26+
end
27+
2328
spec.metadata = {
2429
'bug_tracker_uri' => 'https://github.com/rubyzip/rubyzip-bzip2/issues',
2530
'changelog_uri' => "https://github.com/rubyzip/rubyzip-bzip2/blob/v#{spec.version}/Changelog.md",
@@ -29,8 +34,6 @@ Gem::Specification.new do |spec|
2934
'rubygems_mfa_required' => 'true'
3035
}
3136

32-
spec.files = Dir.glob('{lib}/**/*.rb') + %w[README.md LICENSE]
33-
3437
spec.add_dependency 'ffi', '~> 1.0'
3538
spec.add_dependency 'rubyzip', '~> 2.4', '< 3.0'
3639

0 commit comments

Comments
 (0)