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
547e7e89
Commit
547e7e89
authored
May 15, 2015
by
Olivier Halligon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shush rubocop
parent
77a563d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
cache.rb
lib/cocoapods/command/cache.rb
+4
-6
No files found.
lib/cocoapods/command/cache.rb
View file @
547e7e89
...
@@ -28,7 +28,7 @@ module Pod
...
@@ -28,7 +28,7 @@ module Pod
spec_files
.
reduce
({})
do
|
hash
,
spec_file
|
spec_files
.
reduce
({})
do
|
hash
,
spec_file
|
spec
=
Specification
.
from_file
(
spec_file
)
spec
=
Specification
.
from_file
(
spec_file
)
hash
[
spec
.
name
]
=
{}
if
hash
[
spec
.
name
].
nil?
hash
[
spec
.
name
]
=
{}
if
hash
[
spec
.
name
].
nil?
release
=
spec_file
.
to_s
.
start_with?
(
specs_dir
+
'Release'
).
to_s
release
=
spec_file
.
to_s
.
start_with?
((
specs_dir
+
'Release'
).
to_s
)
request
=
Downloader
::
Request
.
new
(
:spec
=>
spec
,
:released
=>
release
)
request
=
Downloader
::
Request
.
new
(
:spec
=>
spec
,
:released
=>
release
)
hash
[
spec
.
name
][
spec_file
]
=
request
hash
[
spec
.
name
][
spec_file
]
=
request
hash
hash
...
@@ -49,7 +49,7 @@ module Pod
...
@@ -49,7 +49,7 @@ module Pod
def
self
.
options
def
self
.
options
[[
[[
'--short'
,
'Only print the path relative to the cache root'
,
'--short'
,
'Only print the path relative to the cache root'
]].
concat
(
super
)
]].
concat
(
super
)
end
end
...
@@ -59,10 +59,9 @@ module Pod
...
@@ -59,10 +59,9 @@ module Pod
super
super
end
end
def
run
def
run
UI
.
puts
(
"Cache root:
#{
@cache_root
}
"
)
if
@short_output
UI
.
puts
(
"Cache root:
#{
@cache_root
}
"
)
if
@short_output
if
(
@podname
.
nil?
)
# Print all
if
@podname
.
nil?
# Print all
cache_requests_per_pod
.
each
do
|
pod
,
list
|
cache_requests_per_pod
.
each
do
|
pod
,
list
|
UI
.
title
pod
UI
.
title
pod
print_pod_cache_list
(
list
)
print_pod_cache_list
(
list
)
...
@@ -90,12 +89,11 @@ module Pod
...
@@ -90,12 +89,11 @@ module Pod
type
=
request
.
released_pod?
?
'Release'
:
'External'
type
=
request
.
released_pod?
?
'Release'
:
'External'
UI
.
section
(
"
#{
request
.
spec
.
version
}
(
#{
type
}
)"
)
do
UI
.
section
(
"
#{
request
.
spec
.
version
}
(
#{
type
}
)"
)
do
UI
.
labeled
(
'Spec'
,
@short_output
?
spec_file
.
relative_path_from
(
@cache_root
)
:
spec_file
)
UI
.
labeled
(
'Spec'
,
@short_output
?
spec_file
.
relative_path_from
(
@cache_root
)
:
spec_file
)
UI
.
labeled
(
'Pod'
,
@short_output
?
request
.
slug
:
@cache_root
+
request
.
slug
)
UI
.
labeled
(
'Pod'
,
@short_output
?
request
.
slug
:
@cache_root
+
request
.
slug
)
end
end
end
end
end
end
end
end
end
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