class Bundler::Definition

def specs_changed?(source, &block)

the source should be found.
in order to specify how the locked version of
according to the locked source. A block should be
Check if the specs of the given source changed
def specs_changed?(source, &block)
  locked = @locked_sources.find(&block)
  if locked
    unlocking = @locked_specs.any? do |locked_spec|
      locked_spec.source.class == locked.class && locked_spec.source != locked
    end
  end
  !locked || unlocking || dependencies_for_source_changed?(locked) || source.specs != locked.specs
end