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 cbbb98b commit 316d1e1Copy full SHA for 316d1e1
lib/tmpdir.gemspec
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
# Specify which files should be added to the gem when it is released.
17
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
gemspec = File.basename(__FILE__)
19
- spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
+ spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL, exception: false) do |ls|
20
ls.readlines("\x0", chomp: true).reject do |f|
21
(f == gemspec) ||
22
f.start_with?(*%w[bin/ test/ spec/ features/ .git Gemfile])
0 commit comments