msgpack 0.6.2-x86-mingw32 → 0.7.0dev1-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/.rubocop.yml +33 -0
- data/README.rdoc +2 -6
- data/Rakefile +9 -0
- data/appveyor.yml +18 -0
- data/doclib/msgpack/error.rb +6 -1
- data/doclib/msgpack/extension_value.rb +9 -0
- data/doclib/msgpack/factory.rb +68 -0
- data/doclib/msgpack/packer.rb +38 -0
- data/doclib/msgpack/unpacker.rb +39 -2
- data/ext/java/org/msgpack/jruby/Buffer.java +4 -0
- data/ext/java/org/msgpack/jruby/Decoder.java +44 -0
- data/ext/java/org/msgpack/jruby/Encoder.java +46 -4
- data/ext/java/org/msgpack/jruby/ExtensionValue.java +55 -60
- data/ext/java/org/msgpack/jruby/MessagePackLibrary.java +18 -5
- data/ext/java/org/msgpack/jruby/Packer.java +17 -4
- data/ext/java/org/msgpack/jruby/Unpacker.java +59 -2
- data/ext/msgpack/buffer_class.c +2 -2
- data/ext/msgpack/buffer_class.h +1 -1
- data/ext/msgpack/compat.h +12 -0
- data/ext/msgpack/core_ext.c +15 -0
- data/ext/msgpack/extconf.rb +4 -1
- data/ext/msgpack/extension_value_class.c +34 -0
- data/ext/msgpack/extension_value_class.h +31 -0
- data/ext/msgpack/factory_class.c +213 -0
- data/ext/msgpack/factory_class.h +35 -0
- data/ext/msgpack/packer.c +14 -7
- data/ext/msgpack/packer.h +46 -8
- data/ext/msgpack/packer_class.c +92 -45
- data/ext/msgpack/packer_class.h +4 -2
- data/ext/msgpack/packer_ext_registry.c +87 -0
- data/ext/msgpack/packer_ext_registry.h +101 -0
- data/ext/msgpack/rbinit.c +4 -0
- data/ext/msgpack/unpacker.c +128 -23
- data/ext/msgpack/unpacker.h +11 -0
- data/ext/msgpack/unpacker_class.c +117 -38
- data/ext/msgpack/unpacker_class.h +4 -2
- data/ext/msgpack/unpacker_ext_registry.c +68 -0
- data/ext/msgpack/unpacker_ext_registry.h +62 -0
- data/lib/msgpack.rb +4 -0
- data/lib/msgpack/factory.rb +60 -0
- data/lib/msgpack/packer.rb +28 -0
- data/lib/msgpack/unpacker.rb +28 -0
- data/lib/msgpack/version.rb +1 -1
- data/msgpack.gemspec +4 -3
- data/spec/cruby/buffer_io_spec.rb +2 -3
- data/spec/cruby/buffer_spec.rb +1 -3
- data/spec/cruby/unpacker_spec.rb +14 -2
- data/spec/ext_value_spec.rb +99 -0
- data/spec/exttypes.rb +51 -0
- data/spec/factory_spec.rb +236 -0
- data/spec/jruby/msgpack/unpacker_spec.rb +25 -0
- data/spec/{jruby/msgpack_spec.rb → msgpack_spec.rb} +1 -1
- data/spec/pack_spec.rb +0 -6
- data/spec/packer_spec.rb +95 -0
- data/spec/spec_helper.rb +12 -1
- data/spec/unpack_spec.rb +1 -4
- data/spec/unpacker_spec.rb +133 -0
- metadata +50 -15
- data/Dockerfile +0 -55
@@ -72,6 +72,31 @@ describe ::MessagePack::Unpacker do
|
|
72
72
|
subject.should_not be_finished
|
73
73
|
end
|
74
74
|
end
|
75
|
+
|
76
|
+
describe '#read' do
|
77
|
+
context 'with a buffer' do
|
78
|
+
it 'reads objects' do
|
79
|
+
objects = []
|
80
|
+
subject.feed(buffer1)
|
81
|
+
subject.feed(buffer2)
|
82
|
+
subject.feed(buffer3)
|
83
|
+
objects << subject.read
|
84
|
+
objects << subject.read
|
85
|
+
objects << subject.read
|
86
|
+
objects.should == [{'foo' => 'bar'}, {'hello' => {'world' => [1, 2, 3]}}, {'x' => 'y'}]
|
87
|
+
end
|
88
|
+
|
89
|
+
it 'reads map header' do
|
90
|
+
subject.feed({}.to_msgpack)
|
91
|
+
subject.read_map_header.should == 0
|
92
|
+
end
|
93
|
+
|
94
|
+
it 'reads array header' do
|
95
|
+
subject.feed([].to_msgpack)
|
96
|
+
subject.read_array_header.should == 0
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
75
100
|
|
76
101
|
describe '#each' do
|
77
102
|
context 'with a buffer' do
|
@@ -112,7 +112,7 @@ describe MessagePack do
|
|
112
112
|
|
113
113
|
context 'with other things' do
|
114
114
|
it 'raises an error on #pack with an unsupported type' do
|
115
|
-
expect { MessagePack.pack(self) }.to raise_error(
|
115
|
+
expect { MessagePack.pack(self) }.to raise_error(NoMethodError, /^undefined method `to_msgpack'/)
|
116
116
|
end
|
117
117
|
|
118
118
|
it 'rasies an error on #unpack with garbage' do
|
data/spec/pack_spec.rb
CHANGED
@@ -35,9 +35,6 @@ describe MessagePack do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
it 'calls custom to_msgpack method' do
|
38
|
-
if /java/ =~ RUBY_PLATFORM
|
39
|
-
skip "custom to_msgpack fallback is not supported yet in JRuby implementation"
|
40
|
-
end
|
41
38
|
MessagePack.pack(CustomPack01.new).should == [1,2].to_msgpack
|
42
39
|
MessagePack.pack(CustomPack02.new).should == [1,2].to_msgpack
|
43
40
|
CustomPack01.new.to_msgpack.should == [1,2].to_msgpack
|
@@ -45,9 +42,6 @@ describe MessagePack do
|
|
45
42
|
end
|
46
43
|
|
47
44
|
it 'calls custom to_msgpack method with io' do
|
48
|
-
if /java/ =~ RUBY_PLATFORM
|
49
|
-
skip "custom to_msgpack fallback with io is not supported yet in JRuby implementation"
|
50
|
-
end
|
51
45
|
s01 = StringIO.new
|
52
46
|
MessagePack.pack(CustomPack01.new, s01)
|
53
47
|
s01.string.should == [1,2].to_msgpack
|
data/spec/packer_spec.rb
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe MessagePack::Packer do
|
4
|
+
class ValueOne
|
5
|
+
def initialize(num)
|
6
|
+
@num = num
|
7
|
+
end
|
8
|
+
def num
|
9
|
+
@num
|
10
|
+
end
|
11
|
+
def to_msgpack_ext
|
12
|
+
@num.to_msgpack
|
13
|
+
end
|
14
|
+
def self.from_msgpack_ext(data)
|
15
|
+
self.new(MessagePack.unpack(data))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class ValueTwo
|
20
|
+
def initialize(num)
|
21
|
+
@num_s = num.to_s
|
22
|
+
end
|
23
|
+
def num
|
24
|
+
@num_s.to_i
|
25
|
+
end
|
26
|
+
def to_msgpack_ext
|
27
|
+
@num_s.to_msgpack
|
28
|
+
end
|
29
|
+
def self.from_msgpack_ext(data)
|
30
|
+
self.new(MessagePack.unpack(data))
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe '#type_registered?' do
|
35
|
+
it 'receive Class or Integer, and return bool' do
|
36
|
+
skip("not supported yet in JRuby implementation") if java?
|
37
|
+
expect(subject.type_registered?(0x00)).to be_falsy
|
38
|
+
expect(subject.type_registered?(0x01)).to be_falsy
|
39
|
+
expect(subject.type_registered?(::ValueOne)).to be_falsy
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'returns true if specified type or class is already registered' do
|
43
|
+
skip("not supported yet in JRuby implementation") if java?
|
44
|
+
subject.register_type(0x30, ::ValueOne, :to_msgpack_ext)
|
45
|
+
subject.register_type(0x31, ::ValueTwo, :to_msgpack_ext)
|
46
|
+
|
47
|
+
expect(subject.type_registered?(0x00)).to be_falsy
|
48
|
+
expect(subject.type_registered?(0x01)).to be_falsy
|
49
|
+
|
50
|
+
expect(subject.type_registered?(0x30)).to be_truthy
|
51
|
+
expect(subject.type_registered?(0x31)).to be_truthy
|
52
|
+
expect(subject.type_registered?(::ValueOne)).to be_truthy
|
53
|
+
expect(subject.type_registered?(::ValueTwo)).to be_truthy
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe '#register_type' do
|
58
|
+
it 'get type and class mapping for packing' do
|
59
|
+
skip("not supported yet in JRuby implementation") if java?
|
60
|
+
packer = MessagePack::Packer.new
|
61
|
+
packer.register_type(0x01, ValueOne){|obj| obj.to_msgpack_ext }
|
62
|
+
packer.register_type(0x02, ValueTwo){|obj| obj.to_msgpack_ext }
|
63
|
+
|
64
|
+
packer = MessagePack::Packer.new
|
65
|
+
packer.register_type(0x01, ValueOne, :to_msgpack_ext)
|
66
|
+
packer.register_type(0x02, ValueTwo, :to_msgpack_ext)
|
67
|
+
|
68
|
+
packer = MessagePack::Packer.new
|
69
|
+
packer.register_type(0x01, ValueOne, &:to_msgpack_ext)
|
70
|
+
packer.register_type(0x02, ValueTwo, &:to_msgpack_ext)
|
71
|
+
end
|
72
|
+
|
73
|
+
it 'returns a Hash which contains map of Class and type' do
|
74
|
+
skip("not supported yet in JRuby implementation") if java?
|
75
|
+
packer = MessagePack::Packer.new
|
76
|
+
packer.register_type(0x01, ValueOne, :to_msgpack_ext)
|
77
|
+
packer.register_type(0x02, ValueTwo, :to_msgpack_ext)
|
78
|
+
|
79
|
+
expect(packer.registered_types).to be_a(Array)
|
80
|
+
expect(packer.registered_types.size).to eq(2)
|
81
|
+
|
82
|
+
one = packer.registered_types[0]
|
83
|
+
expect(one.keys.sort).to eq([:type, :class, :packer].sort)
|
84
|
+
expect(one[:type]).to eq(0x01)
|
85
|
+
expect(one[:class]).to eq(ValueOne)
|
86
|
+
expect(one[:packer]).to eq(:to_msgpack_ext)
|
87
|
+
|
88
|
+
two = packer.registered_types[1]
|
89
|
+
expect(two.keys.sort).to eq([:type, :class, :packer].sort)
|
90
|
+
expect(two[:type]).to eq(0x02)
|
91
|
+
expect(two[:class]).to eq(ValueTwo)
|
92
|
+
expect(two[:packer]).to eq(:to_msgpack_ext)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -15,13 +15,24 @@ end
|
|
15
15
|
|
16
16
|
require 'msgpack'
|
17
17
|
|
18
|
-
|
18
|
+
def java?
|
19
|
+
/java/ =~ RUBY_PLATFORM
|
20
|
+
end
|
21
|
+
|
22
|
+
if java?
|
19
23
|
RSpec.configure do |c|
|
20
24
|
c.treat_symbols_as_metadata_keys_with_true_values = true
|
21
25
|
c.filter_run_excluding :encodings => !(defined? Encoding)
|
22
26
|
end
|
23
27
|
else
|
28
|
+
RSpec.configure do |config|
|
29
|
+
config.expect_with :rspec do |c|
|
30
|
+
c.syntax = [:should, :expect]
|
31
|
+
end
|
32
|
+
end
|
24
33
|
Packer = MessagePack::Packer
|
25
34
|
Unpacker = MessagePack::Unpacker
|
26
35
|
Buffer = MessagePack::Buffer
|
36
|
+
Factory = MessagePack::Factory
|
37
|
+
ExtensionValue = MessagePack::ExtensionValue
|
27
38
|
end
|
data/spec/unpack_spec.rb
CHANGED
@@ -13,10 +13,7 @@ describe MessagePack do
|
|
13
13
|
MessagePack.unpack(MessagePack.pack(symbolized_hash), :symbolize_keys => true).should == symbolized_hash
|
14
14
|
end
|
15
15
|
|
16
|
-
it 'Unpacker#
|
17
|
-
if /java/ =~ RUBY_PLATFORM
|
18
|
-
skip "Unpacker#unpack returns nil in JRuby (incompatible)"
|
19
|
-
end
|
16
|
+
it 'Unpacker#read symbolize_keys' do
|
20
17
|
unpacker = MessagePack::Unpacker.new(:symbolize_keys => true)
|
21
18
|
symbolized_hash = {:a => 'b', :c => 'd'}
|
22
19
|
unpacker.feed(MessagePack.pack(symbolized_hash)).read.should == symbolized_hash
|
@@ -0,0 +1,133 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe MessagePack::Unpacker do
|
4
|
+
class ValueOne
|
5
|
+
attr_reader :num
|
6
|
+
def initialize(num)
|
7
|
+
@num = num
|
8
|
+
end
|
9
|
+
def ==(obj)
|
10
|
+
self.num == obj.num
|
11
|
+
end
|
12
|
+
def num
|
13
|
+
@num
|
14
|
+
end
|
15
|
+
def to_msgpack_ext
|
16
|
+
@num.to_msgpack
|
17
|
+
end
|
18
|
+
def self.from_msgpack_ext(data)
|
19
|
+
self.new(MessagePack.unpack(data))
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
class ValueTwo
|
24
|
+
attr_reader :num_s
|
25
|
+
def initialize(num)
|
26
|
+
@num_s = num.to_s
|
27
|
+
end
|
28
|
+
def ==(obj)
|
29
|
+
self.num_s == obj.num_s
|
30
|
+
end
|
31
|
+
def num
|
32
|
+
@num_s.to_i
|
33
|
+
end
|
34
|
+
def to_msgpack_ext
|
35
|
+
@num_s.to_msgpack
|
36
|
+
end
|
37
|
+
def self.from_msgpack_ext(data)
|
38
|
+
self.new(MessagePack.unpack(data))
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe '#type_registered?' do
|
43
|
+
it 'receive Class or Integer, and return bool' do
|
44
|
+
skip("not supported yet in JRuby implementation") if java?
|
45
|
+
expect(subject.type_registered?(0x00)).to be_falsy
|
46
|
+
expect(subject.type_registered?(0x01)).to be_falsy
|
47
|
+
expect(subject.type_registered?(::ValueOne)).to be_falsy
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'returns true if specified type or class is already registered' do
|
51
|
+
skip("not supported yet in JRuby implementation") if java?
|
52
|
+
subject.register_type(0x30, ::ValueOne, :from_msgpack_ext)
|
53
|
+
subject.register_type(0x31, ::ValueTwo, :from_msgpack_ext)
|
54
|
+
|
55
|
+
expect(subject.type_registered?(0x00)).to be_falsy
|
56
|
+
expect(subject.type_registered?(0x01)).to be_falsy
|
57
|
+
|
58
|
+
expect(subject.type_registered?(0x30)).to be_truthy
|
59
|
+
expect(subject.type_registered?(0x31)).to be_truthy
|
60
|
+
expect(subject.type_registered?(::ValueOne)).to be_truthy
|
61
|
+
expect(subject.type_registered?(::ValueTwo)).to be_truthy
|
62
|
+
end
|
63
|
+
|
64
|
+
it 'cannot detect unpack rule with block, not method' do
|
65
|
+
skip("not supported yet in JRuby implementation") if java?
|
66
|
+
subject.register_type(0x40){|data| ValueOne.from_msgpack_ext(data) }
|
67
|
+
|
68
|
+
expect(subject.type_registered?(0x40)).to be_truthy
|
69
|
+
expect(subject.type_registered?(ValueOne)).to be_falsy
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
context 'with ext definitions' do
|
74
|
+
it 'get type and class mapping for packing' do
|
75
|
+
skip("not supported yet in JRuby implementation") if java?
|
76
|
+
unpacker = MessagePack::Unpacker.new
|
77
|
+
unpacker.register_type(0x01){|data| ValueOne.from_msgpack_ext }
|
78
|
+
unpacker.register_type(0x02){|data| ValueTwo.from_msgpack_ext(data) }
|
79
|
+
|
80
|
+
unpacker = MessagePack::Unpacker.new
|
81
|
+
unpacker.register_type(0x01, ValueOne, :from_msgpack_ext)
|
82
|
+
unpacker.register_type(0x02, ValueTwo, :from_msgpack_ext)
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'returns a Array of Hash which contains :type, :class and :unpacker' do
|
86
|
+
skip("not supported yet in JRuby implementation") if java?
|
87
|
+
unpacker = MessagePack::Unpacker.new
|
88
|
+
unpacker.register_type(0x02, ValueTwo, :from_msgpack_ext)
|
89
|
+
unpacker.register_type(0x01, ValueOne, :from_msgpack_ext)
|
90
|
+
|
91
|
+
list = unpacker.registered_types
|
92
|
+
|
93
|
+
expect(list).to be_a(Array)
|
94
|
+
expect(list.size).to eq(2)
|
95
|
+
|
96
|
+
one = list[0]
|
97
|
+
expect(one.keys.sort).to eq([:type, :class, :unpacker].sort)
|
98
|
+
expect(one[:type]).to eq(0x01)
|
99
|
+
expect(one[:class]).to eq(ValueOne)
|
100
|
+
expect(one[:unpacker]).to eq(:from_msgpack_ext)
|
101
|
+
|
102
|
+
two = list[1]
|
103
|
+
expect(two.keys.sort).to eq([:type, :class, :unpacker].sort)
|
104
|
+
expect(two[:type]).to eq(0x02)
|
105
|
+
expect(two[:class]).to eq(ValueTwo)
|
106
|
+
expect(two[:unpacker]).to eq(:from_msgpack_ext)
|
107
|
+
end
|
108
|
+
|
109
|
+
it 'returns a Array of Hash, which contains nil for class if block unpacker specified' do
|
110
|
+
skip("not supported yet in JRuby implementation") if java?
|
111
|
+
unpacker = MessagePack::Unpacker.new
|
112
|
+
unpacker.register_type(0x01){|data| ValueOne.from_msgpack_ext }
|
113
|
+
unpacker.register_type(0x02, &ValueTwo.method(:from_msgpack_ext))
|
114
|
+
|
115
|
+
list = unpacker.registered_types
|
116
|
+
|
117
|
+
expect(list).to be_a(Array)
|
118
|
+
expect(list.size).to eq(2)
|
119
|
+
|
120
|
+
one = list[0]
|
121
|
+
expect(one.keys.sort).to eq([:type, :class, :unpacker].sort)
|
122
|
+
expect(one[:type]).to eq(0x01)
|
123
|
+
expect(one[:class]).to be_nil
|
124
|
+
expect(one[:unpacker]).to be_instance_of(Proc)
|
125
|
+
|
126
|
+
two = list[1]
|
127
|
+
expect(two.keys.sort).to eq([:type, :class, :unpacker].sort)
|
128
|
+
expect(two[:type]).to eq(0x02)
|
129
|
+
expect(two[:class]).to be_nil
|
130
|
+
expect(two[:unpacker]).to be_instance_of(Proc)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
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.
|
4
|
+
version: 0.7.0dev1
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -45,42 +45,42 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
48
|
+
version: 0.9.4
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: 0.9.4
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: rake-compiler-dock
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 0.4.3
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 0.4.3
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: rspec
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '3.3'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '3.3'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: yard
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,6 +95,20 @@ dependencies:
|
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: 0.8.2
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: json
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
98
112
|
description: MessagePack is a binary-based efficient object serialization library.
|
99
113
|
It enables to exchange structured objects between many languages like JSON. But
|
100
114
|
unlike JSON, it is very fast and small.
|
@@ -106,13 +120,14 @@ extensions: []
|
|
106
120
|
extra_rdoc_files: []
|
107
121
|
files:
|
108
122
|
- ".gitignore"
|
123
|
+
- ".rubocop.yml"
|
109
124
|
- ".travis.yml"
|
110
125
|
- ChangeLog
|
111
|
-
- Dockerfile
|
112
126
|
- Gemfile
|
113
127
|
- LICENSE
|
114
128
|
- README.rdoc
|
115
129
|
- Rakefile
|
130
|
+
- appveyor.yml
|
116
131
|
- bench/pack.rb
|
117
132
|
- bench/pack_log.rb
|
118
133
|
- bench/pack_log_long.rb
|
@@ -125,6 +140,8 @@ files:
|
|
125
140
|
- doclib/msgpack/buffer.rb
|
126
141
|
- doclib/msgpack/core_ext.rb
|
127
142
|
- doclib/msgpack/error.rb
|
143
|
+
- doclib/msgpack/extension_value.rb
|
144
|
+
- doclib/msgpack/factory.rb
|
128
145
|
- doclib/msgpack/packer.rb
|
129
146
|
- doclib/msgpack/unpacker.rb
|
130
147
|
- ext/java/org/msgpack/jruby/Buffer.java
|
@@ -143,10 +160,16 @@ files:
|
|
143
160
|
- ext/msgpack/core_ext.c
|
144
161
|
- ext/msgpack/core_ext.h
|
145
162
|
- ext/msgpack/extconf.rb
|
163
|
+
- ext/msgpack/extension_value_class.c
|
164
|
+
- ext/msgpack/extension_value_class.h
|
165
|
+
- ext/msgpack/factory_class.c
|
166
|
+
- ext/msgpack/factory_class.h
|
146
167
|
- ext/msgpack/packer.c
|
147
168
|
- ext/msgpack/packer.h
|
148
169
|
- ext/msgpack/packer_class.c
|
149
170
|
- ext/msgpack/packer_class.h
|
171
|
+
- ext/msgpack/packer_ext_registry.c
|
172
|
+
- ext/msgpack/packer_ext_registry.h
|
150
173
|
- ext/msgpack/rbinit.c
|
151
174
|
- ext/msgpack/rmem.c
|
152
175
|
- ext/msgpack/rmem.h
|
@@ -157,9 +180,16 @@ files:
|
|
157
180
|
- ext/msgpack/unpacker.h
|
158
181
|
- ext/msgpack/unpacker_class.c
|
159
182
|
- ext/msgpack/unpacker_class.h
|
183
|
+
- ext/msgpack/unpacker_ext_registry.c
|
184
|
+
- ext/msgpack/unpacker_ext_registry.h
|
160
185
|
- lib/msgpack.rb
|
186
|
+
- lib/msgpack/1.9/msgpack.so
|
187
|
+
- lib/msgpack/2.0/msgpack.so
|
161
188
|
- lib/msgpack/2.1/msgpack.so
|
162
189
|
- lib/msgpack/2.2/msgpack.so
|
190
|
+
- lib/msgpack/factory.rb
|
191
|
+
- lib/msgpack/packer.rb
|
192
|
+
- lib/msgpack/unpacker.rb
|
163
193
|
- lib/msgpack/version.rb
|
164
194
|
- msgpack.gemspec
|
165
195
|
- msgpack.org.md
|
@@ -173,15 +203,20 @@ files:
|
|
173
203
|
- spec/cruby/buffer_unpacker.rb
|
174
204
|
- spec/cruby/packer_spec.rb
|
175
205
|
- spec/cruby/unpacker_spec.rb
|
206
|
+
- spec/ext_value_spec.rb
|
207
|
+
- spec/exttypes.rb
|
208
|
+
- spec/factory_spec.rb
|
176
209
|
- spec/format_spec.rb
|
177
210
|
- spec/jruby/benchmarks/shootout_bm.rb
|
178
211
|
- spec/jruby/benchmarks/symbolize_keys_bm.rb
|
179
212
|
- spec/jruby/msgpack/unpacker_spec.rb
|
180
|
-
- spec/
|
213
|
+
- spec/msgpack_spec.rb
|
181
214
|
- spec/pack_spec.rb
|
215
|
+
- spec/packer_spec.rb
|
182
216
|
- spec/random_compat.rb
|
183
217
|
- spec/spec_helper.rb
|
184
218
|
- spec/unpack_spec.rb
|
219
|
+
- spec/unpacker_spec.rb
|
185
220
|
homepage: http://msgpack.org/
|
186
221
|
licenses:
|
187
222
|
- Apache 2.0
|
@@ -197,12 +232,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
232
|
version: '0'
|
198
233
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
234
|
requirements:
|
200
|
-
- - "
|
235
|
+
- - ">"
|
201
236
|
- !ruby/object:Gem::Version
|
202
|
-
version:
|
237
|
+
version: 1.3.1
|
203
238
|
requirements: []
|
204
239
|
rubyforge_project: msgpack
|
205
|
-
rubygems_version: 2.4.
|
240
|
+
rubygems_version: 2.4.8
|
206
241
|
signing_key:
|
207
242
|
specification_version: 4
|
208
243
|
summary: MessagePack, a binary-based efficient data interchange format.
|