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
e07121ac
Commit
e07121ac
authored
Feb 09, 2016
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4882 from CocoaPods/seg-error-report-stack
[ErrorReport] Clean up generation of stack section
parents
ac030a3a
a7e87c23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
error_report.rb
lib/cocoapods/user_interface/error_report.rb
+21
-10
No files found.
lib/cocoapods/user_interface/error_report.rb
View file @
e07121ac
...
@@ -65,20 +65,31 @@ EOS
...
@@ -65,20 +65,31 @@ EOS
end
end
def
stack
def
stack
<<-
EOS
parts
=
{
'CocoaPods'
=>
Pod
::
VERSION
,
'Ruby'
=>
RUBY_DESCRIPTION
,
'RubyGems'
=>
Gem
::
VERSION
,
'Host'
=>
host_information
,
'Xcode'
=>
xcode_information
,
'Git'
=>
git_information
,
'Ruby lib dir'
=>
RbConfig
::
CONFIG
[
'libdir'
],
'Repositories'
=>
repo_information
,
}
justification
=
parts
.
keys
.
map
(
&
:size
).
max
str
=
<<-
EOS
### Stack
### Stack
```
CocoaPods :
#{
Pod
::
VERSION
}
Ruby :
#{
RUBY_DESCRIPTION
}
RubyGems :
#{
Gem
::
VERSION
}
Host :
#{
host_information
}
Xcode :
#{
xcode_information
}
Git :
#{
git_information
}
Ruby lib dir :
#{
RbConfig
::
CONFIG
[
'libdir'
]
}
Repositories :
#{
repo_information
.
join
(
"
\n
"
)
}
```
```
EOS
EOS
parts
.
each
do
|
name
,
value
|
str
<<
name
.
rjust
(
justification
)
str
<<
' : '
str
<<
Array
(
value
).
join
(
"
\n
"
<<
(
' '
*
(
justification
+
3
)))
str
<<
"
\n
"
end
str
<<
"```
\n
"
end
end
def
plugins_string
def
plugins_string
...
...
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