Skip to content

Commit 2767df5

Browse files
committed
Exclude git related files
1 parent 38de3d1 commit 2767df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net-http.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
3030
# Specify which files should be added to the gem when it is released.
3131
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
3232
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33-
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
33+
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{\A(?:(?:test|spec|features)/|\.git)}) }
3434
end
3535
spec.bindir = "exe"
3636
spec.require_paths = ["lib"]

0 commit comments

Comments
 (0)