lib/cocoapods-core/source/acceptor.rb
# If the previous specification for the given file is passed it is
# checked for any attempt to update the commit of a 0.0.1 version.
#
# @return [void]
#
If the previous specification for the given file is passed it is
checked for any attempt to update the commit of a 0.0.1 version.
If the previous specification for the given file is passed it is checked for any attempt to update the commit of a 0 . 0 . 1 version .
def check_commit_change_for_untagged_version(spec, previous_spec, errors)
        return unless previous_spec
        return unless spec.version == Version.new('0.0.1')
        unless spec.source[:commit] == previous_spec.source[:commit]
          errors << 'Attempt to rewrite the commit of a 0.0.1 version.'
        end
      end
def check_commit_change_for_untagged_version ( spec , previous_spec , errors ) return unless previous_spec return unless spec . version == Version . new ( '0.0.1' ) unless spec . source [ :commit ] == previous_spec . source [ :commit ] errors << 'Attempt to rewrite the commit of a 0.0.1 version.' end end
If the previous specification for the given file is passed it is
checked for any attempt to update the commit of a 0.0.1 version.
If the previous specification for the given file is passed it is checked for any attempt to update the commit of a 0 . 0 . 1 version .
None
void
spec
<not_specific>
previous_spec
<not_specific>
errors
<not_specific>