remove gemspec use of git ls-files

In 5158b0e733, `git ls-files` was added to list the _files_ and _test_files_.  This will never work for any process that uses a source tarball, like Debian packages and I think gems.  Using `git ls-files` requires _git_ is installed on the build machine and requires that the _.git/_ dir is present in the source.

Example fixes:
* jfelchner/ruby-progressbar#54
* rubygems/rubygems#2064
* wpscanteam/CMSScanner#64
This commit is contained in:
Hans-Christoph Steiner
2018-11-09 12:42:13 +00:00
committed by GitHub
parent 18eb8d8d02
commit 2ca5603ad2

View File

@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib".freeze]
s.authors = ["Lukas Stanek".freeze, "Dima Vasilets".freeze, "Brian Pitts".freeze]
s.files = `git ls-files`.split($\)
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.files = Dir.glob("lib/**/*.*")
s.test_files = Dir.glob("{test,spec,features}/**/*.*")
s.description = "libvirt provider for Vagrant.".freeze
s.email = ["ls@elostech.cz".freeze, "pronix.service@gmail.com".freeze, "brian@polibyte.com".freeze]
s.homepage = "https://github.com/vagrant-libvirt/vagrant-libvirt".freeze