diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-10-11 19:58:24 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-10-13 16:21:41 +0900 |
commit | d6627ab85c7e29a45ee61af350a38c37ea2bd83b (patch) | |
tree | cc5230a383f3ac4bc3f53d2a7ad566cebec4e7ba /lib/bundler/runtime.rb | |
parent | ad4e7308d2c269ee3bd88fbc3a153d76fc3e9910 (diff) |
[rubygems/rubygems] Remove unnecessary code
All supported rubygems versions implement this.
https://github.com/rubygems/rubygems/commit/2130782ef6
Diffstat (limited to 'lib/bundler/runtime.rb')
-rw-r--r-- | lib/bundler/runtime.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index fbb8833cfb..31e71388a6 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -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 |