lib/cocoapods-core/source/health_reporter.rb
# Adds a message with the given type for the specification with the
# given name and version.
#
# @param  [Symbol] type
#         The type of message. Either `:error` or `:warning`.
#
# @param  [String] message
#         The contents of the message.
#
# @param  [String] spec_name
#         The name of the Pod.
#
# @param  [String] spec_version
#         The version of the specification.
#
# @return [void]
#
Adds a message with the given type for the specification with the
given name and version.
Adds a message with the given type for the specification with the given name and version .
def add_message(type, message, spec_name, spec_version = nil)
          pods = send(:"pods_by_#{type}")
          pods[message] ||= {}
          pods[message][spec_name] ||= []
          pods[message][spec_name] << spec_version
        end
def add_message ( type , message , spec_name , spec_version = nil ) pods = send ( :" pods_by_ #{ type } " ) pods [ message ] ||= { } pods [ message ] [ spec_name ] ||= [ ] pods [ message ] [ spec_name ] << spec_version end
Adds a message with the given type for the specification with the
given name and version.
Adds a message with the given type for the specification with the given name and version .
None
void
type
<not_specific>
message
<not_specific>
spec_name
<not_specific>
spec_version
<not_specific>
<not_specific>
spec_version The version of the specification.
spec_version The version of the specification .