lib/bundler/source/rubygems.rb in bundler-2.2.26 vs lib/bundler/source/rubygems.rb in bundler-2.2.27

- old
+ new

@@ -24,10 +24,17 @@ @caches = [cache_path, *Bundler.rubygems.gem_cache] Array(options["remotes"]).reverse_each {|r| add_remote(r) } end + def local_only! + @specs = nil + @allow_local = true + @allow_cached = false + @allow_remote = false + end + def local! return if @allow_local @specs = nil @allow_local = true @@ -135,10 +142,10 @@ else spec.loaded_from = loaded_from(spec) end end - if (installed?(spec) || Plugin.installed?(spec.name)) && !force + if installed?(spec) && !force print_using_message "Using #{version_message(spec)}" return nil # no post-install message end # Download the gem to get the spec, because some specs that are returned