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
844946c4
Commit
844946c4
authored
Sep 20, 2012
by
Antoine d'Otreppe
Committed by
Lasse Bang Mikkelsen
Dec 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for pre-download over SVN (fixes #524)
parent
c261fe98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
dependency.rb
lib/cocoapods/dependency.rb
+28
-0
No files found.
lib/cocoapods/dependency.rb
View file @
844946c4
...
@@ -136,6 +136,8 @@ module Pod
...
@@ -136,6 +136,8 @@ module Pod
return
unless
name
&&
params
return
unless
name
&&
params
if
params
.
key?
(
:git
)
if
params
.
key?
(
:git
)
GitSource
.
new
(
name
,
params
)
GitSource
.
new
(
name
,
params
)
elsif
params
.
key?
(
:svn
)
SvnSource
.
new
(
name
,
params
)
elsif
params
.
key?
(
:podspec
)
elsif
params
.
key?
(
:podspec
)
PodspecSource
.
new
(
name
,
params
)
PodspecSource
.
new
(
name
,
params
)
elsif
params
.
key?
(
:local
)
elsif
params
.
key?
(
:local
)
...
@@ -213,6 +215,32 @@ module Pod
...
@@ -213,6 +215,32 @@ module Pod
end
end
end
end
end
end
class
SvnSource
<
AbstractExternalSource
# FIXME svn may complain that it cannot validate the certificate.
# In that case, do a first svn export by yourself,
# and accept the certificate permanently
def
copy_external_source_into_sandbox
(
sandbox
,
platform
)
puts
"-> Pre-downloading: '
#{
name
}
'"
unless
config
.
silent?
target
=
sandbox
.
root
+
name
target
.
rmtree
if
target
.
exist?
downloader
=
Downloader
.
for_target
(
sandbox
.
root
+
name
,
@params
)
downloader
.
download
store_podspec
(
sandbox
,
target
+
"
#{
name
}
.podspec"
)
if
local_pod
=
sandbox
.
installed_pod_named
(
name
,
platform
)
local_pod
.
downloaded
=
true
end
end
def
description
"from `
#{
@params
[
:svn
]
}
'"
.
tap
do
|
description
|
# TODO is the :folder param meaningful here ?
description
<<
", folder `
#{
@params
[
:folder
]
}
'"
if
@params
[
:revision
]
description
<<
", tag `
#{
@params
[
:tag
]
}
'"
if
@params
[
:tag
]
description
<<
", revision `
#{
@params
[
:revision
]
}
'"
if
@params
[
:revision
]
end
end
end
# can be http, file, etc
# can be http, file, etc
class
PodspecSource
<
AbstractExternalSource
class
PodspecSource
<
AbstractExternalSource
...
...
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