msgpack-rpc-stack 0.7.1 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/msgpack/rpc/client.rb +8 -1
- data/lib/msgpack/rpc/server.rb +10 -3
- data/lib/msgpack/rpc/version.rb +1 -1
- data/msgpack-rpc-stack.gemspec +3 -3
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b687418a1a9a272d68e0fdcf9dc186f9c7cb424d26bf1ea00257ee957e905bf
|
4
|
+
data.tar.gz: 0bc7c33e5e91070e051d4d3e2dbf7d44735e584e327a4a6992e573793ed1be40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17bff07e8d05495571b1a2492b5ad00c269b031ef526442eda3af8297886d7c7a7bce511ffce6334272962f7cab4f9f6b312af3e800bf2311159b91b375838cd
|
7
|
+
data.tar.gz: f197aaf7b86bb57f654a5cbe3ec632afcea0ab6716ade19ff5500517a9afdaa34ba852728e9eae2040aede41ade4e30ce93189d0a72d53601ecf7fe3aa861672
|
data/lib/msgpack/rpc/client.rb
CHANGED
@@ -17,7 +17,14 @@ module MessagePack
|
|
17
17
|
#
|
18
18
|
# @abstract
|
19
19
|
# Include from the class that implements the rpc client.
|
20
|
-
#
|
20
|
+
# When the client implementation class receives data from the
|
21
|
+
# communication line, it must call the receive_data() method and pass
|
22
|
+
# received data to the MessagePack::Rpc::Client module.
|
23
|
+
# Also, the client implementation class should define a method
|
24
|
+
# send_data() to actually send the data. Call this method from
|
25
|
+
# within the MessagePack::Rpc::Client module if necessary
|
26
|
+
# (Implement send_data() method to accept string objects in arguments).
|
27
|
+
# If you receive a protocol level error, override the on_error() method.
|
21
28
|
#
|
22
29
|
module Client
|
23
30
|
class << self
|
data/lib/msgpack/rpc/server.rb
CHANGED
@@ -18,7 +18,14 @@ module MessagePack
|
|
18
18
|
#
|
19
19
|
# @abstract
|
20
20
|
# Include from the class that implements the rpc server. You can expose
|
21
|
-
#
|
21
|
+
# When the client implementation class receives data from the
|
22
|
+
# communication line, it must call the receive_data() method and pass
|
23
|
+
# received data to the MessagePack::Rpc::Server module.
|
24
|
+
# Also, the client implementation class should define a method
|
25
|
+
# send_data() to actually send the data. Call this method from
|
26
|
+
# within the MessagePack::Rpc::Server module if necessary
|
27
|
+
# (Implement send_data() method to accept string objects in arguments).
|
28
|
+
# If you receive a protocol level error, override the on_error() method.
|
22
29
|
# the methods defined in that class as RPC procedures.
|
23
30
|
#
|
24
31
|
module Server
|
@@ -291,8 +298,8 @@ module MessagePack
|
|
291
298
|
# recevied data from peer rpc client.
|
292
299
|
#
|
293
300
|
# @note
|
294
|
-
# Use this method for datagram communication.
|
295
|
-
# Use it when it is guaranteed that data is exchanged
|
301
|
+
# Use this method for datagram communication.
|
302
|
+
# Use it when it is guaranteed that data is exchanged
|
296
303
|
# in packets (it works a bit faster).
|
297
304
|
#
|
298
305
|
def receive_dgram(data)
|
data/lib/msgpack/rpc/version.rb
CHANGED
data/msgpack-rpc-stack.gemspec
CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
|
36
36
|
spec.required_ruby_version = ">= 2.4.0"
|
37
37
|
|
38
|
-
spec.add_development_dependency "bundler", "
|
39
|
-
spec.add_development_dependency "rake", "
|
40
|
-
spec.add_dependency "msgpack", "
|
38
|
+
spec.add_development_dependency "bundler", ">= 2.1"
|
39
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
40
|
+
spec.add_dependency "msgpack", ">= 1.6.0"
|
41
41
|
end
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgpack-rpc-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Kuwagata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: msgpack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.6.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.6.0
|
55
55
|
description: A module of implementation MessagePack-RPC stack
|
56
56
|
email:
|
57
57
|
- kgt9221@gmail.com
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.
|
97
|
+
rubygems_version: 3.4.8
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: MessagePack-RPC module
|