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 ...@@ -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
......
...@@ -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
......
...@@ -359,7 +359,7 @@ module Pod ...@@ -359,7 +359,7 @@ module Pod
#-----------------------------------------------------------------------# #-----------------------------------------------------------------------#
private public
# 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}
......
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