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
98a36c60
Commit
98a36c60
authored
Nov 19, 2014
by
Olivier Halligon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of `tap` (/cc @alloy)
parent
a14568c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
user_interface.rb
lib/cocoapods/user_interface.rb
+10
-10
No files found.
lib/cocoapods/user_interface.rb
View file @
98a36c60
...
@@ -193,20 +193,20 @@ module Pod
...
@@ -193,20 +193,20 @@ module Pod
#
#
def
labeled
(
label
,
value
,
justification
=
16
)
def
labeled
(
label
,
value
,
justification
=
16
)
if
value
if
value
''
.
tap
do
|
t
|
title
=
"-
#{
label
}
:"
.
ljust
(
justification
)
t
<<
" -
#{
label
}
:"
.
ljust
(
justification
)
output
=
begin
if
value
.
is_a?
(
Array
)
if
value
.
is_a?
(
Array
)
indent
=
self
.
indentation_level
+
2
lines
=
[
wrap_string
(
title
,
self
.
indentation_level
)]
puts_indented
t
<<
"
\n
"
lines
<<
value
.
map
do
|
v
|
value
.
each
do
|
v
|
wrap_string
(
"-
#{
v
}
"
,
self
.
indentation_level
+
2
)
t
<<
wrap_string
(
" -
#{
v
}
\n
"
,
indent
).
tap
do
|
line
|
puts
line
end
<<
"
\n
"
end
end
lines
.
join
(
"
\n
"
)
else
else
puts_indented
t
<<
value
.
to_s
<<
"
\n
"
wrap_string
(
title
+
"
#{
value
}
"
,
self
.
indentation_level
)
end
end
+
"
\n
"
end
end
puts
output
output
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