We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec9c70a commit 89e1ecbCopy full SHA for 89e1ecb
net-http.gemspec
@@ -30,9 +30,8 @@ Gem::Specification.new do |spec|
30
31
# Specify which files should be added to the gem when it is released.
32
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
33
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
34
- `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{\A(?:(?:test|spec|features)/|\.git)}) }
35
- end
+ excludes = %W[/.git* /bin /test /*file /#{File.basename(__FILE__)}]
+ spec.files = IO.popen(%W[git -C #{__dir__} ls-files -z --] + excludes.map {|e| ":^#{e}"}, &:read).split("\x0")
36
spec.bindir = "exe"
37
spec.require_paths = ["lib"]
38
0 commit comments