msgpack-rpc 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/NOTICE +2 -2
- data/lib/msgpack/rpc.rb +1 -1
- data/lib/msgpack/rpc/address.rb +1 -1
- data/lib/msgpack/rpc/client.rb +4 -2
- data/lib/msgpack/rpc/dispatcher.rb +1 -1
- data/lib/msgpack/rpc/exception.rb +3 -1
- data/lib/msgpack/rpc/future.rb +1 -1
- data/lib/msgpack/rpc/loop.rb +1 -1
- data/lib/msgpack/rpc/message.rb +1 -1
- data/lib/msgpack/rpc/multi_future.rb +1 -1
- data/lib/msgpack/rpc/server.rb +1 -1
- data/lib/msgpack/rpc/session.rb +1 -1
- data/lib/msgpack/rpc/session_pool.rb +1 -1
- data/lib/msgpack/rpc/transport/base.rb +1 -1
- data/lib/msgpack/rpc/transport/tcp.rb +1 -1
- data/lib/msgpack/rpc/transport/udp.rb +1 -1
- data/lib/msgpack/rpc/transport/unix.rb +1 -1
- data/lib/msgpack/rpc/version.rb +1 -1
- metadata +4 -4
data/ChangeLog
CHANGED
data/NOTICE
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
MessagePack-RPC for Ruby is developed by FURUHASHI Sadayuki, licensed under
|
2
2
|
Apache License, Version 2.0. The original software and related information
|
3
|
-
is available at http://msgpack.
|
3
|
+
is available at http://msgpack.org/.
|
4
4
|
|
5
5
|
MessagePack is developed by FURUHASHI Sadayuki, licensed under Apache License,
|
6
6
|
Version 2.0. The original software and related information is available at
|
7
|
-
http://msgpack.
|
7
|
+
http://msgpack.org/.
|
8
8
|
|
data/lib/msgpack/rpc.rb
CHANGED
data/lib/msgpack/rpc/address.rb
CHANGED
data/lib/msgpack/rpc/client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# MessagePack-RPC for Ruby
|
3
3
|
#
|
4
|
-
# Copyright (C) 2010 FURUHASHI Sadayuki
|
4
|
+
# Copyright (C) 2010-2011 FURUHASHI Sadayuki
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -48,7 +48,9 @@ class Client < Session
|
|
48
48
|
# call-seq:
|
49
49
|
# Client.open(arg1, arg2, arg3=nil) {|client| }
|
50
50
|
#
|
51
|
-
#
|
51
|
+
# 1. open(builder, address, loop = Loop.new) {|client }
|
52
|
+
# 2. open(host, port, loop = Loop.new) {|client }
|
53
|
+
# Creates a client, calls the block and closes the client.
|
52
54
|
def self.open(*args, &block)
|
53
55
|
c = new(*args)
|
54
56
|
begin
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# MessagePack-RPC for Ruby
|
3
3
|
#
|
4
|
-
# Copyright (C) 2010 FURUHASHI Sadayuki
|
4
|
+
# Copyright (C) 2010-2011 FURUHASHI Sadayuki
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -112,6 +112,7 @@ class ServerError < RPCError
|
|
112
112
|
end
|
113
113
|
|
114
114
|
class RemoteError < RPCError
|
115
|
+
CODE = ""
|
115
116
|
def initialize(code, *data)
|
116
117
|
super(code, *data)
|
117
118
|
end
|
@@ -163,6 +164,7 @@ end
|
|
163
164
|
# RuntimeError
|
164
165
|
#
|
165
166
|
class RuntimeError < RemoteError
|
167
|
+
CODE = ".RuntimeError"
|
166
168
|
def initialize(msg, *data)
|
167
169
|
super("RuntimeError", msg, *data)
|
168
170
|
end
|
data/lib/msgpack/rpc/future.rb
CHANGED
data/lib/msgpack/rpc/loop.rb
CHANGED
data/lib/msgpack/rpc/message.rb
CHANGED
data/lib/msgpack/rpc/server.rb
CHANGED
data/lib/msgpack/rpc/session.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# MessagePack-RPC for Ruby TCP transport
|
3
3
|
#
|
4
|
-
# Copyright (C) 2010 FURUHASHI Sadayuki
|
4
|
+
# Copyright (C) 2010-2011 FURUHASHI Sadayuki
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# MessagePack-RPC for Ruby UDP transport
|
3
3
|
#
|
4
|
-
# Copyright (C) 2010 FURUHASHI Sadayuki
|
4
|
+
# Copyright (C) 2010-2011 FURUHASHI Sadayuki
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# MessagePack-RPC for Ruby UNIX transport
|
3
3
|
#
|
4
|
-
# Copyright (C) 2010 FURUHASHI Sadayuki
|
4
|
+
# Copyright (C) 2010-2011 FURUHASHI Sadayuki
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
data/lib/msgpack/rpc/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgpack-rpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- FURUHASHI Sadayuki
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-04-06 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|