зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Remove dead code
https://github.com/rubygems/rubygems/commit/999b644708
This commit is contained in:
Родитель
931bcd1b63
Коммит
4205190cb2
|
@ -264,18 +264,7 @@ module Bundler
|
|||
next requirement unless search_for(requirement).empty?
|
||||
next unless requirement.current_platform?
|
||||
|
||||
if (base = @base[name]) && !base.empty?
|
||||
version = base.first.version
|
||||
message = "You have requested:\n" \
|
||||
" #{name} #{requirement.requirement}\n\n" \
|
||||
"The bundle currently has #{name} locked at #{version}.\n" \
|
||||
"Try running `bundle update #{name}`\n\n" \
|
||||
"If you are updating multiple gems in your Gemfile at once,\n" \
|
||||
"try passing them all to `bundle update`"
|
||||
else
|
||||
message = gem_not_found_message(name, requirement, source_for(name))
|
||||
end
|
||||
raise GemNotFound, message
|
||||
raise GemNotFound, gem_not_found_message(name, requirement, source_for(name))
|
||||
end.compact!
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче