summaryrefslogtreecommitdiff
path: root/lib/bundler/constants.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-08-03 12:24:38 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-08-03 13:14:10 +0900
commit71794a75db5d3da810146da106baf7eb5e86f745 (patch)
treec354ae515036c15a96a079712f3b7427c807be18 /lib/bundler/constants.rb
parent8a1be433e8cac6ca5ded095f6fefbdc1009102b9 (diff)
Merge rubygems/bundler HEAD
Pick from https://github.com/rubygems/rubygems/commit/8331e63263081a6aa690d8025d2957f30c4e814a
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6209
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 2e4ebb37ee..8dd8a53815 100644
--- a/lib/bundler/constants.rb
+++ b/lib/bundler/constants.rb
@@ -2,6 +2,6 @@
module Bundler
WINDOWS = RbConfig::CONFIG["host_os"] =~ /(msdos|mswin|djgpp|mingw)/
- FREEBSD = RbConfig::CONFIG["host_os"] =~ /bsd/
+ FREEBSD = RbConfig::CONFIG["host_os"].to_s.include?("bsd")
NULL = WINDOWS ? "NUL" : "/dev/null"
end