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
5e57791c
Commit
5e57791c
authored
May 23, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Config] Remove #force_doc.
parent
34dac294
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
install.rb
lib/cocoapods/command/install.rb
+0
-2
config.rb
lib/cocoapods/config.rb
+2
-3
installer.rb
lib/cocoapods/installer.rb
+1
-1
No files found.
lib/cocoapods/command/install.rb
View file @
5e57791c
...
@@ -27,7 +27,6 @@ module Pod
...
@@ -27,7 +27,6 @@ module Pod
[
[
[
"--no-clean"
,
"Leave SCM dirs like `.git' and `.svn' intact after downloading"
],
[
"--no-clean"
,
"Leave SCM dirs like `.git' and `.svn' intact after downloading"
],
[
"--no-doc"
,
"Skip documentation generation with appledoc"
],
[
"--no-doc"
,
"Skip documentation generation with appledoc"
],
[
"--force-doc"
,
"Force the generation of documentation"
],
[
"--no-integrate"
,
"Skip integration of the Pods libraries in the Xcode project(s)"
],
[
"--no-integrate"
,
"Skip integration of the Pods libraries in the Xcode project(s)"
],
[
"--no-update"
,
"Skip running `pod repo update` before install"
],
[
"--no-update"
,
"Skip running `pod repo update` before install"
],
].
concat
(
super
)
].
concat
(
super
)
...
@@ -36,7 +35,6 @@ module Pod
...
@@ -36,7 +35,6 @@ module Pod
def
initialize
(
argv
)
def
initialize
(
argv
)
config
.
clean
=
!
argv
.
option
(
'--no-clean'
)
config
.
clean
=
!
argv
.
option
(
'--no-clean'
)
config
.
generate_docs
=
!
argv
.
option
(
'--no-doc'
)
config
.
generate_docs
=
!
argv
.
option
(
'--no-doc'
)
config
.
force_doc
=
argv
.
option
(
'--force-doc'
)
config
.
integrate_targets
=
!
argv
.
option
(
'--no-integrate'
)
config
.
integrate_targets
=
!
argv
.
option
(
'--no-integrate'
)
@update_repo
=
!
argv
.
option
(
'--no-update'
)
@update_repo
=
!
argv
.
option
(
'--no-update'
)
super
unless
argv
.
empty?
super
unless
argv
.
empty?
...
...
lib/cocoapods/config.rb
View file @
5e57791c
...
@@ -12,7 +12,7 @@ module Pod
...
@@ -12,7 +12,7 @@ module Pod
attr_accessor
:repos_dir
,
:project_root
,
:project_pods_root
attr_accessor
:repos_dir
,
:project_root
,
:project_pods_root
attr_accessor
:clean
,
:verbose
,
:silent
attr_accessor
:clean
,
:verbose
,
:silent
attr_accessor
:generate_docs
,
:doc_install
,
:force_doc
attr_accessor
:generate_docs
,
:doc_install
attr_accessor
:integrate_targets
attr_accessor
:integrate_targets
attr_accessor
:git_cache_size
attr_accessor
:git_cache_size
...
@@ -21,12 +21,11 @@ module Pod
...
@@ -21,12 +21,11 @@ module Pod
alias_method
:silent?
,
:silent
alias_method
:silent?
,
:silent
alias_method
:generate_docs?
,
:generate_docs
alias_method
:generate_docs?
,
:generate_docs
alias_method
:doc_install?
,
:doc_install
alias_method
:doc_install?
,
:doc_install
alias_method
:force_doc?
,
:force_doc
alias_method
:integrate_targets?
,
:integrate_targets
alias_method
:integrate_targets?
,
:integrate_targets
def
initialize
def
initialize
@repos_dir
=
Pathname
.
new
(
File
.
expand_path
(
"~/.cocoapods"
))
@repos_dir
=
Pathname
.
new
(
File
.
expand_path
(
"~/.cocoapods"
))
@verbose
=
@silent
=
@force_doc
=
false
@verbose
=
@silent
=
false
@clean
=
@generate_docs
=
@doc_install
=
@integrate_targets
=
true
@clean
=
@generate_docs
=
@doc_install
=
@integrate_targets
=
true
end
end
...
...
lib/cocoapods/installer.rb
View file @
5e57791c
...
@@ -66,7 +66,7 @@ module Pod
...
@@ -66,7 +66,7 @@ module Pod
#TODO: move to generator ?
#TODO: move to generator ?
def
generate_docs
(
pod
)
def
generate_docs
(
pod
)
doc_generator
=
Generator
::
Documentation
.
new
(
pod
)
doc_generator
=
Generator
::
Documentation
.
new
(
pod
)
if
(
config
.
generate_docs?
&&
!
doc_generator
.
already_installed?
)
||
config
.
force_doc?
if
(
config
.
generate_docs?
&&
!
doc_generator
.
already_installed?
)
puts
"-> Installing documentation"
if
config
.
verbose?
puts
"-> Installing documentation"
if
config
.
verbose?
doc_generator
.
generate
(
config
.
doc_install?
)
doc_generator
.
generate
(
config
.
doc_install?
)
else
else
...
...
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