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
ef5f9a4f
Commit
ef5f9a4f
authored
Jun 24, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Cache] Handle the expected spec not being found
This prevents us from handing out locations from the deleted tmpdir
parent
c2de5502
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
CHANGELOG.md
CHANGELOG.md
+4
-0
cache.rb
lib/cocoapods/downloader/cache.rb
+1
-0
cache_spec.rb
spec/unit/downloader/cache_spec.rb
+11
-0
No files found.
CHANGELOG.md
View file @
ef5f9a4f
...
...
@@ -94,6 +94,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#3719
](
https://github.com/CocoaPods/CocoaPods/issues/3719
)
*
Attempting to specify a
`git`
source where a Podspec for the requested pod is
not found will have a more helpful error message.
[
Samuel Giddins
](
https://github.com/segiddins
)
## 0.37.2
...
...
lib/cocoapods/downloader/cache.rb
View file @
ef5f9a4f
...
...
@@ -151,6 +151,7 @@ module Pod
def
uncached_pod
(
request
)
in_tmpdir
do
|
target
|
result
,
podspecs
=
download
(
request
,
target
)
result
.
location
=
nil
podspecs
.
each
do
|
name
,
spec
|
destination
=
path_for_pod
(
request
,
:name
=>
name
,
:params
=>
result
.
checkout_options
)
...
...
spec/unit/downloader/cache_spec.rb
View file @
ef5f9a4f
...
...
@@ -99,6 +99,17 @@ module Pod
@cache
.
expects
(
:uncached_pod
).
once
@cache
.
download_pod
(
@unreleased_request
)
end
it
'does not return a location when there is no spec with the request name'
do
@stub_download
.
call
do
@spec
.
name
=
'OrangeLib'
File
.
open
(
'BananaLib.podspec.json'
,
'w'
)
{
|
f
|
f
<<
@spec
.
to_pretty_json
}
@spec
.
source
end
result
=
@cache
.
download_pod
(
@unreleased_request
)
result
.
location
.
should
.
be
.
nil
result
.
spec
.
should
.
be
.
nil
end
end
end
...
...
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