зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Remove unused code
https://github.com/rubygems/rubygems/commit/b88c43a28c
This commit is contained in:
Родитель
d1533f20f1
Коммит
16b36a5b0c
|
@ -16,7 +16,6 @@ module Bundler
|
|||
:locked_deps,
|
||||
:locked_gems,
|
||||
:platforms,
|
||||
:requires,
|
||||
:ruby_version,
|
||||
:lockfile,
|
||||
:gemfiles
|
||||
|
@ -145,8 +144,6 @@ module Bundler
|
|||
|
||||
@dependency_changes = converge_dependencies
|
||||
@local_changes = converge_locals
|
||||
|
||||
@requires = compute_requires
|
||||
end
|
||||
|
||||
def gem_version_promoter
|
||||
|
@ -871,17 +868,6 @@ module Bundler
|
|||
current == proposed
|
||||
end
|
||||
|
||||
def compute_requires
|
||||
dependencies.reduce({}) do |requires, dep|
|
||||
next requires unless dep.should_include?
|
||||
requires[dep.name] = Array(dep.autorequire || dep.name).map do |file|
|
||||
# Allow `require: true` as an alias for `require: <name>`
|
||||
file == true ? dep.name : file
|
||||
end
|
||||
requires
|
||||
end
|
||||
end
|
||||
|
||||
def additional_base_requirements_for_resolve(last_resolve)
|
||||
return [] unless @locked_gems && unlocking? && !sources.expired_sources?(@locked_gems.sources)
|
||||
converge_specs(@originally_locked_specs - last_resolve).map do |locked_spec|
|
||||
|
|
Загрузка…
Ссылка в новой задаче