Skip to content

Commit

Permalink
[rubygems/rubygems] Deprecate Bundler constants
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and matzbot committed May 16, 2024
1 parent 9fd4148 commit 29a9ab0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/bundler/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

module Bundler
WINDOWS = RbConfig::CONFIG["host_os"] =~ /(msdos|mswin|djgpp|mingw)/
deprecate_constant :WINDOWS

FREEBSD = RbConfig::CONFIG["host_os"].to_s.include?("bsd")
NULL = File::NULL
deprecate_constant :FREEBSD

NULL = File::NULL
deprecate_constant :NULL
end

0 comments on commit 29a9ab0

Please sign in to comment.