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
621a85fb
Commit
621a85fb
authored
Mar 29, 2014
by
Eloy Durán
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/lrz/CocoaPods
into lrz-master
parents
db862bf5
278b097b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
spec.rb
lib/cocoapods/command/spec.rb
+9
-4
No files found.
lib/cocoapods/command/spec.rb
View file @
621a85fb
...
@@ -370,15 +370,20 @@ module Pod
...
@@ -370,15 +370,20 @@ module Pod
def
spec_and_source_from_set
(
set
)
def
spec_and_source_from_set
(
set
)
sources
=
set
.
sources
sources
=
set
.
sources
best_source
=
sources
.
first
best_source
=
best_version
=
nil
best_version
=
best_source
.
versions
(
set
.
name
).
first
sources
.
each
do
|
source
|
sources
.
each
do
|
source
|
version
=
source
.
versions
(
set
.
name
).
first
versions
=
source
.
versions
(
set
.
name
)
if
version
>
best_version
versions
.
each
do
|
version
|
if
!
best_version
or
version
>
best_version
best_source
=
source
best_source
=
source
best_version
=
version
best_version
=
version
end
end
end
end
end
if
!
best_source
or
!
best_version
raise
Informative
,
"Unable to locate highest known specification for `
#{
set
.
name
}
'"
end
return
best_source
.
specification
(
set
.
name
,
best_version
),
best_source
return
best_source
.
specification
(
set
.
name
,
best_version
),
best_source
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