method
warn_ambiguous_gems

v2_6_3 -
Show latest stable
-
0 notes -
Class: Install
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3 (0)
- What's this?
warn_ambiguous_gems()
private
Hide source
# File lib/bundler/cli/install.rb, line 204 def warn_ambiguous_gems Installer.ambiguous_gems.to_a.each do |name, installed_from_uri, *also_found_in_uris| Bundler.ui.error "Warning: the gem '#{name}' was found in multiple sources." Bundler.ui.error "Installed from: #{installed_from_uri}" Bundler.ui.error "Also found in:" also_found_in_uris.each {|uri| Bundler.ui.error " * #{uri}" } Bundler.ui.error "You should add a source requirement to restrict this gem to your preferred source." Bundler.ui.error "For example:" Bundler.ui.error " gem '#{name}', :source => '#{installed_from_uri}'" Bundler.ui.error "Then uninstall the gem '#{name}' (or delete all bundled gems) and then install again." end end