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
e3390c0e
Commit
e3390c0e
authored
Mar 07, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Sandbox] Return the documentation dir
parent
44c7794e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
documentation.rb
lib/cocoapods/generator/documentation.rb
+1
-1
sandbox.rb
lib/cocoapods/sandbox.rb
+6
-0
sandbox_spec.rb
spec/unit/sandbox_spec.rb
+3
-0
No files found.
lib/cocoapods/generator/documentation.rb
View file @
e3390c0e
...
@@ -192,7 +192,7 @@ module Pod
...
@@ -192,7 +192,7 @@ module Pod
# !@group Private Helpers
# !@group Private Helpers
def
target_path
def
target_path
sandbox
.
root
+
'Documentation'
+
specification
.
name
sandbox
.
documentation_dir
+
specification
.
name
end
end
def
pod_root
def
pod_root
...
...
lib/cocoapods/sandbox.rb
View file @
e3390c0e
...
@@ -162,6 +162,12 @@ module Pod
...
@@ -162,6 +162,12 @@ module Pod
end
end
end
end
# @return [Pathname] the directory where to store the documentation.
#
def
documentation_dir
root
+
'Documentation'
end
#-------------------------------------------------------------------------#
#-------------------------------------------------------------------------#
public
public
...
...
spec/unit/sandbox_spec.rb
View file @
e3390c0e
...
@@ -76,6 +76,9 @@ module Pod
...
@@ -76,6 +76,9 @@ module Pod
@sandbox
.
pod_dir
(
'JSONKit'
).
should
==
temporary_directory
+
'Sandbox/JSONKit'
@sandbox
.
pod_dir
(
'JSONKit'
).
should
==
temporary_directory
+
'Sandbox/JSONKit'
end
end
it
"returns the directory where to store the documentation"
do
@sandbox
.
documentation_dir
.
should
==
temporary_directory
+
'Sandbox/Documentation'
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