def ensure_dependency(spec, dependency)
    unless installation_satisfies_dependency? dependency then
      raise Gem::InstallError, "#{spec.name} requires #{dependency}"
    end
    true
  end
#
Ensure that the dependency is satisfied by the current installation of
gem.  If it is not an exception is raised.

spec       :: Gem::Specification
dependency :: Gem::Dependency