class Bundler::Source
def can_lock?(spec)
def can_lock?(spec) spec.source == self end
def include?(other)
def include?(other) other == self end
def unmet_deps
def unmet_deps specs.unmet_dependency_names end
def version_message(spec)
def version_message(spec) message = "#{spec.name} #{spec.version}" if Bundler.locked_gems locked_spec = Bundler.locked_gems.specs.find {|s| s.name == spec.name } locked_spec_version = locked_spec.version if locked_spec if locked_spec_version && spec.version != locked_spec_version message += " (was #{locked_spec_version})" end end message end