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
921fcee3
Commit
921fcee3
authored
Jul 28, 2013
by
Ian Ynda-Hummel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move repos_dir to .cocoapods/repos
parent
81d75616
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
config.rb
lib/cocoapods/config.rb
+1
-1
config_spec.rb
spec/unit/config_spec.rb
+1
-5
No files found.
lib/cocoapods/config.rb
View file @
921fcee3
...
...
@@ -135,7 +135,7 @@ module Pod
# @return [Pathname] the directory where the CocoaPods sources are stored.
#
def
repos_dir
@repos_dir
||=
Pathname
.
new
(
ENV
[
'CP_REPOS_DIR'
]
||
"~/.cocoapods"
).
expand_path
@repos_dir
||=
Pathname
.
new
(
ENV
[
'CP_REPOS_DIR'
]
||
"~/.cocoapods
/repos
"
).
expand_path
end
attr_writer
:repos_dir
...
...
spec/unit/config_spec.rb
View file @
921fcee3
...
...
@@ -16,11 +16,7 @@ module Pod
end
it
"returns the path to the spec-repos dir"
do
@sut
.
repos_dir
.
should
==
Pathname
.
new
(
"~/.cocoapods"
).
expand_path
end
it
"returns the path to the spec-repos dir"
do
@sut
.
repos_dir
.
should
==
Pathname
.
new
(
"~/.cocoapods"
).
expand_path
@sut
.
repos_dir
.
should
==
Pathname
.
new
(
"~/.cocoapods/repos"
).
expand_path
end
it
"allows to specify whether the aggressive cache should be used with an environment variable"
do
...
...
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