summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-06 22:22:43 +0900
committergit <svn-admin@ruby-lang.org>2023-03-06 13:26:36 +0000
commit755c379d877c66916d20840f07738d6050da3ca2 (patch)
tree75ad733da2cad2d4049e336e7df00febb5303989 /lib/net
parentc8c3431b0a5995d58f97c511ffa0a39e0f19c75e (diff)
[ruby/net-http] Exclude git related files
https://github.com/ruby/net-http/commit/2767df580d
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http/net-http.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http/net-http.gemspec b/lib/net/http/net-http.gemspec
index 459da8650c..b07a0b6039 100644
--- a/lib/net/http/net-http.gemspec
+++ b/lib/net/http/net-http.gemspec
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
- `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+ `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{\A(?:(?:test|spec|features)/|\.git)}) }
end
spec.bindir = "exe"
spec.require_paths = ["lib"]