lib/prosopite.rb in prosopite-0.2.0 vs lib/prosopite.rb in prosopite-0.2.1
- old
+ new
@@ -151,10 +151,10 @@
raise NPlusOneQueriesError.new(notifications_str) if @raise
end
def red(str)
- "\e[91m#{str}\e[0m\n"
+ str.split("\n").map { |line| "\e[91m#{line}\e[0m" }.join("\n")
end
def subscribe
@subscribed ||= false
return if @subscribed