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
771c0b83
Commit
771c0b83
authored
Jun 01, 2015
by
AliSoftware
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command::Cache] fix segiddins nitpicking ;)
parent
7bc3d6bc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
clean.rb
lib/cocoapods/command/cache/clean.rb
+2
-1
cache.rb
lib/cocoapods/downloader/cache.rb
+1
-1
No files found.
lib/cocoapods/command/cache/clean.rb
View file @
771c0b83
...
@@ -31,7 +31,8 @@ module Pod
...
@@ -31,7 +31,8 @@ module Pod
end
end
def
run
def
run
if
@pod_name
.
nil?
# && @wipe_all
if
@pod_name
.
nil?
# Note: at that point, @wipe_all is always true (thanks to `validate!`)
# Remove all
# Remove all
clear_cache
clear_cache
else
else
...
...
lib/cocoapods/downloader/cache.rb
View file @
771c0b83
...
@@ -55,7 +55,7 @@ module Pod
...
@@ -55,7 +55,7 @@ module Pod
spec_paths
=
specs_dir
.
find
.
select
{
|
f
|
f
.
fnmatch
(
'*.podspec.json'
)
}
spec_paths
=
specs_dir
.
find
.
select
{
|
f
|
f
.
fnmatch
(
'*.podspec.json'
)
}
spec_paths
.
reduce
({})
do
|
hash
,
spec_path
|
spec_paths
.
reduce
({})
do
|
hash
,
spec_path
|
spec
=
Specification
.
from_file
(
spec_path
)
spec
=
Specification
.
from_file
(
spec_path
)
hash
[
spec
.
name
]
=
[]
if
hash
[
spec
.
name
].
nil?
hash
[
spec
.
name
]
||=
[]
is_release
=
spec_path
.
to_s
.
start_with?
(
release_specs_dir
.
to_s
)
is_release
=
spec_path
.
to_s
.
start_with?
(
release_specs_dir
.
to_s
)
request
=
Downloader
::
Request
.
new
(
:spec
=>
spec
,
:released
=>
is_release
)
request
=
Downloader
::
Request
.
new
(
:spec
=>
spec
,
:released
=>
is_release
)
hash
[
spec
.
name
]
<<
{
hash
[
spec
.
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