Method: Pod::Source::Acceptor#analyze

Defined in:
lib/cocoapods-core/source/acceptor.rb

#analyze(spec, previous_spec = nil) ⇒ Array<String>

Checks whether the given specification can be accepted.

Returns:

  • (Array<String>)

    A list of errors. If the list is empty the specification should be accepted.



28
29
30
31
32
33
34
35
# File 'lib/cocoapods-core/source/acceptor.rb', line 28

def analyze(spec, previous_spec = nil)
  errors = []
  check_spec_source_change(spec, errors)
  check_if_untagged_version_is_acceptable(spec, previous_spec, errors)
  check_commit_change_for_untagged_version(spec, previous_spec, errors)
  check_dependencies(spec, errors)
  errors
end