lib/departure/logger.rb in departure-4.0.1 vs lib/departure/logger.rb in departure-5.0.0

- old
+ new

@@ -2,21 +2,20 @@ # Copies the ActiveRecord::Migration #say and #write plus a new # #write_no_newline to log the migration's status. It's not possible to reuse # the from ActiveRecord::Migration because the migration's instance can't be # seen from the connection adapter. class Logger - def initialize(sanitizers) @sanitizers = sanitizers end # Outputs the message through the stdout, following the # ActiveRecord::Migration log format # # @param message [String] # @param subitem [Boolean] whether to show message as a nested log item def say(message, subitem = false) - write "#{subitem ? " ->" : "--"} #{message}" + write "#{subitem ? ' ->' : '--'} #{message}" end # Outputs the text through the stdout adding a new line at the end # # @param text [String]