Commit 446771ef authored by Ash Furrow's avatar Ash Furrow

Closes #2136.

parent ddfd715f
......@@ -2,6 +2,13 @@
To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides/installing_cocoapods.html).
## Master
* Fixed `pod outdated` to not include subspecs.
[Ash Furrow](ashfurrow]
[#2136](https://github.com/CocoaPods/CocoaPods/issues/2136)
## 0.33.1
##### Bug Fixes
......
......@@ -56,7 +56,7 @@ module Pod
spec_sets.map do |set|
spec = set.specification
source_version = set.versions.first
pod_name = spec.name
pod_name = spec.root.name
lockfile_version = lockfile.version(pod_name)
if source_version > lockfile_version
[pod_name, lockfile_version, source_version]
......
......@@ -18,6 +18,23 @@ module Pod
end
end
it 'tells the user only about podspecs that have no parent' do
spec = Specification.new(nil, 'BlocksKit')
subspec = Specification.new(spec, 'UIKit')
set = mock
set.stubs(:versions).returns(['2.0'])
set.stubs(:specification).returns(spec)
subset = mock
subset.stubs(:specification).returns(subspec)
subset.stubs(:versions).returns(['2.0'])
version = mock
version.stubs(:version).returns('1.0')
Command::Outdated.any_instance.stubs(:spec_sets).returns([set, subset])
Command::Outdated.any_instance.stubs(:lockfile).returns(version)
run_command('outdated', '--no-repo-update')
UI.output.should.not.include('UIKit')
end
it 'tells the user about deprecated pods' do
spec = Specification.new(nil, 'AFNetworking')
spec.deprecated_in_favor_of = 'BlocksKit'
......
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