Commit 1fcac040 authored by Fabio Pelosin's avatar Fabio Pelosin

[Command] Support CLAide version logic

parent 2e3bf3d7
...@@ -6,8 +6,17 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -6,8 +6,17 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
##### Enhancements ##### Enhancements
* The extremely meta `cocoaPods-plugin` is now installed by default providing * The `--version` flag is now only supported for the root `pod` command. If
information about the available and the installed plug-ins. used in conjunction with the `--verbose` flag the version of the detected
plugins will be printed as well.
[Fabio Pelosin][irrationalfab]
[CLAide#13](https://github.com/CocoaPods/CLAide/issues/13)
[CLAide#14](https://github.com/CocoaPods/CLAide/issues/14)
* The extremely meta `cocoaPods-plugins` is now installed by default providing
information about the available and the installed plug-ins.
[David Grandinetti](https://github.com/dbgrandi)
[Olivier Halligon](https://github.com/AliSoftware)
[Fabio Pelosin][irrationalfab] [Fabio Pelosin][irrationalfab]
[#2092](https://github.com/CocoaPods/CocoaPods/issues/2092) [#2092](https://github.com/CocoaPods/CocoaPods/issues/2092)
...@@ -15,8 +24,8 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -15,8 +24,8 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
docset_url in podspecs we while linting a specification. docset_url in podspecs we while linting a specification.
[Kyle Fuller](https://github.com/kylef) [Kyle Fuller](https://github.com/kylef)
[#2025](https://github.com/CocoaPods/CocoaPods/issues/2025) [#2025](https://github.com/CocoaPods/CocoaPods/issues/2025)
* Print current version when the repo/lockfile requires a higher version * Print current version when the repo/lockfile requires a higher version.
[Samuel E. Giddins](https://github.com/segiddins) [Samuel E. Giddins](https://github.com/segiddins)
[#2049](https://github.com/CocoaPods/CocoaPods/issues/2049) [#2049](https://github.com/CocoaPods/CocoaPods/issues/2049)
...@@ -27,7 +36,7 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -27,7 +36,7 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
##### Bug Fixes ##### Bug Fixes
* Show the actual executable when external commands fail. * Show the actual executable when external commands fail.
[Boris Bügling][neonichu] [Boris Bügling][neonichu]
[#2102](https://github.com/CocoaPods/CocoaPods/issues/2102) [#2102](https://github.com/CocoaPods/CocoaPods/issues/2102)
...@@ -36,11 +45,12 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -36,11 +45,12 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[Fabio Pelosin][irrationalfab] [Fabio Pelosin][irrationalfab]
[Xcodeproj#105](https://github.com/CocoaPods/Xcodeproj/pull/150) [Xcodeproj#105](https://github.com/CocoaPods/Xcodeproj/pull/150)
* Show a helpful error message when reading version information with merge conflict * Show a helpful error message when reading version information with merge
conflict.
[Samuel E. Giddins][segiddins] [Samuel E. Giddins][segiddins]
[#1853](https://github.com/CocoaPods/CocoaPods/issues/1853) [#1853](https://github.com/CocoaPods/CocoaPods/issues/1853)
* Show deprecated specs when invoking `pod outdated` * Show deprecated specs when invoking `pod outdated`.
[Samuel E. Giddins](https://github.com/segiddins) [Samuel E. Giddins](https://github.com/segiddins)
[#2003](https://github.com/CocoaPods/CocoaPods/issues/2003) [#2003](https://github.com/CocoaPods/CocoaPods/issues/2003)
......
GIT GIT
remote: https://github.com/CocoaPods/CLAide.git remote: https://github.com/CocoaPods/CLAide.git
revision: d14c7622e87fb19e3158656b2a459c284fbe4015 revision: fbbb2a35e92f03ac034175daa6d8e34cd8426852
branch: master branch: master
specs: specs:
claide (0.5.0) claide (0.5.0)
GIT GIT
remote: https://github.com/CocoaPods/Core.git remote: https://github.com/CocoaPods/Core.git
revision: bb05ef7ba950275b2fcdb5199ee297c4e5a641db revision: fa565c17339bf624dc309e6d8cd81894f3865868
branch: master branch: master
specs: specs:
cocoapods-core (0.32.1) cocoapods-core (0.32.1)
......
...@@ -23,13 +23,13 @@ module Pod ...@@ -23,13 +23,13 @@ module Pod
self.abstract_command = true self.abstract_command = true
self.command = 'pod' self.command = 'pod'
self.version = VERSION
self.description = 'CocoaPods, the Objective-C library package manager.' self.description = 'CocoaPods, the Objective-C library package manager.'
self.plugin_prefix = 'cocoapods' self.plugin_prefix = 'cocoapods'
def self.options def self.options
[ [
['--silent', 'Show nothing'], ['--silent', 'Show nothing'],
['--version', 'Show the version of CocoaPods'],
].concat(super) ].concat(super)
end end
...@@ -43,13 +43,6 @@ module Pod ...@@ -43,13 +43,6 @@ module Pod
def self.run(argv) def self.run(argv)
help! "You cannot run CocoaPods as root." if Process.uid == 0 help! "You cannot run CocoaPods as root." if Process.uid == 0
argv = CLAide::ARGV.new(argv)
if argv.flag?('version')
UI.puts VERSION
exit 0
end
super(argv) super(argv)
UI.print_warnings UI.print_warnings
end end
......
...@@ -5,8 +5,7 @@ module Pod ...@@ -5,8 +5,7 @@ module Pod
extend SpecHelper::Command extend SpecHelper::Command
it "displays the current version number with the --version flag" do it "displays the current version number with the --version flag" do
lambda { Pod::Command.run(['--version']) }.should.raise SystemExit Pod::Command.version.should == VERSION
UI.output.should.include VERSION
end end
it "reports the location of the AFNetworking spec" do it "reports the location of the AFNetworking spec" do
......
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