Skip to content

Commit 1ba58f8

Browse files
committed
Reduce gem size by excluding test files
1 parent 1f131f1 commit 1ba58f8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

hashids.gemspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ Gem::Specification.new do |gem|
1515

1616
gem.required_ruby_version = '>= 1.9.3'
1717

18-
gem.files = `git ls-files`.split($/)
18+
gem.files = Dir.glob('lib/**/*') + [
19+
'Gemfile',
20+
'LICENSE.txt',
21+
'Rakefile',
22+
'README.md',
23+
'hashids.gemspec'
24+
]
1925
gem.test_files = gem.files.grep(%r{^(spec)/})
2026
gem.require_paths = ["lib"]
2127
end

0 commit comments

Comments
 (0)