From 0963398ee0a9a18946af443a9cd4e9a6fc0f9bc0 Mon Sep 17 00:00:00 2001 From: Ryan Fitzgerald Date: Mon, 5 May 2014 00:18:48 -0700 Subject: [PATCH] Remove mention of win32console from ansicon message Per the comment above this message, it should only appear for people who can't install win32console anyway, so mentioning win32console is pointless. --- lib/pry/pry_class.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb index 6b2156ef3..e9e97b92c 100644 --- a/lib/pry/pry_class.rb +++ b/lib/pry/pry_class.rb @@ -105,12 +105,11 @@ def self.load_win32console # only fail on jruby (where win32console doesn't work). # Instead we'll recommend ansicon, which does. rescue LoadError - warn <<-WARNING unless Pry.config.windows_console_warning == false -Can not require win32console. -For a better Pry experience on Windows, please use ansicon: https://github.com/adoxa/ansicon -(win32console has been deprecated). -If you use alternative to win32console or ansicon and want not to display this warning, you can -add "Pry.config.windows_console_warning=false" to your .pryrc. + warn <<-WARNING if Pry.config.windows_console_warning +For a better Pry experience on Windows, please use ansicon: + https://github.com/adoxa/ansicon +If you use an alternative to ansicon and don't want to see this warning again, +you can add "Pry.config.windows_console_warning = false" to your .pryrc. WARNING end end