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
071fc84d
Commit
071fc84d
authored
Apr 29, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Generator::Documentation #184] Print appledoc errors instead of
raising.
parent
190391dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
documentation.rb
lib/cocoapods/generator/documentation.rb
+6
-4
No files found.
lib/cocoapods/generator/documentation.rb
View file @
071fc84d
...
@@ -65,7 +65,9 @@ module Pod
...
@@ -65,7 +65,9 @@ module Pod
'--ignore'
,
'.m'
,
'--ignore'
,
'.m'
,
'--keep-undocumented-objects'
,
'--keep-undocumented-objects'
,
'--keep-undocumented-members'
,
'--keep-undocumented-members'
,
'--keep-intermediate-files'
'--keep-intermediate-files'
,
'--exit-threshold'
,
'2'
# appledoc exits with 1 if a warning was logged
]
]
index
=
index_file
index
=
index_file
options
+=
[
'--index-desc'
,
index
]
if
index
options
+=
[
'--index-desc'
,
index
]
if
index
...
@@ -82,9 +84,9 @@ module Pod
...
@@ -82,9 +84,9 @@ module Pod
@pod
.
chdir
do
@pod
.
chdir
do
appledoc
Escape
.
shell_command
(
options
)
appledoc
Escape
.
shell_command
(
options
)
end
end
# appledoc exits with 1 if a warning was logged
if
$?
.
exitstatus
>=
2
if
$?
.
exitstatus
!=
0
raise
"Appledoc encountered an error (exitstatus:
#{
$?
.
exitstatus
}
)."
puts
"[!] Appledoc encountered an error (exitstatus:
#{
$?
.
exitstatus
}
), an update might be avilable to solve the issue."
unless
config
.
silent?
end
end
rescue
Informative
rescue
Informative
...
...
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