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
Show 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
#
def
labeled
(
label
,
value
,
justification
=
16
)
if
value
''
.
tap
do
|
t
|
t
<<
" -
#{
label
}
:"
.
ljust
(
justification
)
title
=
"-
#{
label
}
:"
.
ljust
(
justification
)
output
=
begin
if
value
.
is_a?
(
Array
)
indent
=
self
.
indentation_level
+
2
puts_indented
t
<<
"
\n
"
value
.
each
do
|
v
|
t
<<
wrap_string
(
" -
#{
v
}
\n
"
,
indent
).
tap
do
|
line
|
puts
line
end
<<
"
\n
"
lines
=
[
wrap_string
(
title
,
self
.
indentation_level
)]
lines
<<
value
.
map
do
|
v
|
wrap_string
(
"-
#{
v
}
"
,
self
.
indentation_level
+
2
)
end
lines
.
join
(
"
\n
"
)
else
puts_indented
t
<<
value
.
to_s
<<
"
\n
"
end
wrap_string
(
title
+
"
#{
value
}
"
,
self
.
indentation_level
)
end
+
"
\n
"
end
puts
output
output
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