diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-10-18 15:24:42 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-10-18 16:33:15 +0900 |
commit | f5df47d1f3ec403d057f823375f1dfeea711caa6 (patch) | |
tree | 36e71c46bedd695fe96ab2ff12a0e6c046e836a2 /lib/bundler/remote_specification.rb | |
parent | 2ab7bb8969ca76d49a6c2043f423a3646b20d1f7 (diff) |
Merge RubyGems/Bundler master
https://github.com/rubygems/rubygems/commit/6214d00b2315ed37c76b1fbc1c72f61f92ba5a65
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6578
Diffstat (limited to 'lib/bundler/remote_specification.rb')
-rw-r--r-- | lib/bundler/remote_specification.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bundler/remote_specification.rb b/lib/bundler/remote_specification.rb index 601957746f..34d7fd116c 100644 --- a/lib/bundler/remote_specification.rb +++ b/lib/bundler/remote_specification.rb @@ -29,11 +29,15 @@ module Bundler @platform = _remote_specification.platform end + def identifier + @__identifier ||= [name, version, @platform.to_s] + end + def full_name - if @original_platform == Gem::Platform::RUBY + if @platform == Gem::Platform::RUBY "#{@name}-#{@version}" else - "#{@name}-#{@version}-#{@original_platform}" + "#{@name}-#{@version}-#{@platform}" end end |