Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
00fd3a3d
Commit
00fd3a3d
authored
Dec 06, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Docs] Fixed yard warnings.
parent
dd2f2f8d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
42 deletions
+43
-42
advanced_linter.rb
lib/cocoapods/command/advanced_linter.rb
+1
-1
git.rb
lib/cocoapods/downloader/git.rb
+2
-2
prefix_header.rb
lib/cocoapods/generator/prefix_header.rb
+2
-3
xcconfig.rb
lib/cocoapods/generator/xcconfig.rb
+3
-3
installer.rb
lib/cocoapods/installer.rb
+0
-1
local_pod.rb
lib/cocoapods/local_pod.rb
+26
-17
project.rb
lib/cocoapods/project.rb
+3
-4
resolver.rb
lib/cocoapods/resolver.rb
+3
-8
source.rb
lib/cocoapods/source.rb
+3
-3
No files found.
lib/cocoapods/command/advanced_linter.rb
View file @
00fd3a3d
...
...
@@ -201,7 +201,7 @@ module Pod
end
end
# @errors += (@platform_errors[platform] - @errors).map {|m| "[#{platform}] #{m}"}
# @
errors += (@platform_errors[platform] - @errors).map {|m| "[#{platform}] #{m}"}
#-----------------------------------------------------------------------#
...
...
lib/cocoapods/downloader/git.rb
View file @
00fd3a3d
...
...
@@ -115,7 +115,7 @@ module Pod
# @return [void] Checks if a reference exists in the cache and updates
# only if necessary.
#
# @raise
s i
f after the update the reference can't be found.
# @raise
I
f after the update the reference can't be found.
#
def
ensure_ref_exists
(
ref
)
return
if
ref_exists?
(
ref
)
...
...
@@ -133,7 +133,7 @@ module Pod
# @return [void] Checks if a branch exists in the cache and updates
# only if necessary.
#
# @raise
s i
f after the update the branch can't be found.
# @raise
I
f after the update the branch can't be found.
#
def
ensure_remote_branch_exists
(
branch
)
return
if
branch_exists?
(
branch
)
...
...
lib/cocoapods/generator/prefix_header.rb
View file @
00fd3a3d
...
...
@@ -19,9 +19,8 @@ module Pod
#
attr_reader
:pods
# @param [Platform] platform @see platform
#
# @param [Array<LocalPod>] @see pods
# @param [Platform] platform @see platform
# @param [Array<LocalPod>] pods @see pods
#
def
initialize
(
platform
,
pods
)
@platform
=
platform
...
...
lib/cocoapods/generator/xcconfig.rb
View file @
00fd3a3d
...
...
@@ -19,9 +19,9 @@ module Pod
#
attr_reader
:relative_pods_root
# @param [
Platform] platform @see platform
#
# @param [
Array<LocalPod>] @see pods
# @param [
Sandbox] sandbox @see sandbox
#
@param [Array<LocalPod>] pods @see pods
# @param [
String] relative_pods_root @see relative_pods_root
#
def
initialize
(
sandbox
,
pods
,
relative_pods_root
)
@sandbox
=
sandbox
...
...
lib/cocoapods/installer.rb
View file @
00fd3a3d
...
...
@@ -72,7 +72,6 @@ module Pod
# @param [Sandbox] sandbox @see sandbox
# @param [Podfile] podfile @see podfile
# @param [Lockfile] lockfile @see lockfile
# @param [Bool] update_mode @see update_mode
#
def
initialize
(
sandbox
,
podfile
,
lockfile
=
nil
)
@sandbox
=
sandbox
...
...
lib/cocoapods/local_pod.rb
View file @
00fd3a3d
...
...
@@ -502,15 +502,17 @@ module Pod
root
.
relative_path_from
(
@sandbox
.
root
)
end
# @return
Hash{Pathname => [Array<Pathname>]}
A hash containing the headers
#
folders as the keys and the absolute paths of the header file
s
#
as
the values.
# @return
[Hash{Pathname => Array<Pathname>}]
A hash containing the headers
#
folders as the keys and the absolute paths of the header files a
s
#
the values.
#
# @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.
# @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.
#
# @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
)
mappings
=
{}
files_by_spec
.
each
do
|
spec
,
paths
|
...
...
@@ -525,7 +527,7 @@ module Pod
mappings
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.
#
def
headers_sandbox
...
...
@@ -549,7 +551,12 @@ module Pod
#
# @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
)
specs
||=
specifications
...
...
@@ -568,18 +575,20 @@ module Pod
end
# Converts patterns of paths to the {Pathname} of the files present in the
#
pod.
# pod.
#
# @param [String, FileList, Array<String, Pathname>] patterns
# The patterns to expand.
# @param [Hash] options
# The options to used for expanding the paths patterns.
# @option options [String] :glob
# The pattern to use for globing directories.
# The patterns to expand.
#
# @param [String] dir_pattern
# The pattern to add to 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
i
mplement case insensitive search
# @todo
I
mplement case insensitive search
#
# @return [Array<Pathname>] A list of the paths.
#
...
...
lib/cocoapods/project.rb
View file @
00fd3a3d
...
...
@@ -85,7 +85,7 @@ module Pod
# Adds a file reference to the podfile.
#
# @param [#to_s] path
# @param [#to_s] p
odfile_p
ath
# the path of the podfile
#
# @return [PBXFileReference]
...
...
@@ -202,7 +202,6 @@ module Pod
# @param [TargetDefinition] target_definition @see target_definition
# @param [PBXNativeTarget] target @see target
# @param [Project] project @see project
#
def
initialize
(
target_definition
,
target
)
@target_definition
=
target_definition
...
...
@@ -227,9 +226,9 @@ module Pod
# Returns the path of the user project that the {TargetDefinition}
# should integrate.
#
# @raise
s
If the project is implicit and there are multiple projects.
# @raise If the project is implicit and there are multiple projects.
#
# @raise
s
If the path doesn't exits.
# @raise If the path doesn't exits.
#
# @return [Pathname] the path of the user project.
#
...
...
lib/cocoapods/resolver.rb
View file @
00fd3a3d
...
...
@@ -197,20 +197,15 @@ module Pod
#
# @param [Dependency] dependency
# 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
# dependencies with external sources are always resolved against
# the remote. Otherwise the specification is retrieved from the
# 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.
# @todo Check dependency.specification
#
# @return [Set] the cached set for a given dependency.
#
...
...
@@ -244,7 +239,7 @@ module Pod
# Ensures that a spec is compatible with the platform of a target.
#
# @raise
s
If the spec is not supported by the target.
# @raise If the spec is not supported by the target.
#
# @return [void]
#
...
...
lib/cocoapods/source.rb
View file @
00fd3a3d
...
...
@@ -45,7 +45,7 @@ module Pod
# should include also the author, the summary, and the
# description.
#
# @raise
s
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
# pod, hence is considerably slower.
...
...
@@ -54,8 +54,8 @@ module Pod
#
# @return [Array<Set>] The sets that contain the search term.
#
def
search_by_name
(
name
,
full_text_search
=
false
)
result
=
Aggregate
.
new
(
config
.
repos_dir
).
search_by_name
(
name
,
full_text_search
)
def
search_by_name
(
query
,
full_text_search
=
false
)
result
=
Aggregate
.
new
(
config
.
repos_dir
).
search_by_name
(
query
,
full_text_search
)
if
result
.
empty?
extra
=
", author, summary, or description"
if
full_text_search
raise
Informative
"Unable to find a pod with name
#{
extra
}
matching `
#{
query
}
'"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment