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
c8c89964
Commit
c8c89964
authored
Aug 25, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IntegrationSpecs] Update for using a home-grown dir tree implementation
parent
64a9fe07
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
integration.rb
spec/integration.rb
+3
-1
file_tree.rb
spec/integration/file_tree.rb
+15
-0
No files found.
cocoapods-integration-specs
@
964bcae6
Subproject commit
3cdede7125bf8d46475a3940017fc16d5bf45bb2
Subproject commit
964bcae651605ad37cc20897e1ad1a6e84e86a2b
spec/integration.rb
View file @
c8c89964
...
@@ -48,6 +48,7 @@ require 'pretty_bacon'
...
@@ -48,6 +48,7 @@ require 'pretty_bacon'
require
'colored'
require
'colored'
require
'clintegracon'
require
'clintegracon'
require
'fileutils'
require
'fileutils'
require
'integration/file_tree'
require
'integration/xcodeproj_project_yaml'
require
'integration/xcodeproj_project_yaml'
require
'tmpdir'
require
'tmpdir'
...
@@ -71,7 +72,7 @@ CLIntegracon.configure do |c|
...
@@ -71,7 +72,7 @@ CLIntegracon.configure do |c|
end
end
c
.
transform_produced
'**/*.framework'
do
|
path
|
c
.
transform_produced
'**/*.framework'
do
|
path
|
tree
=
`tree '
#{
path
}
'`
tree
=
FileTree
.
to_tree
(
path
)
FileUtils
.
rm_rf
path
FileUtils
.
rm_rf
path
File
.
open
(
path
,
'w'
)
{
|
f
|
f
<<
tree
}
File
.
open
(
path
,
'w'
)
{
|
f
|
f
<<
tree
}
end
end
...
@@ -122,6 +123,7 @@ describe_cli 'pod' do
...
@@ -122,6 +123,7 @@ describe_cli 'pod' do
s
.
replace_path
ROOT
.
to_s
,
'ROOT'
s
.
replace_path
ROOT
.
to_s
,
'ROOT'
s
.
replace_path
`which git`
.
chomp
,
'GIT_BIN'
s
.
replace_path
`which git`
.
chomp
,
'GIT_BIN'
s
.
replace_path
`which hg`
.
chomp
,
'HG_BIN'
if
has_mercurial
s
.
replace_path
`which hg`
.
chomp
,
'HG_BIN'
if
has_mercurial
s
.
replace_path
`which bash`
.
chomp
,
'BASH_BIN'
s
.
replace_user_path
'Library/Caches/CocoaPods'
,
'CACHES_DIR'
s
.
replace_user_path
'Library/Caches/CocoaPods'
,
'CACHES_DIR'
s
.
replace_pattern
/
#{
Dir
.
tmpdir
}
\/[\w-]+/i
,
'TMPDIR'
s
.
replace_pattern
/
#{
Dir
.
tmpdir
}
\/[\w-]+/i
,
'TMPDIR'
s
.
replace_pattern
/\d{4}-\d\d-\d\d \d\d:\d\d:\d\d [-+]\d{4}/
,
'<#DATE#>'
s
.
replace_pattern
/\d{4}-\d\d-\d\d \d\d:\d\d:\d\d [-+]\d{4}/
,
'<#DATE#>'
...
...
spec/integration/file_tree.rb
0 → 100644
View file @
c8c89964
require
'pathname'
module
FileTree
def
to_tree
(
path
,
depth
=
0
)
path
=
Pathname
(
path
)
indentation
=
' '
*
depth
*
2
tree
=
indentation
<<
path
.
to_path
<<
"
\n
"
path
.
children
.
each
do
|
child
|
tree
<<
to_tree
(
child
,
depth
+
1
)
end
if
path
.
directory?
tree
end
module_function
:to_tree
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