summaryrefslogtreecommitdiff
path: root/lib/pstore
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-05 18:32:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-05 18:52:36 +0900
commitcfa6a892d05c5dcbd8fcd7c78cdbac49a8ff6100 (patch)
treebc58cf0b083c014d2ab4fee08b665d11017733ec /lib/pstore
parent085a8709b53b4c41514eec16839c288453cb87bc (diff)
Redirect to `IO::NULL` for the portability
Diffstat (limited to 'lib/pstore')
-rw-r--r--lib/pstore/pstore.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pstore/pstore.gemspec b/lib/pstore/pstore.gemspec
index 8425795afe..9b1c17f6b9 100644
--- a/lib/pstore/pstore.gemspec
+++ b/lib/pstore/pstore.gemspec
@@ -24,7 +24,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>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }