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
eeb05df6
Commit
eeb05df6
authored
Apr 16, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Downloader::Cache] #mkpath === mkdir_p
parent
6fbae5a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cache.rb
lib/cocoapods/downloader/cache.rb
+3
-3
No files found.
lib/cocoapods/downloader/cache.rb
View file @
eeb05df6
...
@@ -17,7 +17,7 @@ module Pod
...
@@ -17,7 +17,7 @@ module Pod
#
#
def
initialize
(
root
)
def
initialize
(
root
)
@root
=
Pathname
(
root
)
@root
=
Pathname
(
root
)
@root
.
mkpath
unless
@root
.
exist?
@root
.
mkpath
end
end
# Downloads the Pod from the given `request`
# Downloads the Pod from the given `request`
...
@@ -163,7 +163,7 @@ module Pod
...
@@ -163,7 +163,7 @@ module Pod
spec
.
available_platforms
.
each
do
|
platform
|
spec
.
available_platforms
.
each
do
|
platform
|
specs_by_platform
[
platform
]
=
[
spec
,
*
spec
.
recursive_subspecs
].
select
{
|
ss
|
ss
.
supported_on_platform?
(
platform
)
}
specs_by_platform
[
platform
]
=
[
spec
,
*
spec
.
recursive_subspecs
].
select
{
|
ss
|
ss
.
supported_on_platform?
(
platform
)
}
end
end
destination
.
parent
.
mkpath
unless
destination
.
parent
.
exist?
destination
.
parent
.
mkpath
FileUtils
.
cp_r
(
source
,
destination
)
FileUtils
.
cp_r
(
source
,
destination
)
Sandbox
::
PodDirCleaner
.
new
(
destination
,
specs_by_platform
).
clean!
Sandbox
::
PodDirCleaner
.
new
(
destination
,
specs_by_platform
).
clean!
end
end
...
@@ -179,7 +179,7 @@ module Pod
...
@@ -179,7 +179,7 @@ module Pod
# @return [Void]
# @return [Void]
#
#
def
write_spec
(
spec
,
path
)
def
write_spec
(
spec
,
path
)
FileUtils
.
mkdir_p
path
.
dirname
path
.
dirname
.
mkpath
path
.
open
(
'w'
)
{
|
f
|
f
.
write
spec
.
to_pretty_json
}
path
.
open
(
'w'
)
{
|
f
|
f
.
write
spec
.
to_pretty_json
}
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