Unverified Commit 64ec0edd authored by Samuel Giddins's avatar Samuel Giddins Committed by GitHub

Merge pull request #7379 from iv-mexx/feature/outdatedColors

Change colorscheme of `pod outdated` from red-yellow-green to red-blue-green
parents e6fd8276 3a0baf71
......@@ -32,6 +32,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
or `FRAMEWORKS_FOLDER_PATH` is set.
[Samuel Giddins](https://github.com/segiddins)
* Change color scheme of `pod outdated` from red-yellow-green to red-blue-green to be more colorblind friendly
[iv-mexx](https://github.com/iv-mexx)
[#7372](https://github.com/CocoaPods/CocoaPods/issues/7372)
##### Bug Fixes
* Clear input/output paths if they exceed an arbitrary limit
......
......@@ -24,13 +24,13 @@ module Pod
else
UI.section 'The color indicates what happens when you run `pod update`' do
UI.puts "#{'<green>'.green}\t\t - Will be updated to the newest version"
UI.puts "#{'<yellow>'.yellow}\t - Will be updated, but not to the newest version because of specified version in Podfile"
UI.puts "#{'<blue>'.blue}\t - Will be updated, but not to the newest version because of specified version in Podfile"
UI.puts "#{'<red>'.red}\t\t - Will not be updated because of specified version in Podfile"
UI.puts ''
end
UI.section 'The following pod updates are available:' do
updates.each do |(name, from_version, matching_version, to_version)|
color = :yellow
color = :blue
if matching_version == to_version
color = :green
elsif from_version == matching_version
......
......@@ -75,16 +75,16 @@ module Pod
UI.output.should.include('BlocksKit 1.0 -> 1.0 (latest version 2.0)')
end
it 'tells the user about outdated pods that can be updated, but not to the latest version in yellow' do
it 'tells the user about outdated pods that can be updated, but not to the latest version in blue' do
pod_name = 'BlocksKit'
current_version_string = mock
current_version_string.expects(:yellow).returns('1.0').once
current_version_string.expects(:blue).returns('1.0').once
current_version = mock
current_version.stubs(:to_s).returns(current_version_string)
next_version_string = mock
next_version_string.expects(:yellow).returns('1.1').once
next_version_string.expects(:blue).returns('1.1').once
next_version = mock
next_version.stubs(:to_s).returns(next_version_string)
......
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