summaryrefslogtreecommitdiff
path: root/lib/bundler/current_ruby.rb
diff options
context:
space:
mode:
authorJohnny Shields <johnny.shields@gmail.com>2023-02-18 23:00:42 +0900
committergit <svn-admin@ruby-lang.org>2023-03-03 09:50:30 +0000
commitf1fe4a4a99f8ef182b18d90b66f572497a0d41e9 (patch)
tree52b10abd5b836dd5f6da0ba1d5c074d26431317c /lib/bundler/current_ruby.rb
parent79ede4ae9911fdb180406b1a8adc7ee02e187a50 (diff)
[rubygems/rubygems] Update current_ruby.rb
https://github.com/rubygems/rubygems/commit/8755ca959e
Diffstat (limited to 'lib/bundler/current_ruby.rb')
-rw-r--r--lib/bundler/current_ruby.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/current_ruby.rb b/lib/bundler/current_ruby.rb
index 7a5426748c..1d2d8ff2fb 100644
--- a/lib/bundler/current_ruby.rb
+++ b/lib/bundler/current_ruby.rb
@@ -71,10 +71,10 @@ module Bundler
def windows?
Gem.win_platform?
end
- alias mswin? windows?
- alias mswin64? windows?
- alias mingw? windows?
- alias x64_mingw? windows?
+ alias_method :mswin?, :windows?
+ alias_method :mswin64?, :windows?
+ alias_method :mingw?, :windows?
+ alias_method :x64_mingw?, :windows?
(KNOWN_MINOR_VERSIONS + KNOWN_MAJOR_VERSIONS).each do |version|
trimmed_version = version.tr(".", "")