lib/lita/adapters/shell.rb in lita-4.0.4 vs lib/lita/adapters/shell.rb in lita-4.1.0
- old
+ new
@@ -22,10 +22,10 @@
# shell environment.
# @param strings [Array<String>] An array of strings to output.
# @return [void]
def send_messages(_target, strings)
strings = Array(strings)
- strings.reject! { |string| string.empty? }
+ strings.reject!(&:empty?)
unless RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ || !$stdout.tty?
strings.map! { |string| "\e[32m#{string}\e[0m" }
end
puts strings
end