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
726d9f59
Commit
726d9f59
authored
Mar 08, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#149] Draft for documentation generation
parent
6dc80f02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
cocoapods.rb
lib/cocoapods.rb
+2
-1
spec.rb
lib/cocoapods/command/spec.rb
+0
-1
installer.rb
lib/cocoapods/installer.rb
+3
-0
local_pod.rb
lib/cocoapods/local_pod.rb
+15
-0
No files found.
lib/cocoapods.rb
View file @
726d9f59
...
@@ -22,9 +22,10 @@ module Pod
...
@@ -22,9 +22,10 @@ module Pod
autoload
:Spec
,
'cocoapods/specification'
autoload
:Spec
,
'cocoapods/specification'
autoload
:Specification
,
'cocoapods/specification'
autoload
:Specification
,
'cocoapods/specification'
autoload
:Version
,
'cocoapods/version'
autoload
:Version
,
'cocoapods/version'
autoload
:Pathname
,
'pathname'
autoload
:Pathname
,
'pathname'
autoload
:FileList
,
'cocoapods/file_list'
autoload
:FileList
,
'cocoapods/file_list'
autoload
:Open3
,
'open3'
module
Generator
module
Generator
autoload
:BridgeSupport
,
'cocoapods/generator/bridge_support'
autoload
:BridgeSupport
,
'cocoapods/generator/bridge_support'
...
...
lib/cocoapods/command/spec.rb
View file @
726d9f59
...
@@ -64,7 +64,6 @@ module Pod
...
@@ -64,7 +64,6 @@ module Pod
# :appledoc => ['--project-name', '
#{
@name
}
',
# :appledoc => ['--project-name', '
#{
@name
}
',
# '--project-company', '"Company Name"',
# '--project-company', '"Company Name"',
# '--company-id', 'com.company',
# '--company-id', 'com.company',
# '--output', './doc',
# '--ignore', 'Common',
# '--ignore', 'Common',
# '--ignore', '.m']
# '--ignore', '.m']
}
}
...
...
lib/cocoapods/installer.rb
View file @
726d9f59
...
@@ -82,6 +82,9 @@ module Pod
...
@@ -82,6 +82,9 @@ module Pod
puts
"* Writing Xcode project file to `
#{
@sandbox
.
project_path
}
'"
if
config
.
verbose?
puts
"* Writing Xcode project file to `
#{
@sandbox
.
project_path
}
'"
if
config
.
verbose?
project
.
save_as
(
@sandbox
.
project_path
)
project
.
save_as
(
@sandbox
.
project_path
)
puts
"Installing documentation"
unless
config
.
silent?
pods
.
each
{
|
pod
|
pod
.
install_documentation
}
end
end
def
run_post_install_hooks
def
run_post_install_hooks
...
...
lib/cocoapods/local_pod.rb
View file @
726d9f59
...
@@ -74,6 +74,20 @@ module Pod
...
@@ -74,6 +74,20 @@ module Pod
target
.
add_source_file
(
file
,
nil
,
specification
.
compiler_flags
)
target
.
add_source_file
(
file
,
nil
,
specification
.
compiler_flags
)
end
end
end
end
def
install_documentation
if
specification
.
documentation
appledoc_options
=
specification
.
documentation
[
:appledoc
]
if
appledoc_options
appledoc_options
+=
[
'--output'
,
"
#{
@sandbox
.
root
}
/doc"
]
appledoc_options
+=
source_files
Open3
.
popen3
(
'appledoc'
,
*
appledoc_options
)
{
|
stdin
,
stdout
,
stderr
|
puts
stdout
.
read
.
chomp
puts
stderr
.
read
.
chomp
}
end
end
end
def
requires_arc?
def
requires_arc?
specification
.
requires_arc
specification
.
requires_arc
...
@@ -117,3 +131,4 @@ module Pod
...
@@ -117,3 +131,4 @@ module Pod
end
end
end
end
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