Don't include test files within gem package

This commit is contained in:
Chris Roberts 2018-02-28 10:05:33 -08:00
parent bab940332c
commit d6f4eef698
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ Gem::Specification.new do |s|
all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
all_files.reject! { |file| file.start_with?("website/") }
all_files.reject! { |file| file.start_with?("test/") }
gitignore_path = File.join(root_path, ".gitignore")
gitignore = File.readlines(gitignore_path)
gitignore.map! { |line| line.chomp.strip }