Navigation Menu

Skip to content

Commit

Permalink
[Outdated] Fixed crash.
Browse files Browse the repository at this point in the history
Closes 568.
  • Loading branch information
fabiopelosin committed Oct 4, 2012
1 parent 8e72cbe commit 9181672
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,8 @@
[#568](https://github.com/CocoaPods/CocoaPods/issues/568)
- Fixed a crash related to the RubyGems version informative.
[#570](https://github.com/CocoaPods/CocoaPods/issues/570)
- Fixed a crash for `pod outdated`.
[#567](https://github.com/CocoaPods/CocoaPods/issues/567)

## 0.15.0

Expand Down
4 changes: 3 additions & 1 deletion lib/cocoapods/command/outdated.rb
Expand Up @@ -22,14 +22,16 @@ def initialize(argv)
def run
verify_podfile_exists!
verify_lockfile_exists!
update_spec_repos_if_necessary!

sandbox = Sandbox.new(config.project_pods_root)
resolver = Resolver.new(config.podfile, config.lockfile, sandbox)
resolver.update_mode = true
resolver.update_external_specs = false
resolver.resolve

#TODO: the command report new dependencies (added to by updated ones)
# as updates.

names = resolver.pods_to_install - resolver.pods_from_external_sources
specs = resolver.specs.select do |spec|
names.include?(spec.name) && !spec.version.head?
Expand Down

0 comments on commit 9181672

Please sign in to comment.