CocoaPods is being under constant development, and as the zero as major version number suggests, it is still in unstable status. So you should only be mildly surprised if calling the pod command outputs that a newer version is available. Here are some tricks for updating.
So when do for example following a pod repo update command:
You can check your current version:
pod --version 0.28.0
Since CocoaPods is a ruby gem you can update it, and all other installed gems, just by:
sudo gem update
There will probably lots of loading and installing, but at the end you should see:
... Fetching: cocoapods-core-0.28.0.gem (100%) Successfully installed cocoapods-core-0.28.0 Fetching: cocoapods-0.28.0.gem (100%) CHANGELOG: ## 0.28.0 [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.27.1...0.28.0) • [CocoaPods-core](https://github.com/CocoaPods/Core/compare/0.27.1...0.28.0) • [CLAide](https://github.com/CocoaPods/CLAide/compare/0.3.2...0.4.0) ...
In general this is all it should take. Users on Mavericks might need something extra in case they see errors coming out of the above or gem update refusing to update anything.
On OS X 10.9 you might have to install the Xcode command line developer tools, those are a prerequisite for the whole Ruby shebang to work.
The fastest method to install them, thanks to yanzv for pointing this out.
Curiously I didn’t need this on my iMac, but I did on my MacBook Air. Both are running Mavericks.