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
9171cbf7
Commit
9171cbf7
authored
Mar 17, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always warn about appledoc missing, unless silenced.
parent
65009432
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
docs_generator.rb
lib/cocoapods/docs_generator.rb
+8
-3
No files found.
lib/cocoapods/docs_generator.rb
View file @
9171cbf7
...
@@ -5,6 +5,8 @@ module Pod
...
@@ -5,6 +5,8 @@ module Pod
!
`which appledoc`
.
strip
.
empty?
!
`which appledoc`
.
strip
.
empty?
end
end
include
Config
::
Mixin
attr_reader
:pod
,
:specification
,
:target_path
,
:options
attr_reader
:pod
,
:specification
,
:target_path
,
:options
def
initialize
(
pod
)
def
initialize
(
pod
)
...
@@ -83,20 +85,23 @@ module Pod
...
@@ -83,20 +85,23 @@ module Pod
def
appledoc
(
options
)
def
appledoc
(
options
)
unless
self
.
class
.
appledoc_installed?
unless
self
.
class
.
appledoc_installed?
puts
"
\n
[!] Skipping documentation generation because appledoc can't be found."
if
Config
.
instance
.
verbose
?
puts
"
\n
[!] Skipping documentation generation because appledoc can't be found."
unless
config
.
silent
?
return
return
end
end
arguments
=
[]
arguments
=
[]
arguments
+=
options
arguments
+=
options
arguments
+=
[
'--print-settings'
]
if
Config
.
instance
.
verbose?
arguments
+=
[
'--print-settings'
]
if
config
.
verbose?
arguments
+=
files
arguments
+=
files
Open3
.
popen3
(
'appledoc'
,
*
arguments
)
do
|
i
,
o
,
e
|
Open3
.
popen3
(
'appledoc'
,
*
arguments
)
do
|
i
,
o
,
e
|
if
Config
.
instance
.
verbose?
if
config
.
verbose?
puts
o
.
read
.
chomp
puts
o
.
read
.
chomp
puts
e
.
read
.
chomp
puts
e
.
read
.
chomp
else
else
# TODO: This is needed otherwise appledoc may not install the doc set
# TODO: This is needed otherwise appledoc may not install the doc set
# This is a work around related to poor understanding of the IO class.
# This is a work around related to poor understanding of the IO class.
#
# I think we can use the non-block version here, which should read
# everything till the end and then return.
o
.
read
o
.
read
e
.
read
e
.
read
end
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