Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Exclude specs from build gem to speed install.
Browse files Browse the repository at this point in the history
`gem.test-files` is not documented and a hypersearch of the digital
meganet shows that it maybe never did anything and probably doesn't
know.

All the data in `spec/fixtures` is _super_ slow to download so our tiny
widdle gem takes longer then almost anything else to fetch, for a
use-case many/most? users don't have: Running unit tests on install.

This change removes `gem.test-files` and also excludes the `spec`
directory from the gem when build.
  • Loading branch information
DylanLacey committed Feb 25, 2016
1 parent c7ef898 commit 6c70d40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sauce_whisk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ Gem::Specification.new do |gem|
gem.summary = "Sauce_Whisk lets you mix extra data into your Sauce test results!\nFetch and update Job details, screenshots, videos and logs."
gem.homepage = 'http://www.github.com/dylanlacey/sauce_whisk'

gem.files = `git ls-files`.split($/)
gem.files = `git ls-files`.split($/).reject { |e| /spec/.match e }
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ['lib']

gem.license = 'MIT'
Expand Down

0 comments on commit 6c70d40

Please sign in to comment.