lib/cocoapods-core/source/acceptor.rb
# Checks there are already tagged specifications if the specification has
# a git source and doesn't specify a tag (i.e. rejects 0.0.1 specs if
# they are not admissible anymore).
#
# @return [void]
#
Checks there are already tagged specifications if the specification has
a git source and doesn't specify a tag .
Checks there are already tagged specifications if the specification has a git source and doesn ' t specify a tag .
def check_if_untagged_version_is_acceptable(spec, previous_spec, errors)
        return if !spec.source[:git] || spec.source[:tag]
        return unless related_specifications(spec)
        return if previous_spec
        has_tagged_spec = related_specifications(spec).any? do |s|
          s.version != '0.0.1'
        end
        if has_tagged_spec
          errors << 'There is already at least one versioned specification ' \
            'so untagged versions cannot be accepted.'
        end
      end
def check_if_untagged_version_is_acceptable ( spec , previous_spec , errors ) return if ! spec . source [ :git ] || spec . source [ :tag ] return unless related_specifications ( spec ) return if previous_spec has_tagged_spec = related_specifications ( spec ) . any? do | s | s . version != '0.0.1' end if has_tagged_spec errors << 'There is already at least one versioned specification ' 'so untagged versions cannot be accepted.' end end
Checks there are already tagged specifications if the specification has
a git source and doesn't specify a tag (i.e.
Checks there are already tagged specifications if the specification has a git source and doesn ' t specify a tag ( i . e .
None
void
spec
<not_specific>
previous_spec
<not_specific>
errors
<not_specific>