lib/sie/document/renderer.rb in sie-4.1.0 vs lib/sie/document/renderer.rb in sie-4.1.1

- old
+ new

@@ -7,11 +7,11 @@ @io = StringIO.new @io.set_encoding(ENCODING) end def add_line(label, *values) - append ["##{ label }", *format_values(values)].join(" ") + append [ "##{label}", *format_values(values) ].join(" ") end def add_array append "{" yield @@ -34,10 +34,10 @@ def format_values(values) values.map { |value| format_value(value) } end def encoded(text) - text.encode(ENCODING, :invalid => :replace, :undef => :replace, :replace => "?") + text.encode(ENCODING, invalid: :replace, undef: :replace, replace: "?") end def format_value(value) case value when Date