Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Different way of excluding spec files
Ensures all test related files are not included.
- Loading branch information
1 parent
8070516
commit 6888e53
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,11 @@ Gem::Specification.new do |s| | |
# If this line is removed, all hard partying will cease. | ||
s.post_install_message = "When you HTTParty, you must party hard!" | ||
|
||
s.files = `git ls-files | grep -v ^spec`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
all_files = `git ls-files`.split("\n") | ||
test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ahorek
Contributor
|
||
|
||
s.files = all_files - test_files | ||
s.test_files = test_files | ||
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
end |
@jnunemaker - this doesn't work