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
a41c5ef9
Commit
a41c5ef9
authored
Apr 08, 2016
by
Orta Therox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in resolver improvements, and fix tests
parent
2f82437a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
resolver.rb
lib/cocoapods/resolver.rb
+1
-1
resolver_spec.rb
spec/unit/resolver_spec.rb
+7
-5
No files found.
lib/cocoapods/resolver.rb
View file @
a41c5ef9
...
@@ -423,7 +423,7 @@ module Pod
...
@@ -423,7 +423,7 @@ module Pod
# There are no existing specification inside any of the spec repos with given requirements.
# There are no existing specification inside any of the spec repos with given requirements.
message
<<
"
\n\n
None of your spec sources contain a spec satisfying the dependency: `
#{
r
}
`."
\
message
<<
"
\n\n
None of your spec sources contain a spec satisfying the dependency: `
#{
r
}
`."
\
"
\n\n
You have either:"
\
"
\n\n
You have either:"
\
"
\n
* out-of-date source repos which you can update with `pod repo update`."
"
\n
* out-of-date source repos which you can update with `pod repo update`."
\
"
\n
* mistyped the name or version."
\
"
\n
* mistyped the name or version."
\
"
\n
* not added the source repo that hosts the Podspec to your Podfile."
\
"
\n
* not added the source repo that hosts the Podspec to your Podfile."
\
"
\n\n
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default."
"
\n\n
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default."
...
...
spec/unit/resolver_spec.rb
View file @
a41c5ef9
...
@@ -361,10 +361,12 @@ module Pod
...
@@ -361,10 +361,12 @@ module Pod
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
.
message
.
should
.
match
(
/Unable to satisfy the following requirements/
)
e
.
message
.
should
.
match
(
/Unable to satisfy the following requirements/
)
e
.
message
.
should
.
match
(
/`AFNetworking \(= 3.0.1\)` required by `Podfile`/
)
e
.
message
.
should
.
match
(
/`AFNetworking \(= 3.0.1\)` required by `Podfile`/
)
e
.
message
.
should
.
match
(
/None of the spec sources contain a spec satisfying the `AFNetworking \(= 3.0.1\)` dependency./
)
e
.
message
.
should
.
match
(
/None of your spec sources contain a spec satisfying the dependency: `AFNetworking \(= 3.0.1\)`./
)
e
.
message
.
should
.
match
(
/You have either; mistyped the name or version,/
)
e
.
message
.
should
.
match
(
/You have either:/
)
e
.
message
.
should
.
match
(
/ not added the source repo that hosts the Podspec to your Podfile,/
)
e
.
message
.
should
.
match
(
/ * out-of-date source repos which you can update with `pod repo update`/
)
e
.
message
.
should
.
match
(
/ or not got the latest versions of your source repos./
)
e
.
message
.
should
.
match
(
/ * not added the source repo that hosts the Podspec to your Podfile./
)
e
.
message
.
should
.
match
(
/ * out-of-date source repos which you can update with `pod repo update`/
)
e
.
message
.
should
.
match
(
/Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default./
)
end
end
it
'takes into account locked dependencies'
do
it
'takes into account locked dependencies'
do
...
@@ -533,7 +535,7 @@ module Pod
...
@@ -533,7 +535,7 @@ module Pod
sources
=
SourcesManager
.
sources
(
%w(master)
)
sources
=
SourcesManager
.
sources
(
%w(master)
)
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
sources
)
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
sources
)
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
.
message
.
should
.
match
(
/None of
the spec sources contain a spec satisfying
/
)
e
.
message
.
should
.
match
(
/None of
your spec sources contain a spec
/
)
e
.
message
.
should
.
match
(
/JSONKit/
)
e
.
message
.
should
.
match
(
/JSONKit/
)
e
.
message
.
should
.
match
(
/\= 1.5pre/
)
e
.
message
.
should
.
match
(
/\= 1.5pre/
)
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