diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-10 19:15:00 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-07-10 12:11:12 +0000 |
commit | 880b29b74b7edaa3c8cddd7aeada3f498e0a65a7 (patch) | |
tree | e1d30716c0fa307c426c9f1b91b55fb3c32e48ef /lib/bundler/constants.rb | |
parent | 2951e3d83b302b914d291b83f48ac59dc5df3198 (diff) |
[rubygems/rubygems] Use `File::NULL` instead of hard coded null device names
https://github.com/rubygems/rubygems/commit/44fe8e7f50
Diffstat (limited to 'lib/bundler/constants.rb')
-rw-r--r-- | lib/bundler/constants.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/constants.rb b/lib/bundler/constants.rb index 8dd8a53815..de9698b577 100644 --- a/lib/bundler/constants.rb +++ b/lib/bundler/constants.rb @@ -3,5 +3,5 @@ module Bundler WINDOWS = RbConfig::CONFIG["host_os"] =~ /(msdos|mswin|djgpp|mingw)/ FREEBSD = RbConfig::CONFIG["host_os"].to_s.include?("bsd") - NULL = WINDOWS ? "NUL" : "/dev/null" + NULL = File::NULL end |