summaryrefslogtreecommitdiff
path: root/lib/bundler/constants.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-10 19:15:00 +0900
committergit <svn-admin@ruby-lang.org>2023-07-10 12:11:12 +0000
commit880b29b74b7edaa3c8cddd7aeada3f498e0a65a7 (patch)
treee1d30716c0fa307c426c9f1b91b55fb3c32e48ef /lib/bundler/constants.rb
parent2951e3d83b302b914d291b83f48ac59dc5df3198 (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.rb2
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