Commit e7587d6e authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Outdated] Take into account the sources specified in Podfile

parent 68b677eb
......@@ -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)
[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
......
......@@ -49,6 +49,13 @@ module Pod
private
def analyzer
@analyzer ||= begin
verify_podfile_exists!
Installer::Analyzer.new(config.sandbox, config.podfile, config.lockfile)
end
end
def updates
@updates ||= begin
spec_sets.map do |set|
......@@ -75,8 +82,9 @@ module Pod
def spec_sets
@spec_sets ||= begin
aggregate = Source::Aggregate.new(analyzer.sources.map(&:name))
installed_pods.map do |pod_name|
SourcesManager.search(Dependency.new(pod_name))
aggregate.search(Dependency.new(pod_name))
end.compact.uniq
end
end
......
......@@ -359,7 +359,7 @@ module Pod
#-----------------------------------------------------------------------#
private
public
# Returns the sources used to query for specifications
#
......@@ -388,6 +388,10 @@ module Pod
end
end
#-----------------------------------------------------------------------#
private
# @!group Analysis sub-steps
# Returns the path of the user project that the {TargetDefinition}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment