Remove website/ dir from gem [GH-2951]

This commit is contained in:
Mitchell Hashimoto 2014-02-10 08:56:45 -08:00
parent 8d3afa73d2
commit 27420ad2ee
1 changed files with 1 additions and 0 deletions

View File

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