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
fde74d05
Commit
fde74d05
authored
Apr 18, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Documentation] Add missing downloader cache params
parent
979b1f4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
cache.rb
lib/cocoapods/downloader/cache.rb
+24
-1
No files found.
lib/cocoapods/downloader/cache.rb
View file @
fde74d05
...
@@ -23,7 +23,7 @@ module Pod
...
@@ -23,7 +23,7 @@ module Pod
# Downloads the Pod from the given `request`
# Downloads the Pod from the given `request`
#
#
# @param [Request] request
# @param [Request] request
# the request to be downloaded
# the request to be downloaded
.
#
#
# @return [Response] the response from downloading `request`
# @return [Response] the response from downloading `request`
#
#
...
@@ -38,6 +38,13 @@ module Pod
...
@@ -38,6 +38,13 @@ module Pod
private
private
# @param [Request] request
# the request to be downloaded.
#
# @param [Hash<Symbol,String>] slug_opts
# the download options that should be used in constructing the
# cache slug for this request.
#
# @return [Pathname] The path for the Pod downloaded from the given
# @return [Pathname] The path for the Pod downloaded from the given
# `request`.
# `request`.
#
#
...
@@ -45,6 +52,13 @@ module Pod
...
@@ -45,6 +52,13 @@ module Pod
root
+
request
.
slug
(
slug_opts
)
root
+
request
.
slug
(
slug_opts
)
end
end
# @param [Request] request
# the request to be downloaded.
#
# @param [Hash<Symbol,String>] slug_opts
# the download options that should be used in constructing the
# cache slug for this request.
#
# @return [Pathname] The path for the podspec downloaded from the given
# @return [Pathname] The path for the podspec downloaded from the given
# `request`.
# `request`.
#
#
...
@@ -53,6 +67,9 @@ module Pod
...
@@ -53,6 +67,9 @@ module Pod
path
.
sub_ext
(
'.podspec.json'
)
path
.
sub_ext
(
'.podspec.json'
)
end
end
# @param [Request] request
# the request to be downloaded.
#
# @return [Response] The download response for the given `request` that
# @return [Response] The download response for the given `request` that
# was found in the download cache.
# was found in the download cache.
#
#
...
@@ -63,6 +80,9 @@ module Pod
...
@@ -63,6 +80,9 @@ module Pod
Response
.
new
(
path
,
spec
,
request
.
params
)
Response
.
new
(
path
,
spec
,
request
.
params
)
end
end
# @param [Request] request
# the request to be downloaded.
#
# @return [Specification] The cached specification for the given
# @return [Specification] The cached specification for the given
# `request`.
# `request`.
#
#
...
@@ -71,6 +91,9 @@ module Pod
...
@@ -71,6 +91,9 @@ module Pod
path
.
file?
&&
Specification
.
from_file
(
path
)
path
.
file?
&&
Specification
.
from_file
(
path
)
end
end
# @param [Request] request
# the request to be downloaded.
#
# @return [Response] The download response for the given `request` that
# @return [Response] The download response for the given `request` that
# was not found in the download cache.
# was not found in the download cache.
#
#
...
...
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