diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-05 18:32:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-05 18:52:36 +0900 |
commit | cfa6a892d05c5dcbd8fcd7c78cdbac49a8ff6100 (patch) | |
tree | bc58cf0b083c014d2ab4fee08b665d11017733ec /lib/net | |
parent | 085a8709b53b4c41514eec16839c288453cb87bc (diff) | |
download | ruby-cfa6a892d05c5dcbd8fcd7c78cdbac49a8ff6100.tar.gz |
Redirect to `IO::NULL` for the portability
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/http/net-http.gemspec | 2 | ||||
-rw-r--r-- | lib/net/net-protocol.gemspec | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/http/net-http.gemspec b/lib/net/http/net-http.gemspec index b07a0b6039..0021136793 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{\A(?:(?:test|spec|features)/|\.git)}) } + `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{\A(?:(?:test|spec|features)/|\.git)}) } end spec.bindir = "exe" spec.require_paths = ["lib"] diff --git a/lib/net/net-protocol.gemspec b/lib/net/net-protocol.gemspec index c03621cb0d..29ad2504eb 100644 --- a/lib/net/net-protocol.gemspec +++ b/lib/net/net-protocol.gemspec @@ -25,7 +25,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.require_paths = ["lib"] |