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

[rubygems/rubygems] Remove now unnecessary code

https://github.com/rubygems/rubygems/commit/d74830d00b
This commit is contained in:
David Rodríguez 2021-07-31 16:39:20 +02:00 committed by Hiroshi SHIBATA
parent 0e01ad881a
commit 97de4c02ad
Notes: git 2021-08-31 19:07:19 +09:00
5 changed files with 1 additions and 19 deletions

View file

@ -15,7 +15,7 @@ module Bundler
definition.validate_runtime!
begin
definition.resolve_only_locally!
definition.resolve_with_cache!
not_installed = definition.missing_specs
rescue GemNotFound, VersionConflict
Bundler.ui.error "Bundler can't satisfy your Gemfile's dependencies."

View file

@ -166,12 +166,6 @@ module Bundler
@multisource_allowed
end
def resolve_only_locally!
@remote = false
sources.local_only!
resolve
end
def resolve_with_cache!
sources.cached!
resolve

View file

@ -36,8 +36,6 @@ module Bundler
def local!; end
def local_only!; end
def cached!; end
def remote!; end

View file

@ -26,12 +26,6 @@ module Bundler
Array(options["remotes"]).reverse_each {|r| add_remote(r) }
end
def local_only!
@specs = nil
@allow_local = true
@allow_remote = false
end
def local!
return if @allow_local

View file

@ -136,10 +136,6 @@ module Bundler
different_sources?(lock_sources, replacement_sources)
end
def local_only!
all_sources.each(&:local_only!)
end
def cached!
all_sources.each(&:cached!)
end