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
9a3a78e9
Commit
9a3a78e9
authored
Feb 27, 2016
by
Orta
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4957 from CocoaPods/seg-no-master-repo
[SourcesManager] Dont return non-functioning master sources
parents
fdf990bb
5c71810d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
CHANGELOG.md
CHANGELOG.md
+4
-0
sources_manager.rb
lib/cocoapods/sources_manager.rb
+1
-1
sources_manager_spec.rb
spec/unit/sources_manager_spec.rb
+5
-0
No files found.
CHANGELOG.md
View file @
9a3a78e9
...
...
@@ -16,6 +16,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Marius Rackwitz
](
https://github.com/mrackwitz
)
[
#4954
](
https://github.com/CocoaPods/CocoaPods/pull/4954
)
*
Fix saying the
`master`
specs repo exists when it has not been set up.
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#4955
](
https://github.com/CocoaPods/CocoaPods/issues/4955
)
## 1.0.0.beta.4 (2016-02-24)
...
...
lib/cocoapods/sources_manager.rb
View file @
9a3a78e9
...
...
@@ -103,7 +103,7 @@ module Pod
# @return [Array<Source>] The CocoaPods Master Repo source.
#
def
master
sources
([
'master'
])
sources
([
'master'
])
.
select
{
|
s
|
s
.
repo
.
directory?
}
end
# Search the appropriate sources to match the set for the given dependency.
...
...
spec/unit/sources_manager_spec.rb
View file @
9a3a78e9
...
...
@@ -431,6 +431,11 @@ module Pod
SourcesManager
.
master_repo_dir
.
to_s
.
should
.
match
%r{fixtures/spec-repos/master}
end
it
'returns an empty array for master sources when the master repo has not been set up'
do
Pathname
.
any_instance
.
stubs
(
:directory?
).
returns
(
false
)
SourcesManager
.
master
.
should
==
[]
end
it
'returns whether the master repo is functional'
do
SourcesManager
.
master_repo_functional?
.
should
.
be
.
true
config
.
repos_dir
=
SpecHelper
.
temporary_directory
...
...
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