msgpack 1.8.4-java → 1.8.5-java
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/lib/msgpack/factory.rb +12 -8
- data/lib/msgpack/msgpack.jar +0 -0
- data/lib/msgpack/packer.rb +1 -1
- data/lib/msgpack/unpacker.rb +1 -1
- data/lib/msgpack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42ce64d8db86e547c01c7be7b590a97526fc4fd9f5261f43cafd388b30248a69
|
|
4
|
+
data.tar.gz: 94aac324538c7794853b7dd7f109e0561dedd6930deee106c71b70b789a008df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8fbd8de7fccd5792192932cef06de71dfd297ddbdd28534eddef03d1240eab41a18b67f6d02c041fb5721440e7a85bfd53c710d1470fec5d3344862f89028aa
|
|
7
|
+
data.tar.gz: 98cb2af03516b05c4cfc9d6539502252f7e62293d46e658d53b614cc8b3f5cd7449b790fb389efacb7e6efc37414fd1207af581f4e8d6ac5a937be514c74eb41
|
data/lib/msgpack/factory.rb
CHANGED
|
@@ -14,10 +14,12 @@ module MessagePack
|
|
|
14
14
|
options[:packer] = packer.to_sym.to_proc
|
|
15
15
|
when Method
|
|
16
16
|
options[:packer] = packer.to_proc
|
|
17
|
-
when packer.respond_to?(:call)
|
|
18
|
-
options[:packer] = packer.method(:call).to_proc
|
|
19
17
|
else
|
|
20
|
-
|
|
18
|
+
if packer.respond_to?(:call)
|
|
19
|
+
options[:packer] = packer.method(:call).to_proc
|
|
20
|
+
else
|
|
21
|
+
raise ::TypeError, "expected :packer argument to be a callable object, got: #{packer.inspect}"
|
|
22
|
+
end
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
case unpacker = options[:unpacker]
|
|
@@ -27,10 +29,12 @@ module MessagePack
|
|
|
27
29
|
options[:unpacker] = klass.method(unpacker).to_proc
|
|
28
30
|
when Method
|
|
29
31
|
options[:unpacker] = unpacker.to_proc
|
|
30
|
-
when packer.respond_to?(:call)
|
|
31
|
-
options[:unpacker] = unpacker.method(:call).to_proc
|
|
32
32
|
else
|
|
33
|
-
|
|
33
|
+
if unpacker.respond_to?(:call)
|
|
34
|
+
options[:unpacker] = unpacker.method(:call).to_proc
|
|
35
|
+
else
|
|
36
|
+
raise ::TypeError, "expected :unpacker argument to be a callable object, got: #{unpacker.inspect}"
|
|
37
|
+
end
|
|
34
38
|
end
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -51,7 +55,7 @@ module MessagePack
|
|
|
51
55
|
type = ary[0]
|
|
52
56
|
packer_proc = ary[1]
|
|
53
57
|
unpacker_proc = nil
|
|
54
|
-
if unpacker.has_key?(type)
|
|
58
|
+
if unpacker.has_key?(type) && unpacker[type][0] == klass
|
|
55
59
|
unpacker_proc = unpacker.delete(type)[1]
|
|
56
60
|
end
|
|
57
61
|
list << {type: type, class: klass, packer: packer_proc, unpacker: unpacker_proc}
|
|
@@ -85,7 +89,7 @@ module MessagePack
|
|
|
85
89
|
|
|
86
90
|
def type_registered?(klass_or_type, selector=:both)
|
|
87
91
|
case klass_or_type
|
|
88
|
-
when
|
|
92
|
+
when Module
|
|
89
93
|
klass = klass_or_type
|
|
90
94
|
registered_types(selector).any?{|entry| klass <= entry[:class] }
|
|
91
95
|
when Integer
|
data/lib/msgpack/msgpack.jar
CHANGED
|
Binary file
|
data/lib/msgpack/packer.rb
CHANGED
data/lib/msgpack/unpacker.rb
CHANGED
data/lib/msgpack/version.rb
CHANGED
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: 1.8.
|
|
4
|
+
version: 1.8.5
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Sadayuki Furuhashi
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
- Satoshi Tagomori
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-09-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: MessagePack is a binary-based efficient object serialization library.
|
|
15
15
|
It enables to exchange structured objects between many languages like JSON. But
|