Skip to content

Commit 5ae4433

Browse files
nobuhsbt
authored andcommitted
Redirect to IO::NULL for the portability
1 parent aeb775e commit 5ae4433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weakref.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
2424
# Specify which files should be added to the gem when it is released.
2525
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
2626
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
27-
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27+
`git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
2828
end
2929
spec.bindir = "exe"
3030
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)