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
e7587d6e
Commit
e7587d6e
authored
Sep 30, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Outdated] Take into account the sources specified in Podfile
parent
68b677eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
CHANGELOG.md
CHANGELOG.md
+5
-0
outdated.rb
lib/cocoapods/command/outdated.rb
+9
-1
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+5
-1
No files found.
CHANGELOG.md
View file @
e7587d6e
...
@@ -22,6 +22,11 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
...
@@ -22,6 +22,11 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[
#2543
](
https://github.com/CocoaPods/CocoaPods/issues/2543
)
[
#2543
](
https://github.com/CocoaPods/CocoaPods/issues/2543
)
[
cocoapods-trunk#28
](
https://github.com/CocoaPods/cocoapods-trunk/issues/28
)
[
cocoapods-trunk#28
](
https://github.com/CocoaPods/cocoapods-trunk/issues/28
)
*
Takes into account the sources specified in
`Podfile`
running
`pod outdated`
.
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#2553
](
https://github.com/CocoaPods/CocoaPods/issues/2553
)
## 0.34.1
## 0.34.1
...
...
lib/cocoapods/command/outdated.rb
View file @
e7587d6e
...
@@ -49,6 +49,13 @@ module Pod
...
@@ -49,6 +49,13 @@ module Pod
private
private
def
analyzer
@analyzer
||=
begin
verify_podfile_exists!
Installer
::
Analyzer
.
new
(
config
.
sandbox
,
config
.
podfile
,
config
.
lockfile
)
end
end
def
updates
def
updates
@updates
||=
begin
@updates
||=
begin
spec_sets
.
map
do
|
set
|
spec_sets
.
map
do
|
set
|
...
@@ -75,8 +82,9 @@ module Pod
...
@@ -75,8 +82,9 @@ module Pod
def
spec_sets
def
spec_sets
@spec_sets
||=
begin
@spec_sets
||=
begin
aggregate
=
Source
::
Aggregate
.
new
(
analyzer
.
sources
.
map
(
&
:name
))
installed_pods
.
map
do
|
pod_name
|
installed_pods
.
map
do
|
pod_name
|
SourcesManager
.
search
(
Dependency
.
new
(
pod_name
))
aggregate
.
search
(
Dependency
.
new
(
pod_name
))
end
.
compact
.
uniq
end
.
compact
.
uniq
end
end
end
end
...
...
lib/cocoapods/installer/analyzer.rb
View file @
e7587d6e
...
@@ -359,7 +359,7 @@ module Pod
...
@@ -359,7 +359,7 @@ module Pod
#-----------------------------------------------------------------------#
#-----------------------------------------------------------------------#
p
rivate
p
ublic
# Returns the sources used to query for specifications
# Returns the sources used to query for specifications
#
#
...
@@ -388,6 +388,10 @@ module Pod
...
@@ -388,6 +388,10 @@ module Pod
end
end
end
end
#-----------------------------------------------------------------------#
private
# @!group Analysis sub-steps
# @!group Analysis sub-steps
# Returns the path of the user project that the {TargetDefinition}
# Returns the path of the user project that the {TargetDefinition}
...
...
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