lib/json-write-stream.rb in json-write-stream-1.1.0 vs lib/json-write-stream.rb in json-write-stream-1.2.0

- old
+ new

@@ -4,9 +4,10 @@ require 'json-write-stream/yielding' require 'json-write-stream/stateful' class JsonWriteStream DEFAULT_ENCODING = Encoding::UTF_8 + DEFAULT_OPTIONS = { before: '', between: '' }.freeze class << self def from_stream(stream, encoding = DEFAULT_ENCODING) stream.set_encoding(encoding)