From 7af56e8363a2e90002c2bbb5032cc2f77bce6824 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 24 Feb 2018 20:36:17 -0500 Subject: [PATCH] get gem files from Dir[] instead of git ls-files --- svi.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svi.gemspec b/svi.gemspec index 303d3db..62ddd77 100644 --- a/svi.gemspec +++ b/svi.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |spec| raise "RubyGems 2.0 or newer is required to protect against public gem pushes." end - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + spec.files = Dir['{bin,exe,ext,assets,integration,lib,spec,doc}/**/*', '*.gemspec', '.rspec'] spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.extensions = %w[ext/svi/extconf.rb]