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
521c93c2
Commit
521c93c2
authored
Aug 21, 2014
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Resolver] Add specs
parent
891c3fb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
resolver.rb
lib/cocoapods/resolver.rb
+3
-1
resolver_spec.rb
spec/unit/resolver_spec.rb
+9
-0
No files found.
lib/cocoapods/resolver.rb
View file @
521c93c2
...
...
@@ -211,7 +211,9 @@ module Pod
#
def
find_set_from_sources
(
dependency
)
source
=
sources
.
find
{
|
s
|
s
.
search
(
dependency
)
}
source
.
search
(
dependency
)
if
source
source
.
search
(
dependency
)
end
end
# Ensures that a specification is compatible with the platform of a target.
...
...
spec/unit/resolver_spec.rb
View file @
521c93c2
...
...
@@ -101,6 +101,15 @@ module Pod
e
.
message
.
should
.
match
(
/platform .* not compatible/
)
end
it
'raises if unable to find a specification'
do
Specification
.
any_instance
.
stubs
(
:all_dependencies
).
returns
([
Dependency
.
new
(
'Windows'
)])
message
=
should
.
raise
Informative
do
@resolver
.
resolve
end
.
message
message
.
should
.
match
/Unable to find a specification/
message
.
should
.
match
/`Windows` dependent by BlocksKit/
end
it
'does not raise if all dependencies are supported by the platform of the target definition'
do
lambda
{
@resolver
.
resolve
}.
should
.
not
.
raise
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