diff options
author | sealocal <local.mat@gmail.com> | 2015-04-13 11:50:32 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-04-13 18:51:22 -0700 |
commit | dc442f4ff848ed1a550a4437293c14fb71dae9ef (patch) | |
tree | 740039715ae750871f5b471a47f448573df861c7 /lib | |
parent | 7de2a4b4508b5a5614feff78c18ec182435bf1a4 (diff) | |
download | bundler-dc442f4ff848ed1a550a4437293c14fb71dae9ef.tar.gz |
fix GemNotFound message in Resolver
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/index.rb | 4 | ||||
-rw-r--r-- | lib/bundler/resolver.rb | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index 8076c685..ea1edaca 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -81,10 +81,6 @@ module Bundler end end - def source_types - sources.map{|s| s.class }.uniq - end - alias [] search def <<(spec) diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index df2c515c..fe720433 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -324,8 +324,8 @@ module Bundler end else message = "Could not find gem '#{requirement}' " - if @index.source_types.include?(Bundler::Source::Rubygems) - message << "in any of the gem sources listed in your Gemfile." + if Bundler.definition.has_rubygems_remotes? + message << "in any of the gem sources listed in your Gemfile or installed on this machine." else message << "in the gems available on this machine." end |