msgpack-jruby 1.1.0-java → 1.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,9 +38,13 @@ public class RubyObjectUnpacker {
38
38
  }
39
39
 
40
40
  public IRubyObject unpack(RubyString str) throws IOException {
41
+ return unpack(str.getRuntime(), str.getBytes());
42
+ }
43
+
44
+ public IRubyObject unpack(Ruby runtime, byte[] data) throws IOException {
41
45
  MessagePackBufferUnpacker unpacker = new MessagePackBufferUnpacker(msgPack);
42
- unpacker.wrap(str.getBytes());
43
- return valueToRubyObject(str.getRuntime(), unpacker.readValue());
46
+ unpacker.wrap(data);
47
+ return valueToRubyObject(runtime, unpacker.readValue());
44
48
  }
45
49
 
46
50
  IRubyObject valueToRubyObject(Ruby runtime, Value value) {
Binary file
@@ -1,3 +1,3 @@
1
1
  module MessagePack
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: msgpack-jruby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.0
5
+ version: 1.1.1
6
6
  platform: java
7
7
  authors:
8
8
  - Theo Hultberg
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-04-26 00:00:00 Z
13
+ date: 2012-06-05 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: JRuby compatible MessagePack implementation that does not use FFI