Skip to content
Snippets Groups Projects
Commit 7be04bd9 authored by iaibrys's avatar iaibrys
Browse files

Don't use git ls for gem file list

parent 7d6b8c7c
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,9 @@ Gem::Specification.new do |spec| ...@@ -21,7 +21,9 @@ 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)/}) } # we might not be using a git repo here
# spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.files = Dir["{lib}/**/*", "LICENSE", "README.md"]
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.require_paths = ["lib"] spec.require_paths = ["lib"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment