Commit 00fd3a3d authored by Fabio Pelosin's avatar Fabio Pelosin

[Docs] Fixed yard warnings.

parent dd2f2f8d
...@@ -201,7 +201,7 @@ module Pod ...@@ -201,7 +201,7 @@ module Pod
end end
end end
# @errors += (@platform_errors[platform] - @errors).map {|m| "[#{platform}] #{m}"} # @ errors += (@platform_errors[platform] - @errors).map {|m| "[#{platform}] #{m}"}
#-----------------------------------------------------------------------# #-----------------------------------------------------------------------#
......
...@@ -115,7 +115,7 @@ module Pod ...@@ -115,7 +115,7 @@ module Pod
# @return [void] Checks if a reference exists in the cache and updates # @return [void] Checks if a reference exists in the cache and updates
# only if necessary. # only if necessary.
# #
# @raises if after the update the reference can't be found. # @raise If after the update the reference can't be found.
# #
def ensure_ref_exists(ref) def ensure_ref_exists(ref)
return if ref_exists?(ref) return if ref_exists?(ref)
...@@ -133,7 +133,7 @@ module Pod ...@@ -133,7 +133,7 @@ module Pod
# @return [void] Checks if a branch exists in the cache and updates # @return [void] Checks if a branch exists in the cache and updates
# only if necessary. # only if necessary.
# #
# @raises if after the update the branch can't be found. # @raise If after the update the branch can't be found.
# #
def ensure_remote_branch_exists(branch) def ensure_remote_branch_exists(branch)
return if branch_exists?(branch) return if branch_exists?(branch)
......
...@@ -19,9 +19,8 @@ module Pod ...@@ -19,9 +19,8 @@ module Pod
# #
attr_reader :pods attr_reader :pods
# @param [Platform] platform @see platform # @param [Platform] platform @see platform
# # @param [Array<LocalPod>] pods @see pods
# @param [Array<LocalPod>] @see pods
# #
def initialize(platform, pods) def initialize(platform, pods)
@platform = platform @platform = platform
......
...@@ -19,9 +19,9 @@ module Pod ...@@ -19,9 +19,9 @@ module Pod
# #
attr_reader :relative_pods_root attr_reader :relative_pods_root
# @param [Platform] platform @see platform # @param [Sandbox] sandbox @see sandbox
# # @param [Array<LocalPod>] pods @see pods
# @param [Array<LocalPod>] @see pods # @param [String] relative_pods_root @see relative_pods_root
# #
def initialize(sandbox, pods, relative_pods_root) def initialize(sandbox, pods, relative_pods_root)
@sandbox = sandbox @sandbox = sandbox
......
...@@ -72,7 +72,6 @@ module Pod ...@@ -72,7 +72,6 @@ module Pod
# @param [Sandbox] sandbox @see sandbox # @param [Sandbox] sandbox @see sandbox
# @param [Podfile] podfile @see podfile # @param [Podfile] podfile @see podfile
# @param [Lockfile] lockfile @see lockfile # @param [Lockfile] lockfile @see lockfile
# @param [Bool] update_mode @see update_mode
# #
def initialize(sandbox, podfile, lockfile = nil) def initialize(sandbox, podfile, lockfile = nil)
@sandbox = sandbox @sandbox = sandbox
......
...@@ -502,15 +502,17 @@ module Pod ...@@ -502,15 +502,17 @@ module Pod
root.relative_path_from(@sandbox.root) root.relative_path_from(@sandbox.root)
end end
# @return Hash{Pathname => [Array<Pathname>]} A hash containing the headers # @return [Hash{Pathname => Array<Pathname>}] A hash containing the headers
# folders as the keys and the absolute paths of the header files # folders as the keys and the absolute paths of the header files as
# as the values. # the values.
# #
# @todo this is being overridden in the RestKit 0.9.4 spec, need to do # @todo This is being overridden in the RestKit 0.9.4 spec, need to do
# something with that, and this method also still exists in Specification. # something with that, and this method also still exists in
# Specification.
#
# @todo This is not overridden anymore in specification refactor and the
# code Pod::Specification#copy_header_mapping can be moved here.
# #
# @todo This is not overridden anymore in specification refactor and the
# code Pod::Specification#copy_header_mapping can be moved here.
def header_mappings(files_by_spec) def header_mappings(files_by_spec)
mappings = {} mappings = {}
files_by_spec.each do |spec, paths| files_by_spec.each do |spec, paths|
...@@ -525,7 +527,7 @@ module Pod ...@@ -525,7 +527,7 @@ module Pod
mappings mappings
end end
# @return <Pathname> The name of the folder where the headers of this pod # @return [<Pathname>] The name of the folder where the headers of this pod
# will be namespaced. # will be namespaced.
# #
def headers_sandbox def headers_sandbox
...@@ -549,7 +551,12 @@ module Pod ...@@ -549,7 +551,12 @@ module Pod
# #
# @param [Symbol] accessor The accessor to use to obtain the paths patterns. # @param [Symbol] accessor The accessor to use to obtain the paths patterns.
# #
# @param [Hash] options (see #expanded_paths) # @param [String] dir_pattern
# The pattern to add to directories.
#
# @param [Array<Specification>] specs
# The specification of which the patterns are needed.
# If not specifies it defaults {#specifications}.
# #
def paths_by_spec(accessor, dir_pattern = nil, specs = nil) def paths_by_spec(accessor, dir_pattern = nil, specs = nil)
specs ||= specifications specs ||= specifications
...@@ -568,18 +575,20 @@ module Pod ...@@ -568,18 +575,20 @@ module Pod
end end
# Converts patterns of paths to the {Pathname} of the files present in the # Converts patterns of paths to the {Pathname} of the files present in the
# pod. # pod.
# #
# @param [String, FileList, Array<String, Pathname>] patterns # @param [String, FileList, Array<String, Pathname>] patterns
# The patterns to expand. # The patterns to expand.
# @param [Hash] options #
# The options to used for expanding the paths patterns. # @param [String] dir_pattern
# @option options [String] :glob # The pattern to add to directories.
# The pattern to use for globing directories. #
# @param [String] exclude_patterns
# The exclude patterns to pass to the PathList.
# #
# @raise [Informative] If the pod does not exists. # @raise [Informative] If the pod does not exists.
# #
# @todo implement case insensitive search # @todo Implement case insensitive search
# #
# @return [Array<Pathname>] A list of the paths. # @return [Array<Pathname>] A list of the paths.
# #
......
...@@ -85,7 +85,7 @@ module Pod ...@@ -85,7 +85,7 @@ module Pod
# Adds a file reference to the podfile. # Adds a file reference to the podfile.
# #
# @param [#to_s] path # @param [#to_s] podfile_path
# the path of the podfile # the path of the podfile
# #
# @return [PBXFileReference] # @return [PBXFileReference]
...@@ -202,7 +202,6 @@ module Pod ...@@ -202,7 +202,6 @@ module Pod
# @param [TargetDefinition] target_definition @see target_definition # @param [TargetDefinition] target_definition @see target_definition
# @param [PBXNativeTarget] target @see target # @param [PBXNativeTarget] target @see target
# @param [Project] project @see project
# #
def initialize(target_definition, target) def initialize(target_definition, target)
@target_definition = target_definition @target_definition = target_definition
...@@ -227,9 +226,9 @@ module Pod ...@@ -227,9 +226,9 @@ module Pod
# Returns the path of the user project that the {TargetDefinition} # Returns the path of the user project that the {TargetDefinition}
# should integrate. # should integrate.
# #
# @raises If the project is implicit and there are multiple projects. # @raise If the project is implicit and there are multiple projects.
# #
# @raises If the path doesn't exits. # @raise If the path doesn't exits.
# #
# @return [Pathname] the path of the user project. # @return [Pathname] the path of the user project.
# #
......
...@@ -197,20 +197,15 @@ module Pod ...@@ -197,20 +197,15 @@ module Pod
# #
# @param [Dependency] dependency # @param [Dependency] dependency
# the dependency for which the set is needed. # the dependency for which the set is needed.
# TODO: check dependency.specification
#
# @param [Platform] platform
# the platform on which the dependency is needed this is used by
# the sandbox to locate external sources.
# TODO why?
# #
# @note If the {#update_external_specs} flag is activated the # @note If the {#update_external_specs} flag is activated the
# dependencies with external sources are always resolved against # dependencies with external sources are always resolved against
# the remote. Otherwise the specification is retrieved from the # the remote. Otherwise the specification is retrieved from the
# sandbox that fetches the external source only if needed. # sandbox that fetches the external source only if needed.
# #
# TODO If the set is loaded from a normal source and then from an # @todo If the set is loaded from a normal source and then from an
# external one that information is lost. # external one that information is lost.
# @todo Check dependency.specification
# #
# @return [Set] the cached set for a given dependency. # @return [Set] the cached set for a given dependency.
# #
...@@ -244,7 +239,7 @@ module Pod ...@@ -244,7 +239,7 @@ module Pod
# Ensures that a spec is compatible with the platform of a target. # Ensures that a spec is compatible with the platform of a target.
# #
# @raises If the spec is not supported by the target. # @raise If the spec is not supported by the target.
# #
# @return [void] # @return [void]
# #
......
...@@ -45,7 +45,7 @@ module Pod ...@@ -45,7 +45,7 @@ module Pod
# should include also the author, the summary, and the # should include also the author, the summary, and the
# description. # description.
# #
# @raises If no source including the set can be found. # @raise If no source including the set can be found.
# #
# @note Full text search requires to load the specification for each # @note Full text search requires to load the specification for each
# pod, hence is considerably slower. # pod, hence is considerably slower.
...@@ -54,8 +54,8 @@ module Pod ...@@ -54,8 +54,8 @@ module Pod
# #
# @return [Array<Set>] The sets that contain the search term. # @return [Array<Set>] The sets that contain the search term.
# #
def search_by_name(name, full_text_search = false) def search_by_name(query, full_text_search = false)
result = Aggregate.new(config.repos_dir).search_by_name(name, full_text_search) result = Aggregate.new(config.repos_dir).search_by_name(query, full_text_search)
if result.empty? if result.empty?
extra = ", author, summary, or description" if full_text_search extra = ", author, summary, or description" if full_text_search
raise Informative "Unable to find a pod with name#{extra} matching `#{query}'" raise Informative "Unable to find a pod with name#{extra} matching `#{query}'"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment