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
14ae4257
Commit
14ae4257
authored
Jul 30, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Subversion] Minor improvements.
parent
543b3a8e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
subversion.rb
lib/cocoapods/downloader/subversion.rb
+8
-2
downloader_spec.rb
spec/functional/downloader_spec.rb
+1
-1
No files found.
lib/cocoapods/downloader/subversion.rb
View file @
14ae4257
...
...
@@ -6,17 +6,23 @@ module Pod
def
download
if
options
[
:revision
]
download_revision
elsif
options
[
:tag
]
download_tag
else
download_head
end
end
def
download_head
svn
"checkout
\"
#{
url
}
\"
\"
#{
target_path
}
\"
"
svn
%|checkout "#{url}/#{options[:folder]}" "#{target_path}"|
end
def
download_revision
svn
"checkout
\"
#{
url
}
\"
-r '
#{
options
[
:revision
]
}
'
\"
#{
target_path
}
\"
"
svn
%|checkout "#{url}/#{options[:folder]}" -r "#{options[:revision]}" "#{target_path}"|
end
def
download_tag
svn
%|checkout "#{url}/tags/#{options[:tag]}/#{options[:folder]}" "#{target_path}"|
end
end
end
...
...
spec/functional/downloader_spec.rb
View file @
14ae4257
...
...
@@ -264,7 +264,7 @@ module Pod
it
"check's out a specific tag"
do
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
:svn
=>
"file://
#{
fixture
(
'subversion-repo'
)
}
/tags/tag-1"
:svn
=>
"file://
#{
fixture
(
'subversion-repo'
)
}
"
,
:tag
=>
'tag-1'
)
downloader
=
Downloader
.
for_pod
(
@pod
)
downloader
.
download
...
...
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