Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
count default gems as installed
Browse files Browse the repository at this point in the history
fixes #2780
  • Loading branch information
indirect committed Dec 27, 2013
1 parent 7aace08 commit 1f8a26c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/bundler/source/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,9 @@ def remote_specs
end

def gem_dir_exists?(spec)
if spec.name == "bundler"
true
else
File.directory?(spec.full_gem_path)
end
return true if spec.name == "bundler"
return true if spec.loaded_from.include?("specifications/default/")
File.directory?(spec.full_gem_path)
end
end

Expand Down

0 comments on commit 1f8a26c

Please sign in to comment.