lib/cocoapods-core/source/health_reporter.rb
# Ensures that the name and the version of the specification correspond
# to the ones expected by the repo given its path.
#
# @param  [String] name
#         The name of the Pod.
#
# @param  [Version] version
#         The version of the specification.
#
# @param  [Specification] spec
#         The specification to check.
#
# @return [void]
#
Ensures that the name and the version of the specification correspond
to the ones expected by the repo given its path.
Ensures that the name and the version of the specification correspond to the ones expected by the repo given its path .
def check_spec_path(name, version, spec)
        unless spec.name == name && spec.version.to_s == version.to_s
          message = "Incorrect path #{spec.defined_in_file}"
          report.add_message(:error, message, name, spec.version)
        end
      end
def check_spec_path ( name , version , spec ) unless spec . name == name && spec . version . to_s == version . to_s message = "Incorrect path #{spec.defined_in_file}" report . add_message ( :error , message , name , spec . version ) end end
Ensures that the name and the version of the specification correspond
to the ones expected by the repo given its path.
Ensures that the name and the version of the specification correspond to the ones expected by the repo given its path .
None
void
name
<not_specific>
version
<not_specific>
spec
<not_specific>
<not_specific>
spec The specification to check.
spec The specification to check .