jruby-msgpack 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
13
13
  gem.name = "jruby-msgpack"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = "0.0.1"
15
+ gem.version = "0.0.2"
16
16
 
17
17
  gem.add_development_dependency "rspec", ">=2.8.0"
18
18
  gem.add_development_dependency "rake"
@@ -15,7 +15,7 @@ module MessagePack
15
15
  when org.msgpack.type.ValueType::NIL
16
16
  nil
17
17
  when org.msgpack.type.ValueType::RAW
18
- message_pack_object.asRawValue.getString
18
+ String.from_java_bytes(message_pack_object.asRawValue.byteArray)
19
19
  end
20
20
  end
21
21
  end
@@ -49,4 +49,11 @@ describe MessagePack::Unpacker do
49
49
  subject.feed(bytes)
50
50
  subject.first.should == "abc123"
51
51
  end
52
+
53
+ it "unpacks strings with binary data" do
54
+ bytes = org.msgpack.MessagePack.new.write("\xC0abc\x00".to_java_bytes)
55
+
56
+ subject.feed(bytes)
57
+ subject.first.should == "\xC0abc\x00"
58
+ end
52
59
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jruby-msgpack
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andy Lindeman