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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df3b24e93761eeee9892ce39650e1d78ef3b10690c17175ff1fdf89fb2430e79
4
- data.tar.gz: 0aca3d762180d301e52bd89f303ff593487f3ceb468bf792e378ee4b5a56af11
3
+ metadata.gz: 0a1e0c3e6a1d54dac456be496442ebb62d3a2bc88f6ff3c5f42df18e83d73e09
4
+ data.tar.gz: e8a501a0ff742f0ec5dd052fa25eadc28ad948e81b61ea0bb71543b80b7e46fb
5
5
  SHA512:
6
- metadata.gz: 18a3f11686786575886117fdc5f0886c8c3bdd796a79f92bac63437771c885235f80e05f87abf65ad427ca9343931adb79f2a8ba3ba00c73ae3d078f86c12883
7
- data.tar.gz: 8462fa5a43f395a56bb01223c0513b06a9761d2608436b1675b036e0d94a393f896f0779e68e416d8d0c2e779cce50debab7dcc03e6ed816b7739d1a667ddf3f
6
+ metadata.gz: '096faa72aa72aec2c6ec4f08f26eaa480b80ff67be74e51cf89aa1aed79853d2638d0bb432e49022a0882a36da85895b38d01a6b3d440ba15dbfe57474f36fd3'
7
+ data.tar.gz: e75482dec9daf1b0ccfe714297887718ba3a9a5acc3b6fc211eb489fee3935eed2a8184734f66af9bd4bc5dcdf493806a7e34b9319a5e1ed23c25ac8c85c0f9c
Binary file
@@ -1,5 +1,5 @@
1
1
  module MessagePack
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  # Note for maintainers:
4
4
  # Don't miss building/releasing the JRuby version (rake buld:java)
5
5
  # See "How to build -java rubygems" in README for more details.
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msgpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: java
6
6
  authors:
7
7
  - Sadayuki Furuhashi