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
86211405
Commit
86211405
authored
Dec 26, 2014
by
Hugo Tunius
Committed by
Kyle Fuller
Jan 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodspecSource] Rescue HTTPError exceptions and handle them
parent
d0b598a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
CHANGELOG.md
CHANGELOG.md
+5
-0
podspec_source.rb
lib/cocoapods/external_sources/podspec_source.rb
+5
-0
No files found.
CHANGELOG.md
View file @
86211405
...
@@ -42,6 +42,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -42,6 +42,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Hugo Tunius
](
https://github.com/K0nserv
)
[
Hugo Tunius
](
https://github.com/K0nserv
)
[
#2579
](
https://github.com/CocoaPods/CocoaPods/issues/2579
)
[
#2579
](
https://github.com/CocoaPods/CocoaPods/issues/2579
)
*
Any errors which occur during fetching of external podspecs over HTTP
will now be gracefully handled.
[
Hugo Tunius
](
https://github.com/K0nserv
)
[
#2823
](
https://github.com/CocoaPods/CocoaPods/issues/2823
)
## 0.36.0.beta.1
## 0.36.0.beta.1
...
...
lib/cocoapods/external_sources/podspec_source.rb
View file @
86211405
...
@@ -11,7 +11,12 @@ module Pod
...
@@ -11,7 +11,12 @@ module Pod
UI
.
titled_section
(
title
,
:verbose_prefix
=>
'-> '
)
do
UI
.
titled_section
(
title
,
:verbose_prefix
=>
'-> '
)
do
is_json
=
podspec_uri
.
split
(
'.'
).
last
==
'json'
is_json
=
podspec_uri
.
split
(
'.'
).
last
==
'json'
require
'open-uri'
require
'open-uri'
begin
open
(
podspec_uri
)
{
|
io
|
store_podspec
(
sandbox
,
io
.
read
,
is_json
)
}
open
(
podspec_uri
)
{
|
io
|
store_podspec
(
sandbox
,
io
.
read
,
is_json
)
}
rescue
OpenURI
::
HTTPError
=>
e
status
=
e
.
io
.
status
.
join
(
' '
)
raise
Informative
,
"Failed to fetch podspec for `
#{
name
}
` at
#{
podspec_uri
}
. Error:
#{
status
}
"
end
end
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