summaryrefslogtreecommitdiff
path: root/lib/rubygems/update_suggestion.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/update_suggestion.rb')
-rw-r--r--lib/rubygems/update_suggestion.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rubygems/update_suggestion.rb b/lib/rubygems/update_suggestion.rb
index d9ac517e49..c2e81b2374 100644
--- a/lib/rubygems/update_suggestion.rb
+++ b/lib/rubygems/update_suggestion.rb
@@ -53,10 +53,11 @@ Run `gem update --system #{Gem.latest_rubygems_version}` to update your installa
# compare current and latest version, this is the part where
# latest rubygems spec is fetched from remote
- if (Gem.rubygems_version < Gem.latest_rubygems_version)
+ (Gem.rubygems_version < Gem.latest_rubygems_version).tap do |eglible|
# store the time of last successful check into state file
Gem.configuration.last_update_check = check_time
- return true
+
+ return eglible
end
rescue # don't block install command on any problem
false