msgpack 0.7.3-java → 0.7.4-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/packer_spec.rb +15 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e27db9598b3889bdf293cb908f4ff54bc721505
|
4
|
+
data.tar.gz: db48f64ad763a8eccd3ce43266986d80a601b900
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fba2d5a8b6e0d67032f77839635934c25bef183be224092f190d9f2382aabe23e3bf1a743de03c48096093487bf5a183bb9bdfe93d8451451d858ac1d3b63bf
|
7
|
+
data.tar.gz: e0b302df18c3f87a904a54fb0fa1fbbcdd5e6f24a05185c981f5e7b9e79ca50556ba3c261f7f047e8337ccf7d82b8f2a1d85a433fdc9b1c8dfd10d6d44b5bf74
|
data/lib/msgpack/msgpack.jar
CHANGED
Binary file
|
data/lib/msgpack/version.rb
CHANGED
data/spec/packer_spec.rb
CHANGED
@@ -44,21 +44,18 @@ describe MessagePack::Packer do
|
|
44
44
|
dio.rewind
|
45
45
|
expect(dio.string).to eql(sample_packed)
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
str = Zlib::GzipReader.wrap(StringIO.new(compressed)){|gz| gz.read }
|
60
|
-
expect(str).to eql(sample_packed)
|
61
|
-
end
|
47
|
+
dio = StringIO.new
|
48
|
+
writer = Zlib::GzipWriter.new(dio)
|
49
|
+
writer.sync = true
|
50
|
+
p3 = MessagePack::Packer.new(writer)
|
51
|
+
p3.write sample_data
|
52
|
+
p3.flush
|
53
|
+
writer.flush(Zlib::FINISH)
|
54
|
+
writer.close
|
55
|
+
dio.rewind
|
56
|
+
compressed = dio.string
|
57
|
+
str = Zlib::GzipReader.wrap(StringIO.new(compressed)){|gz| gz.read }
|
58
|
+
expect(str).to eql(sample_packed)
|
62
59
|
|
63
60
|
class DummyIO
|
64
61
|
def initialize
|
@@ -87,6 +84,9 @@ describe MessagePack::Packer do
|
|
87
84
|
def flush
|
88
85
|
# nop
|
89
86
|
end
|
87
|
+
def close
|
88
|
+
# nop
|
89
|
+
end
|
90
90
|
end
|
91
91
|
|
92
92
|
dio = DummyIO.new
|
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: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-01-
|
13
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|