Commit bd49d078 authored by Hugo Tunius's avatar Hugo Tunius

[Sourcemanager] Include a recommendation to user that highlighs the

importance of updating to the latest version when one is available
parent 8ae12cad
...@@ -14,6 +14,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -14,6 +14,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements ##### Enhancements
* The notice about a new version being available will now include our
recommendation of using the latest stable version
[Hugo Tunius](https://github.com/k0nserv)
* New commands `pod cache list` and `pod cache clean` allows you to see the * New commands `pod cache list` and `pod cache clean` allows you to see the
contents of the cache and clean it. contents of the cache and clean it.
[Olivier Halligon](https://github.com/AliSoftware) [Olivier Halligon](https://github.com/AliSoftware)
......
...@@ -271,6 +271,8 @@ module Pod ...@@ -271,6 +271,8 @@ module Pod
"CocoaPods #{versions['last']} is available.".green, "CocoaPods #{versions['last']} is available.".green,
"To update use: `#{install_message}`".green, "To update use: `#{install_message}`".green,
("[!] This is a test version we'd love you to try.".yellow if rc), ("[!] This is a test version we'd love you to try.".yellow if rc),
("Until we reach version 1.0 the features of CocoaPods can and will change.\n" \
'We strongly recommend that you use the latest version at all times.'.yellow unless rc),
'', '',
'For more information see http://blog.cocoapods.org'.green, 'For more information see http://blog.cocoapods.org'.green,
'and the CHANGELOG for this version http://git.io/BaH8pQ.'.green, 'and the CHANGELOG for this version http://git.io/BaH8pQ.'.green,
......
...@@ -268,6 +268,12 @@ module Pod ...@@ -268,6 +268,12 @@ module Pod
UI.output.should.match /CocoaPods 999.0 is available/ UI.output.should.match /CocoaPods 999.0 is available/
end end
it 'recommends the user to use the latest stable version' do
SourcesManager.stubs(:version_information).returns('last' => '999.0')
SourcesManager.check_version_information(temporary_directory)
UI.output.should.match /We strongly recommend that you use the/
end
it 'skips the update message if the user disabled the notification' do it 'skips the update message if the user disabled the notification' do
config.new_version_message = false config.new_version_message = false
SourcesManager.stubs(:version_information).returns('last' => '999.0') SourcesManager.stubs(:version_information).returns('last' => '999.0')
......
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