We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Not sure this is a bug, but at least it is a difference between version 1.6.1 and 1.7.0. I figured you guys may want to know.
So if you run the following code, it will output empty array:
gem 'msgpack', '= 1.7.0' require 'msgpack' require 'stringio' def test_string() s = StringIO.new(String.new) pk = MessagePack::Packer.new(s) pk.write('hello').write('world').flush s.string end result = [] unpacker = MessagePack::Unpacker.new unpacker.feed("") unpacker.feed(test_string) unpacker.each do |row| result << row end puts "#{result}"
While changing the first line to gem 'msgpack', '= 1.6.1'. The output will be ["hello", "world"]
gem 'msgpack', '= 1.6.1'
["hello", "world"]
The text was updated successfully, but these errors were encountered:
Thanks, that indeed look like a regression, I'll fix it soon, shouldn't be too hard.
Sorry, something went wrong.
Ignore empty strings when feeding buffers
a536ba6
Fix: msgpack#345
Successfully merging a pull request may close this issue.
Hi,
Not sure this is a bug, but at least it is a difference between version 1.6.1 and 1.7.0. I figured you guys may want to know.
So if you run the following code, it will output empty array:
While changing the first line to
gem 'msgpack', '= 1.6.1'
. The output will be["hello", "world"]
The text was updated successfully, but these errors were encountered: