summaryrefslogtreecommitdiff
path: root/lib/bundler/env.rb
diff options
context:
space:
mode:
authorNgan Pham <ngan@users.noreply.github.com>2022-01-24 21:01:21 -0800
committergit <svn-admin@ruby-lang.org>2022-01-26 02:24:30 +0900
commit42ef3fcaef5e181d80393084b65af5a28a7b1a01 (patch)
treee3d9c4fdbd5dca2662a8e471410fc8de084c2d4d /lib/bundler/env.rb
parentb07879e553a73200ec1d2c3f6b12127e22f965cd (diff)
[rubygems/rubygems] Use Gem::Platform.local instead of RUBY_PLATFORM
In certain places, we want to display the platform name with `Gem::Platform.local` instead of `RUBY_PLATFORM`. Fixes https://github.com/rubygems/rubygems/issues/5264 https://github.com/rubygems/rubygems/commit/bdd1848ae8
Diffstat (limited to 'lib/bundler/env.rb')
-rw-r--r--lib/bundler/env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb
index 00d4ef2196..1763035a8a 100644
--- a/lib/bundler/env.rb
+++ b/lib/bundler/env.rb
@@ -71,7 +71,7 @@ module Bundler
def self.ruby_version
str = String.new(RUBY_VERSION)
str << "p#{RUBY_PATCHLEVEL}" if defined? RUBY_PATCHLEVEL
- str << " (#{RUBY_RELEASE_DATE} revision #{RUBY_REVISION}) [#{RUBY_PLATFORM}]"
+ str << " (#{RUBY_RELEASE_DATE} revision #{RUBY_REVISION}) [#{Gem::Platform.local}]"
end
def self.git_version