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
e1b12749
Commit
e1b12749
authored
Apr 22, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Pod::Command::Spec] Remove temporary directory after linting each pod
parent
e8396921
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
spec.rb
lib/cocoapods/command/spec.rb
+5
-3
No files found.
lib/cocoapods/command/spec.rb
View file @
e1b12749
...
@@ -71,7 +71,7 @@ module Pod
...
@@ -71,7 +71,7 @@ module Pod
# It returns true if **all** the files passed validation
# It returns true if **all** the files passed validation
#
#
def
lint_specs_files
(
files
,
is_repo
)
def
lint_specs_files
(
files
,
is_repo
)
tmp
dir
=
Pathname
.
new
(
'/tmp/CocoaPods'
).
mkpath
tmp
_dir
=
Pathname
.
new
(
'/tmp/CocoaPods/Lint'
)
all_valid
=
true
all_valid
=
true
files
.
each
do
|
file
|
files
.
each
do
|
file
|
file
=
file
.
realpath
file
=
file
.
realpath
...
@@ -85,8 +85,10 @@ module Pod
...
@@ -85,8 +85,10 @@ module Pod
if
is_repo
if
is_repo
build_errors
,
file_errors
=
[],
[]
build_errors
,
file_errors
=
[],
[]
else
else
build_errors
=
Dir
.
chdir
(
'/tmp/CocoaPods'
)
{
build_errors_for_spec
(
spec
,
file
,
is_repo
)
}
tmp_dir
.
mkpath
file_errors
=
Dir
.
chdir
(
'/tmp/CocoaPods'
)
{
file_errors_for_spec
(
spec
,
file
,
is_repo
)
}
build_errors
=
Dir
.
chdir
(
tmp_dir
)
{
build_errors_for_spec
(
spec
,
file
,
is_repo
)
}
file_errors
=
Dir
.
chdir
(
tmp_dir
)
{
file_errors_for_spec
(
spec
,
file
,
is_repo
)
}
tmp_dir
.
rmtree
end
end
# This overwrites the previous printed text
# This overwrites the previous printed text
...
...
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