lib/thor/shell/basic.rb in thor-0.19.0 vs lib/thor/shell/basic.rb in thor-0.19.1

- old
+ new

@@ -76,10 +76,10 @@ # ==== Example # say("I know you knew that.") # def say(message = "", color = nil, force_new_line = (message.to_s !~ /( |\t)\Z/)) buffer = prepare_message(message, *color) - buffer << "\n" if force_new_line && !message.end_with?("\n") + buffer << "\n" if force_new_line && !message.to_s.end_with?("\n") stdout.print(buffer) stdout.flush end