Skip to content

Commit 6f12f64

Browse files
Merge pull request #37 from yuri-zubov/reduce-gem-size
Reduce gem size by excluding test files
2 parents 1f131f1 + 1ba58f8 commit 6f12f64

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)