lib/chatterbot/ui.rb in chatterbot-1.0.2 vs lib/chatterbot/ui.rb in chatterbot-2.0.0.pre

- old
+ new

@@ -2,26 +2,33 @@ # # routines for outputting setup instructions # module UI - + # Where to send users who need to get API keys API_SIGNUP_URL = "https://twitter.com/apps/new" + #:nocov: def red(str) puts str.colorize(:red) end + #:nocov: def green(str) puts str.colorize(:green) end + + # print out a deprecation notice + def deprecated(msg, src) + red(msg) + green("Called from " + src) + end # # print out a message about getting a PIN from twitter, then output # the URL the user needs to visit to authorize # - #:nocov: def get_oauth_verifier green "****************************************" green "****************************************" green "**** BOT AUTH TIME! ****" green "****************************************"