msgpack 0.7.3-x86-mingw32 → 0.7.4-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/Rakefile +1 -1
- data/ext/java/org/msgpack/jruby/Buffer.java +3 -2
- data/lib/msgpack/version.rb +1 -1
- data/spec/packer_spec.rb +15 -15
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01d4dce353c0b7f66861cc2c2d58571c1091d798
|
4
|
+
data.tar.gz: 6f3dc90263da4f2027ae06fe8ecae2d490727795
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc81eee34389b032bcda2341f616baa1ee89449d65b115936d83aa16a4e9821d77c528e03416fbd65195a3c713a154a25ca24c9ac51d6746f42369afec1c8342
|
7
|
+
data.tar.gz: 825e2e90fac1ab7693419c7d0029fe045508db3f71c8348a0e472c5329abe4e74f5b7ecfcf2b459243d5a03cb9135c9ea794868526990d1aaee53204cdaa35cc
|
data/ChangeLog
CHANGED
data/Rakefile
CHANGED
@@ -65,7 +65,7 @@ namespace :build do
|
|
65
65
|
desc 'Build gems for Windows per rake-compiler-dock'
|
66
66
|
task :windows do
|
67
67
|
require 'rake_compiler_dock'
|
68
|
-
RakeCompilerDock.sh 'bundle && rake cross native gem RUBY_CC_VERSION=1.9.3:2.0.0:2.1.6:2.2.2:2.3.0'
|
68
|
+
RakeCompilerDock.sh 'bundle && gem i json && rake cross native gem RUBY_CC_VERSION=1.9.3:2.0.0:2.1.6:2.2.2:2.3.0'
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
@@ -42,8 +42,9 @@ public class Buffer extends RubyObject {
|
|
42
42
|
@JRubyMethod(name = "initialize", optional = 2)
|
43
43
|
public IRubyObject initialize(ThreadContext ctx, IRubyObject[] args) {
|
44
44
|
if (args.length > 0) {
|
45
|
-
|
46
|
-
|
45
|
+
IRubyObject io = args[0];
|
46
|
+
if (io.respondsTo("close") && (io.respondsTo("read") || (io.respondsTo("write") && io.respondsTo("flush")))) {
|
47
|
+
this.io = io;
|
47
48
|
}
|
48
49
|
}
|
49
50
|
this.buffer = ByteBuffer.allocate(CACHE_LINE_SIZE - ARRAY_HEADER_SIZE);
|
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: x86-mingw32
|
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
|
name: bundler
|
@@ -191,6 +191,7 @@ files:
|
|
191
191
|
- lib/msgpack/2.0/msgpack.so
|
192
192
|
- lib/msgpack/2.1/msgpack.so
|
193
193
|
- lib/msgpack/2.2/msgpack.so
|
194
|
+
- lib/msgpack/2.3/msgpack.so
|
194
195
|
- lib/msgpack/factory.rb
|
195
196
|
- lib/msgpack/packer.rb
|
196
197
|
- lib/msgpack/unpacker.rb
|
@@ -240,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
241
|
version: '0'
|
241
242
|
requirements: []
|
242
243
|
rubyforge_project: msgpack
|
243
|
-
rubygems_version: 2.
|
244
|
+
rubygems_version: 2.5.1
|
244
245
|
signing_key:
|
245
246
|
specification_version: 4
|
246
247
|
summary: MessagePack, a binary-based efficient data interchange format.
|