lib/notifier/osd_cat.rb in notifier-0.5.0 vs lib/notifier/osd_cat.rb in notifier-0.5.1

- old
+ new

@@ -5,11 +5,11 @@ def supported? Notifier.os?(/(linux|freebsd)/) && `which osd_cat > /dev/null` && $? == 0 end def notify(options) - color = options.fetch(:color, "white") + color = options.fetch(:color, "white").to_s command = [ "osd_cat", "--shadow", "0", "--colour", color, @@ -24,9 +24,9 @@ Thread.new do Open3.popen3(*command) do |stdin, stdout, stderr| stdin.puts options[:message] stdin.close end - end + end.join end end end