lib/notifier/adapters/gntp.rb in notifier-0.4.0 vs lib/notifier/adapters/gntp.rb in notifier-0.4.1

- old
+ new

@@ -20,9 +20,13 @@ def line_break(number = 1) "\r\n" * number end def write(*contents) + contents.map! do |content| + content.force_encoding("utf-8") rescue content + end + socket = TCPSocket.open(host, port) message = [*contents, line_break(2)].join(line_break) socket.write(message) "".tap do |response|