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
7b148d39
Commit
7b148d39
authored
Apr 06, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Generator::Documentation] Namespace ids by Pod
Closes #659
parent
e83f01b0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
CHANGELOG.md
CHANGELOG.md
+2
-1
documentation.rb
lib/cocoapods/generator/documentation.rb
+3
-4
documentation_spec.rb
spec/unit/generator/documentation_spec.rb
+2
-2
No files found.
CHANGELOG.md
View file @
7b148d39
...
...
@@ -23,7 +23,8 @@
[
#918
](
https://github.com/CocoaPods/CocoaPods/issues/918
)
*
Improved support for pre-release versions using dashes.
[
#935
](
https://github.com/CocoaPods/CocoaPods/issues/935
)
*
Documentation sets are now namespaced by pod solving improper attribution.
[
#659
](
https://github.com/CocoaPods/CocoaPods/issues/659
)
## 0.17.2
...
...
lib/cocoapods/generator/documentation.rb
View file @
7b148d39
...
...
@@ -54,8 +54,7 @@ module Pod
#
def
generate
(
install_docset
)
if
`which appledoc`
.
strip
.
empty?
UI
.
warn
"[!] Skipping documentation generation because appledoc can't be found."
,
actions
=
[],
verbose_only
=
true
UI
.
warn
"[!] Skipping documentation generation because appledoc can't be found."
,
[],
true
return
end
...
...
@@ -106,10 +105,10 @@ module Pod
specification
.
summary
||
specification
.
description
||
'Generated by CocoaPods.'
end
# @return [String] The id of the docset.
# @return [String] The id of the docset
, uniq for every Pod
.
#
def
docs_id
'org.cocoapods'
"org.cocoapods.
#{
specification
.
name
.
downcase
}
"
end
#-----------------------------------------------------------------------#
...
...
spec/unit/generator/documentation_spec.rb
View file @
7b148d39
...
...
@@ -25,7 +25,7 @@ module Pod
'--docset-desc'
,
'Chunky bananas!'
,
'--project-company'
,
'Banana Corp and Monkey Boy'
,
'--docset-copyright'
,
'Banana Corp and Monkey Boy'
,
'--company-id'
,
'org.cocoapods'
,
'--company-id'
,
'org.cocoapods
.bananalib
'
,
'--ignore'
,
'.m'
,
'--keep-undocumented-objects'
,
'--keep-undocumented-members'
,
...
...
@@ -47,7 +47,7 @@ module Pod
arguments
.
should
.
include?
(
" --docset-desc 'Chunky bananas!' "
)
arguments
.
should
.
include?
(
" --project-company 'Banana Corp and Monkey Boy' "
)
arguments
.
should
.
include?
(
" --docset-copyright 'Banana Corp and Monkey Boy' "
)
arguments
.
should
.
include?
(
" --company-id org.cocoapods "
)
arguments
.
should
.
include?
(
" --company-id org.cocoapods
.bananalib
"
)
arguments
.
should
.
include?
(
" --ignore .m "
)
arguments
.
should
.
include?
(
" --keep-undocumented-objects "
)
arguments
.
should
.
include?
(
" --keep-undocumented-members "
)
...
...
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