Permalink
Browse files

remove test files from built gem

I got the idea when we got a similar pull request on resque-web.
resque/resque-web#118

End users shouldn't need the test files and they take up space on disk.

The `test_files` method is left over from when `gem test` was a thing.
rubygems/rubygems@429f883

There is some more discussion on this in a rubygems issue:
rubygems/rubygems#735
  • Loading branch information...
1 parent cdf670f commit 0e7787df6956b10954de91effa8cab856dad4a5f @mcfiredrill mcfiredrill committed Sep 6, 2016
Showing with 0 additions and 1 deletion.
  1. +0 −1 vcr.gemspec
View
@@ -17,7 +17,6 @@ Gem::Specification.new do |spec|
spec.files = Dir[File.join("lib", "**", "*")]
spec.executables = Dir[File.join("bin", "**", "*")].map! { |f| f.gsub(/bin\//, "") }
- spec.test_files = Dir[File.join("test", "**", "*"), File.join("spec", "**", "*"), File.join("features", "**", "*")]
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 1.9.3"

0 comments on commit 0e7787d

Please sign in to comment.