diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-26 14:00:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-26 15:09:21 +0900 |
commit | b7ad60a79440f65cf883d3ff9dbdde701666ef56 (patch) | |
tree | e0033b706a480377472bf93f58eaf42f6e2301ab /lib/rubygems.rb | |
parent | 10c9ce9d4c632d7c6232b53367b0496aef2ebb13 (diff) | |
download | ruby-b7ad60a79440f65cf883d3ff9dbdde701666ef56.tar.gz |
Merge RubyGems/Bundler master
from https://github.com/rubygems/rubygems/commit/72fd3dd2096af16d797ad0cd8e0d2a8869e240b3
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index f6c92d52ab..ee1b8856a2 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -8,7 +8,7 @@ require "rbconfig" module Gem - VERSION = "3.4.1".freeze + VERSION = "3.5.0.dev".freeze end # Must be first since it unloads the prelude from 1.9.2 @@ -857,8 +857,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} # Returns the version of the latest release-version of gem +name+ def self.latest_version_for(name) - spec = latest_spec_for name - spec && spec.version + latest_spec_for(name)&.version end ## |