msgpack 1.4.0-java → 1.4.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/msgpack/msgpack.jar +0 -0
- data/lib/msgpack/version.rb +1 -1
- data/spec/unpacker_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a1e0c3e6a1d54dac456be496442ebb62d3a2bc88f6ff3c5f42df18e83d73e09
|
4
|
+
data.tar.gz: e8a501a0ff742f0ec5dd052fa25eadc28ad948e81b61ea0bb71543b80b7e46fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '096faa72aa72aec2c6ec4f08f26eaa480b80ff67be74e51cf89aa1aed79853d2638d0bb432e49022a0882a36da85895b38d01a6b3d440ba15dbfe57474f36fd3'
|
7
|
+
data.tar.gz: e75482dec9daf1b0ccfe714297887718ba3a9a5acc3b6fc211eb489fee3935eed2a8184734f66af9bd4bc5dcdf493806a7e34b9319a5e1ed23c25ac8c85c0f9c
|
data/lib/msgpack/msgpack.jar
CHANGED
Binary file
|
data/lib/msgpack/version.rb
CHANGED
data/spec/unpacker_spec.rb
CHANGED
@@ -634,6 +634,14 @@ describe MessagePack::Unpacker do
|
|
634
634
|
array = ['foo'] * 10_000
|
635
635
|
MessagePack.unpack(MessagePack.pack(array)).size.should == 10_000
|
636
636
|
end
|
637
|
+
|
638
|
+
it 'preserve string encoding (issue #200)' do
|
639
|
+
string = 'a'.force_encoding(Encoding::UTF_8)
|
640
|
+
MessagePack.unpack(MessagePack.pack(string)).encoding.should == string.encoding
|
641
|
+
|
642
|
+
string *= 256
|
643
|
+
MessagePack.unpack(MessagePack.pack(string)).encoding.should == string.encoding
|
644
|
+
end
|
637
645
|
end
|
638
646
|
|
639
647
|
context 'extensions' do
|