lib/cocoapods-core/source.rb
# Returns the path of the specification with the given name and version.
#
# @param  [String] name
#         the name of the Pod.
#
# @param  [Version,String] version
#         the version for the specification.
#
# @return [Pathname] The path of the specification.
#
Returns the path of the specification with the given name and version.
Returns the path of the specification with the given name and version .
def specification_path(name, version)
      raise ArgumentError, 'No name' unless name
      raise ArgumentError, 'No version' unless version
      path = pod_path(name) + version.to_s
      specification_path = path + "#{name}.podspec.json"
      unless specification_path.exist?
        specification_path = path + "#{name}.podspec"
      end
      unless specification_path.exist?
        raise StandardError, "Unable to find the specification #{name} " \
          "(#{version}) in the #{self.name} source."
      end
      specification_path
    end
def specification_path ( name , version ) raise ArgumentError , 'No name' unless name raise ArgumentError , 'No version' unless version path = pod_path ( name ) + version . to_s specification_path = path + "#{name}.podspec.json" unless specification_path . exist? specification_path = path + "#{name}.podspec" end unless specification_path . exist? raise StandardError , "Unable to find the specification #{name} " "(#{version}) in the #{self.name} source." end specification_path end
Returns the path of the specification with the given name and version.
Returns the path of the specification with the given name and version .
The path of the specification.
The path of the specification .
Pathname
name
<not_specific>
version
<not_specific>
<not_specific>
version the version for the specification.
version the version for the specification .