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
6624bfc8
Commit
6624bfc8
authored
Aug 20, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ExternalSources] Robustness.
parent
dca782c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dependency.rb
lib/cocoapods/dependency.rb
+4
-4
No files found.
lib/cocoapods/dependency.rb
View file @
6624bfc8
...
...
@@ -204,7 +204,7 @@ module Pod
output_path
=
sandbox
.
root
+
"Local Podspecs/
#{
name
}
.podspec"
output_path
.
dirname
.
mkpath
puts
"-> Fetching podspec for `
#{
name
}
' from:
#{
@params
[
:podspec
]
}
"
unless
config
.
silent?
open
(
@params
[
:podspec
]
)
do
|
io
|
open
(
Pathname
.
new
(
@params
[
:podspec
]).
expand_path
)
do
|
io
|
output_path
.
open
(
'w'
)
{
|
f
|
f
<<
io
.
read
}
end
end
...
...
@@ -216,9 +216,9 @@ module Pod
class
LocalSource
<
AbstractExternalSource
def
pod_spec_path
root
=
Pathname
.
new
(
@params
[
:local
])
path
=
spec_path
=
Dir
[
root
+
"*.podspec"
].
first
Pathname
.
new
(
path
)
path
=
Pathname
.
new
(
@params
[
:local
]).
expand_path
+
"
#{
name
}
.podspec"
raise
Informative
,
"No podspec found for `
#{
name
}
` in
#{
description
}
"
unless
path
.
exist?
path
end
def
copy_external_source_into_sandbox
(
sandbox
,
_
)
...
...
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