1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove unnecessary code

All supported rubygems versions implement this.

2130782ef6
This commit is contained in:
David Rodríguez 2021-10-11 19:58:24 +02:00 committed by git
parent ad4e7308d2
commit d6627ab85c
3 changed files with 3 additions and 7 deletions

View file

@ -291,7 +291,7 @@ module Bundler
return unless activated_spec = Bundler.rubygems.loaded_specs(spec.name)
return if activated_spec.version == spec.version
suggestion = if Bundler.rubygems.spec_default_gem?(activated_spec)
suggestion = if activated_spec.default_gem?
"Since #{spec.name} is a default gem, you can either remove your dependency on it" \
" or try updating to a newer version of bundler that supports #{spec.name} as a default gem."
else