зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Remove now unnecessary code
https://github.com/rubygems/rubygems/commit/d74830d00b
This commit is contained in:
Родитель
0e01ad881a
Коммит
97de4c02ad
|
@ -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."
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -36,8 +36,6 @@ module Bundler
|
|||
|
||||
def local!; end
|
||||
|
||||
def local_only!; end
|
||||
|
||||
def cached!; end
|
||||
|
||||
def remote!; end
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче