class Bundler::Installer

def ready_to_install?(spec, remains)

If a dependency is only development or is self referential it can be ignored.
If the dependency is no longer in the `remains` hash then it has been met.
We only want to install a gem spec if all its dependencies are met.
def ready_to_install?(spec, remains)
  spec.dependencies.none? do |dep|
    next if dep.type == :development || dep.name == spec.name
    remains[dep.name]
  end
end