Skip to content

Commit

Permalink
Closes CocoaPods#2136.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfurrow committed May 21, 2014
1 parent ddfd715 commit 6262f00
Show file tree
Hide file tree
Showing 8 changed files with 194 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions Gemfile.lock
@@ -1,13 +1,21 @@
GIT
remote: https://github.com/CocoaPods/CLAide.git
<<<<<<< HEAD
revision: dc0824a1d7a03dc67b9e3dbfccdd4992241ddc0b
=======
revision: 60c953148e3c09af3e0b6e4cc31e6491d14f97c1
>>>>>>> WIP #2136.
branch: master
specs:
claide (0.6.1)

GIT
remote: https://github.com/CocoaPods/Core.git
<<<<<<< HEAD
revision: 6af534e951a0887e12c77332ce653270047b9341
=======
revision: 6b633001b01001b4a7d9ffe4f4cae1c31279ebab
>>>>>>> WIP #2136.
branch: master
specs:
cocoapods-core (0.33.1)
Expand All @@ -27,14 +35,22 @@ GIT

GIT
remote: https://github.com/CocoaPods/cocoapods-downloader.git
<<<<<<< HEAD
revision: 6b2fbda4342ced96df16a55dfa907636dc366b53
=======
revision: 52f097e4afaab8ff2d4dd1e94861f05f8fbe5616
>>>>>>> WIP #2136.
branch: master
specs:
cocoapods-downloader (0.6.1)

GIT
remote: https://github.com/CocoaPods/cocoapods-plugins.git
<<<<<<< HEAD
revision: f03cfe8c39172ba1dd9b714a91e04e79a68d0711
=======
revision: 3a03deab73c85c36865476d0cbc67bec7e80b5e8
>>>>>>> WIP #2136.
branch: master
specs:
cocoapods-plugins (0.2.0)
Expand All @@ -52,7 +68,11 @@ GIT

GIT
remote: https://github.com/CocoaPods/cocoapods-try.git
<<<<<<< HEAD
revision: 40d716f925e7b9c3f014b93a0a78d7bf94e9a0b3
=======
revision: 0d77b0759eb01ec556e371a6c55b3175e285d574
>>>>>>> WIP #2136.
branch: master
specs:
cocoapods-try (0.3.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods/command/outdated.rb
Expand Up @@ -56,7 +56,7 @@ def updates
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]
Expand Down
59 changes: 59 additions & 0 deletions node_modules/aspell/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions node_modules/aspell/aspell.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions node_modules/aspell/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/cocoapods-integration-specs
Submodule cocoapods-integration-specs updated 72 files
+3 −3 install_add_pod/after/Podfile.lock
+3 −3 install_add_pod/after/Pods/Manifest.lock
+5 −31 install_add_pod/after/execution_output.txt
+2 −2 install_custom_build_configuration/after/Podfile.lock
+2 −2 install_custom_build_configuration/after/Pods/Manifest.lock
+2 −5 install_custom_build_configuration/after/execution_output.txt
+2 −2 install_custom_workspace/after/Podfile.lock
+2 −2 install_custom_workspace/after/Pods/Manifest.lock
+4 −9 install_custom_workspace/after/execution_output.txt
+1 −1 install_external_source/after/Podfile.lock
+1 −1 install_external_source/after/Pods/Manifest.lock
+1 −3 install_external_source/after/execution_output.txt
+1 −1 install_local_source/after/Podfile.lock
+1 −1 install_local_source/after/Pods/Manifest.lock
+1 −1 install_local_source/after/execution_output.txt
+3 −3 install_multiple_targets/after/Podfile.lock
+3 −3 install_multiple_targets/after/Pods/Manifest.lock
+7 −16 install_multiple_targets/after/execution_output.txt
+2 −2 install_new/after/Podfile.lock
+2 −2 install_new/after/Pods/Manifest.lock
+2 −5 install_new/after/execution_output.txt
+2 −2 install_podfile_callbacks/after/Podfile.lock
+2 −2 install_podfile_callbacks/after/Pods/Manifest.lock
+2 −5 install_podfile_callbacks/after/execution_output.txt
+1 −1 install_podspec/after/Podfile.lock
+1 −1 install_podspec/after/Pods/Manifest.lock
+2 −5 install_podspec/after/execution_output.txt
+2 −2 install_remove_pod/after/Podfile.lock
+2 −2 install_remove_pod/after/Pods/Manifest.lock
+2 −24 install_remove_pod/after/execution_output.txt
+14 −0 install_spec_callbacks/after/Podfile.lock
+1 −0 install_spec_callbacks/after/Pods/BuildHeaders/Reachability/Reachability.h
+1 −0 install_spec_callbacks/after/Pods/BuildHeaders/Reachability/TestClass.h
+1 −0 install_spec_callbacks/after/Pods/DependenciesList.txt
+1 −0 install_spec_callbacks/after/Pods/Headers/Reachability/Reachability.h
+1 −0 install_spec_callbacks/after/Pods/Headers/Reachability/TestClass.h
+29 −0 install_spec_callbacks/after/Pods/Local Podspecs/Reachability.podspec
+14 −0 install_spec_callbacks/after/Pods/Manifest.lock
+5 −0 install_spec_callbacks/after/Pods/Pods-Reachability-Private.xcconfig
+5 −0 install_spec_callbacks/after/Pods/Pods-Reachability-dummy.m
+5 −0 install_spec_callbacks/after/Pods/Pods-Reachability-prefix.pch
+1 −0 install_spec_callbacks/after/Pods/Pods-Reachability.xcconfig
+3 −0 install_spec_callbacks/after/Pods/Pods-acknowledgements.markdown
+29 −0 install_spec_callbacks/after/Pods/Pods-acknowledgements.plist
+5 −0 install_spec_callbacks/after/Pods/Pods-dummy.m
+14 −0 install_spec_callbacks/after/Pods/Pods-environment.h
+68 −0 install_spec_callbacks/after/Pods/Pods-resources.sh
+5 −0 install_spec_callbacks/after/Pods/Pods.xcconfig
+211 −0 install_spec_callbacks/after/Pods/Pods.xcodeproj.yaml
+48 −0 install_spec_callbacks/after/Pods/Reachability/README.md
+116 −0 install_spec_callbacks/after/Pods/Reachability/Reachability.h
+512 −0 install_spec_callbacks/after/Pods/Reachability/Reachability.m
+1 −0 install_spec_callbacks/after/Pods/Reachability/TestClass.h
+1 −0 install_spec_callbacks/after/Pods/Reachability/TestClass.m
+114 −0 install_spec_callbacks/after/SampleApp.xcodeproj.yaml
+1 −0 install_spec_callbacks/after/SampleApp.xcworkspace/contents.xcworkspacedata
+79 −0 install_spec_callbacks/after/execution_output.txt
+2 −0 install_spec_callbacks/before/Podfile
+29 −0 install_spec_callbacks/before/Reachability.podspec
+309 −0 install_spec_callbacks/before/SampleApp.xcodeproj/project.pbxproj
+1 −1 install_subspecs/after/Podfile.lock
+1 −1 install_subspecs/after/Pods/Manifest.lock
+2 −6 install_subspecs/after/execution_output.txt
+1 −1 install_subspecs_no_duplicate_prefix/after/Podfile.lock
+1 −1 install_subspecs_no_duplicate_prefix/after/Pods/Manifest.lock
+3 −8 install_subspecs_no_duplicate_prefix/after/execution_output.txt
+2 −2 update_all/after/Podfile.lock
+2 −2 update_all/after/Pods/Manifest.lock
+2 −5 update_all/after/execution_output.txt
+3 −3 update_selected/after/Podfile.lock
+3 −3 update_selected/after/Pods/Manifest.lock
+4 −29 update_selected/after/execution_output.txt
17 changes: 17 additions & 0 deletions spec/functional/command/outdated_spec.rb
Expand Up @@ -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'
Expand Down

0 comments on commit 6262f00

Please sign in to comment.