msgpack-rpc-stack 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/example/server.rb +2 -2
- data/example/server_with_eventmachin.rb +2 -2
- data/lib/msgpack/rpc/client.rb +5 -1
- data/lib/msgpack/rpc/server.rb +6 -2
- data/lib/msgpack/rpc/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: 14473a3f2c45d8d7f62a1c14805b6eb72b7fc9bf922f232731b3d116235bb3b9
|
4
|
+
data.tar.gz: 22c080853d2f37db6312c2dde0de15917e4d0977e0a6f5b2813f8afa075bd60a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c78b9fb98522c47f4866dfd0f3b266f83498e1f728437bff372bfa62642ebbaf2386651f48587dcefab9a21b786daee1b8c9019d6c27f1e5002ea464b7990dc
|
7
|
+
data.tar.gz: d3d50d58eec555bc209eb32c8d60da251b3e8ffbdada602b46713c2d0149d95085a1d239e0d5343f3f957e66b182562829b97ecf539aa7bfa937c5707ee8f79a
|
data/README.md
CHANGED
@@ -61,8 +61,8 @@ class RpcServer < EM::Connection
|
|
61
61
|
|
62
62
|
# send_dataメソッドはEM::Connectionで提供されるので定義なし
|
63
63
|
|
64
|
-
def on_error(
|
65
|
-
$logger.error(
|
64
|
+
def on_error(e)
|
65
|
+
$logger.error(e.message)
|
66
66
|
end
|
67
67
|
|
68
68
|
#
|
@@ -176,8 +176,8 @@ class Server
|
|
176
176
|
end
|
177
177
|
private :send_data
|
178
178
|
|
179
|
-
def on_error(
|
180
|
-
$logger.error(
|
179
|
+
def on_error(e)
|
180
|
+
$logger.error(e.message)
|
181
181
|
end
|
182
182
|
private :on_error
|
183
183
|
|
data/example/server.rb
CHANGED
data/lib/msgpack/rpc/client.rb
CHANGED
@@ -18,7 +18,11 @@ module MessagePack
|
|
18
18
|
m = Module.new {
|
19
19
|
klass.instance_variable_set(:@msgpack_options, {})
|
20
20
|
|
21
|
-
def msgpack_options(opts =
|
21
|
+
def msgpack_options(opts = :none)
|
22
|
+
if opts.nil? || opts.kind_of?(Hash)
|
23
|
+
@msgpack_options = opts
|
24
|
+
end
|
25
|
+
|
22
26
|
return (@msgpack_options = opts)
|
23
27
|
end
|
24
28
|
|
data/lib/msgpack/rpc/server.rb
CHANGED
@@ -74,8 +74,12 @@ module MessagePack
|
|
74
74
|
return @remote_async
|
75
75
|
end
|
76
76
|
|
77
|
-
def msgpack_options(opts =
|
78
|
-
|
77
|
+
def msgpack_options(opts = :none)
|
78
|
+
if opts.nil? || opts.kind_of?(Hash)
|
79
|
+
@msgpack_options = opts
|
80
|
+
end
|
81
|
+
|
82
|
+
return @msgpack_options
|
79
83
|
end
|
80
84
|
|
81
85
|
def new_unpacker
|
data/lib/msgpack/rpc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgpack-rpc-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Kuwagata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|