get gem files from Dir[] instead of git ls-files

This commit is contained in:
Josh Holtrop 2018-02-24 20:36:17 -05:00
parent ee08d9d13e
commit 7af56e8363

View File

@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
raise "RubyGems 2.0 or newer is required to protect against public gem pushes." raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end 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.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.extensions = %w[ext/svi/extconf.rb] spec.extensions = %w[ext/svi/extconf.rb]