Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfurrow committed May 21, 2014
1 parent 54a496d commit b6bb1c5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
GIT
remote: https://github.com/CocoaPods/CLAide.git
revision: fbbb2a35e92f03ac034175daa6d8e34cd8426852
revision: 60c953148e3c09af3e0b6e4cc31e6491d14f97c1
branch: master
specs:
claide (0.5.0)

GIT
remote: https://github.com/CocoaPods/Core.git
revision: fa565c17339bf624dc309e6d8cd81894f3865868
revision: 6b633001b01001b4a7d9ffe4f4cae1c31279ebab
branch: master
specs:
cocoapods-core (0.32.1)
Expand All @@ -27,22 +27,22 @@ GIT

GIT
remote: https://github.com/CocoaPods/cocoapods-downloader.git
revision: 224c8a191ef6b98d538d6228b0549d05194944ee
revision: 52f097e4afaab8ff2d4dd1e94861f05f8fbe5616
branch: master
specs:
cocoapods-downloader (0.5.0)

GIT
remote: https://github.com/CocoaPods/cocoapods-plugins.git
revision: ce2d30ff9bd4570708e51a2bdac4d8de60fe9bfc
revision: 3a03deab73c85c36865476d0cbc67bec7e80b5e8
branch: master
specs:
cocoapods-plugins (0.1.1)
nap

GIT
remote: https://github.com/CocoaPods/cocoapods-try.git
revision: 0dff2c697f487bf1b3b3ecf21deefa99020b948e
revision: 0d77b0759eb01ec556e371a6c55b3175e285d574
branch: master
specs:
cocoapods-try (0.2.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods/command/outdated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def updates
source_version = set.versions.first
pod_name = spec.name
lockfile_version = lockfile.version(pod_name)
if source_version > lockfile_version
if source_version > lockfile_version && !spec.subspec?
[pod_name, lockfile_version, source_version]
else
nil
Expand Down
10 changes: 10 additions & 0 deletions spec/functional/command/outdated_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ 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')
sources = [spec, subspec]
mockedSet = Pod::Specification::Set.new('Parent', sources)
Command::Outdated.any_instance.stubs(:spec_sets).returns(mockedSet)
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'
Expand Down

0 comments on commit b6bb1c5

Please sign in to comment.