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
7e8ff41f
Commit
7e8ff41f
authored
Sep 25, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2479 from CocoaPods/fabio/fix-pod-spec-create-crash
[Command::Spec] Fix crash
parents
d3b1448b
e0275394
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
CHANGELOG.md
CHANGELOG.md
+5
-0
spec.rb
lib/cocoapods/command/spec.rb
+2
-0
No files found.
CHANGELOG.md
View file @
7e8ff41f
...
@@ -53,6 +53,11 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
...
@@ -53,6 +53,11 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[
Ladislav Martincik
](
https://github.com/martincik
)
[
Ladislav Martincik
](
https://github.com/martincik
)
[
#2482
](
https://github.com/CocoaPods/CocoaPods/issues/2482
)
[
#2482
](
https://github.com/CocoaPods/CocoaPods/issues/2482
)
*
Fix crash when the URL of a private GitHub repo is passed to
`pod spec
create`
as an argument.
[
Fabio Pelosin
](
https://github.com/fabiopelosin
)
[
#1543
](
https://github.com/CocoaPods/CocoaPods/issues/1543
)
## 0.34.0.rc2
## 0.34.0.rc2
...
...
lib/cocoapods/command/spec.rb
View file @
7e8ff41f
...
@@ -426,7 +426,9 @@ module Pod
...
@@ -426,7 +426,9 @@ module Pod
def
github_data_for_template
(
repo_id
)
def
github_data_for_template
(
repo_id
)
repo
=
GitHub
.
repo
(
repo_id
)
repo
=
GitHub
.
repo
(
repo_id
)
raise
Informative
,
"Unable to fetch data for `
#{
repo_id
}
`"
unless
repo
user
=
GitHub
.
user
(
repo
[
'owner'
][
'login'
])
user
=
GitHub
.
user
(
repo
[
'owner'
][
'login'
])
raise
Informative
,
"Unable to fetch data for `
#{
repo
[
'owner'
][
'login'
]
}
`"
unless
user
data
=
{}
data
=
{}
data
[
:name
]
=
repo
[
'name'
]
data
[
:name
]
=
repo
[
'name'
]
...
...
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