lib/hu/common.rb in hu-1.5.13 vs lib/hu/common.rb in hu-1.5.16

- old
+ new

@@ -17,10 +17,10 @@ Config.load_and_set_settings Hu::CONFIG_FILE begin unless ENV['SKIP_VERSION_CHECK'] version_info = BB::Gem.version_info(check_interval: 900) - unless version_info[:installed_is_latest] == true + if version_info[:gem_update_available] puts puts "\e[33;1mWoops! \e[0mA newer version of #{version_info[:gem_name]} is available." puts " Please type '\e[1mgem install #{version_info[:gem_name]}\e[0m' to upgrade (v#{version_info[:gem_installed_version]} -> v#{version_info[:gem_latest_version]})." sleep 1 puts