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
33241a36
Commit
33241a36
authored
Mar 18, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't generate docs during any of the unrelated specs in the integration spec.
parent
3e7fc5f1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
docs_generator.rb
lib/cocoapods/docs_generator.rb
+0
-2
integration_spec.rb
spec/integration_spec.rb
+14
-6
No files found.
lib/cocoapods/docs_generator.rb
View file @
33241a36
...
...
@@ -92,8 +92,6 @@ module Pod
arguments
+=
options
arguments
+=
[
'--print-settings'
]
if
config
.
verbose?
arguments
+=
files
.
map
(
&
:to_s
)
#p arguments
puts
"appledoc
#{
arguments
.
join
(
"' '"
)
}
"
Open3
.
popen3
(
'appledoc'
,
*
arguments
)
do
|
i
,
o
,
e
|
if
config
.
verbose?
puts
o
.
read
.
chomp
...
...
spec/integration_spec.rb
View file @
33241a36
...
...
@@ -31,10 +31,7 @@ else
describe
"A full (integration spec) installation for platform `
#{
platform
}
'"
do
extend
SpecHelper
::
TemporaryDirectory
before
do
fixture
(
'spec-repos/master'
)
# ensure the archive is unpacked
@config_before
=
config
def
create_config!
Pod
::
Config
.
instance
=
nil
config
.
silent
=
true
config
.
repos_dir
=
fixture
(
'spec-repos'
)
...
...
@@ -42,6 +39,14 @@ else
config
.
doc_install
=
false
end
before
do
fixture
(
'spec-repos/master'
)
# ensure the archive is unpacked
@config_before
=
config
create_config!
config
.
doc
=
false
end
after
do
Pod
::
Config
.
instance
=
@config_before
end
...
...
@@ -131,6 +136,8 @@ else
if
Pod
::
DocsGenerator
.
appledoc_installed?
it
"generates documentation of all pods by default"
do
create_config!
podfile
=
Pod
::
Podfile
.
new
do
self
.
platform
:ios
dependency
'JSONKit'
,
'1.4'
...
...
@@ -140,9 +147,10 @@ else
installer
=
SpecHelper
::
Installer
.
new
(
podfile
)
installer
.
install!
File
.
directory?
(
config
.
project_pods_root
+
'Documentation/JSONKit/html/'
)
doc
=
(
config
.
project_pods_root
+
'Documentation/JSONKit/html/index.html'
).
read
doc
.
should
.
include?
(
'<title>JSONKit (1.4) Reference</title>'
)
doc
=
(
config
.
project_pods_root
+
'Documentation/SSToolkit/html/index.html'
).
read
doc
.
should
.
include?
(
'
SSToolkit
'
)
doc
.
should
.
include?
(
'
<title>SSToolkit (0.1.2) Reference</title>
'
)
end
else
puts
"[!] Skipping documentation generation specs, because appledoc can't be found."
...
...
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