Skip to content

Commit

Permalink
Stop packaging test files with the gem
Browse files Browse the repository at this point in the history
It drastically reduces the size of the gem, from 1.9M to 32K. The
default for new gems (created by bundler) is not to include test files.
See rubygems/bundler#3207
  • Loading branch information
dmeremyanin committed May 16, 2017
1 parent 8b416bd commit 07ea54d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions riddle.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ Gem::Specification.new do |s|

s.rubyforge_project = 'riddle'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
s.require_paths = ['lib']

s.add_development_dependency 'rake', '>= 0.9.2'
Expand Down

0 comments on commit 07ea54d

Please sign in to comment.