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.
- data/jruby-msgpack.gemspec +1 -1
- data/lib/jruby-msgpack/type_mapper.rb +1 -1
- data/spec/unpacker_spec.rb +7 -0
- metadata +1 -1
data/jruby-msgpack.gemspec
CHANGED
@@ -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.
|
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"
|
data/spec/unpacker_spec.rb
CHANGED
@@ -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
|