Skip to content

Commit

Permalink
Merge pull request #11 from huacnlee/fix-test-file-including-rubygem
Browse files Browse the repository at this point in the history
Gemspec ignore test files for reduce gem size from 7.5MB to 7.5KB
  • Loading branch information
georgeclaghorn authored Sep 15, 2018
2 parents d1471cc + 94516b3 commit ab9c543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marcel.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/basecamp/marcel'
spec.license = 'MIT'

spec.files = `git ls-files -z`.split("\x0")
spec.files = Dir['lib/**/*', 'MIT-LICENSE', 'README.md']
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
Expand Down

0 comments on commit ab9c543

Please sign in to comment.