rjr 0.19.1 → 0.19.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/Rakefile +0 -2
- data/examples/timeout.rb +23 -0
- data/lib/rjr/dispatcher.rb +1 -1
- data/lib/rjr/messages/intermediate.rb +50 -0
- data/lib/rjr/messages/notification.rb +9 -16
- data/lib/rjr/messages/request.rb +14 -20
- data/lib/rjr/messages/response.rb +19 -26
- data/lib/rjr/messages.rb +1 -0
- data/lib/rjr/node.rb +50 -34
- data/lib/rjr/nodes/amqp.rb +19 -3
- data/lib/rjr/nodes/local.rb +12 -5
- data/lib/rjr/nodes/tcp.rb +25 -12
- data/lib/rjr/nodes/web.rb +3 -2
- data/lib/rjr/request.rb +11 -1
- data/lib/rjr/util/json_parser.rb +47 -14
- data/lib/rjr/util/logger.rb +4 -2
- data/lib/rjr/version.rb +1 -1
- data/specs/args_spec.rb +2 -2
- data/specs/dispatcher_spec.rb +9 -9
- data/specs/em_adapter_spec.rb +3 -3
- data/specs/handles_methods_spec.rb +2 -2
- data/specs/json_parser_spec.rb +30 -4
- data/specs/messages/intermediate_spec.rb +58 -0
- data/specs/messages/notification_spec.rb +12 -13
- data/specs/messages/request_spec.rb +16 -16
- data/specs/messages/response_spec.rb +15 -14
- data/specs/node_spec.rb +79 -31
- data/specs/nodes/amqp_spec.rb +1 -1
- data/specs/nodes/local_spec.rb +2 -2
- data/specs/nodes/multi_spec.rb +1 -1
- data/specs/nodes/tcp_spec.rb +116 -27
- data/specs/nodes/web_spec.rb +1 -1
- data/specs/nodes/ws_spec.rb +1 -1
- data/specs/request_spec.rb +19 -0
- metadata +83 -80
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rjr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mo Morsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.0.0
|
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
26
|
version: 2.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eventmachine
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: json
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 1.7.6
|
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
54
|
version: 1.7.6
|
55
55
|
description: Ruby Json Rpc library
|
@@ -61,85 +61,88 @@ executables:
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
64
|
+
- LICENSE
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- bin/rjr-client
|
68
|
+
- bin/rjr-client-launcher
|
69
|
+
- bin/rjr-server
|
70
70
|
- examples/amqp.rb
|
71
|
-
- examples/structured_server.rb
|
72
71
|
- examples/client.rb
|
72
|
+
- examples/complete.rb
|
73
|
+
- examples/local.rb
|
74
|
+
- examples/server.rb
|
75
|
+
- examples/structured_server.rb
|
76
|
+
- examples/tcp.rb
|
77
|
+
- examples/timeout.rb
|
73
78
|
- examples/unix.rb
|
74
|
-
-
|
79
|
+
- examples/web.rb
|
80
|
+
- examples/ws.rb
|
81
|
+
- lib/rjr/common.rb
|
82
|
+
- lib/rjr/core_ext.rb
|
83
|
+
- lib/rjr/dispatcher.rb
|
84
|
+
- lib/rjr/messages.rb
|
75
85
|
- lib/rjr/messages/compressed.rb
|
76
|
-
- lib/rjr/messages/
|
77
|
-
- lib/rjr/messages/request.rb
|
86
|
+
- lib/rjr/messages/intermediate.rb
|
78
87
|
- lib/rjr/messages/notification.rb
|
79
|
-
- lib/rjr/messages.rb
|
80
|
-
- lib/rjr/
|
88
|
+
- lib/rjr/messages/request.rb
|
89
|
+
- lib/rjr/messages/response.rb
|
81
90
|
- lib/rjr/node.rb
|
82
|
-
- lib/rjr/
|
83
|
-
- lib/rjr/util/logger.rb
|
84
|
-
- lib/rjr/util/em_adapter.rb
|
85
|
-
- lib/rjr/util/handles_methods.rb
|
86
|
-
- lib/rjr/util/inspect.rb
|
87
|
-
- lib/rjr/util/has_messages.rb
|
88
|
-
- lib/rjr/util/thread_pool.rb
|
89
|
-
- lib/rjr/util/json_parser.rb
|
90
|
-
- lib/rjr/util/args.rb
|
91
|
-
- lib/rjr/request.rb
|
92
|
-
- lib/rjr/nodes/web.rb
|
93
|
-
- lib/rjr/nodes/udp.rb
|
94
|
-
- lib/rjr/nodes/tcp.rb
|
95
|
-
- lib/rjr/nodes/ssh.rb
|
96
|
-
- lib/rjr/nodes/ws.rb
|
97
|
-
- lib/rjr/nodes/tcp2.rb
|
98
|
-
- lib/rjr/nodes/local.rb
|
91
|
+
- lib/rjr/node_callback.rb
|
99
92
|
- lib/rjr/nodes/amqp.rb
|
100
|
-
- lib/rjr/nodes/xmpp.rb
|
101
|
-
- lib/rjr/nodes/file.rb
|
102
|
-
- lib/rjr/nodes/template.rb
|
103
93
|
- lib/rjr/nodes/easy.rb
|
104
|
-
- lib/rjr/nodes/
|
94
|
+
- lib/rjr/nodes/file.rb
|
95
|
+
- lib/rjr/nodes/local.rb
|
105
96
|
- lib/rjr/nodes/missing.rb
|
106
97
|
- lib/rjr/nodes/multi.rb
|
107
|
-
- lib/rjr/
|
98
|
+
- lib/rjr/nodes/ssh.rb
|
99
|
+
- lib/rjr/nodes/tcp.rb
|
100
|
+
- lib/rjr/nodes/tcp2.rb
|
101
|
+
- lib/rjr/nodes/template.rb
|
102
|
+
- lib/rjr/nodes/udp.rb
|
103
|
+
- lib/rjr/nodes/unix.rb
|
104
|
+
- lib/rjr/nodes/web.rb
|
105
|
+
- lib/rjr/nodes/ws.rb
|
106
|
+
- lib/rjr/nodes/xmpp.rb
|
107
|
+
- lib/rjr/request.rb
|
108
108
|
- lib/rjr/result.rb
|
109
|
-
- lib/rjr/
|
109
|
+
- lib/rjr/util/args.rb
|
110
|
+
- lib/rjr/util/em_adapter.rb
|
111
|
+
- lib/rjr/util/handles_methods.rb
|
112
|
+
- lib/rjr/util/has_messages.rb
|
113
|
+
- lib/rjr/util/inspect.rb
|
114
|
+
- lib/rjr/util/json_parser.rb
|
115
|
+
- lib/rjr/util/logger.rb
|
116
|
+
- lib/rjr/util/thread_pool.rb
|
117
|
+
- lib/rjr/version.rb
|
110
118
|
- site/index.html
|
111
119
|
- site/jquery-latest.js
|
112
|
-
- site/json.js
|
113
120
|
- site/jrw.js
|
114
|
-
-
|
115
|
-
-
|
116
|
-
- README.md
|
117
|
-
- specs/json_parser_spec.rb
|
118
|
-
- specs/messages/response_spec.rb
|
119
|
-
- specs/messages/request_spec.rb
|
120
|
-
- specs/messages/notification_spec.rb
|
121
|
+
- site/json.js
|
122
|
+
- specs/args_spec.rb
|
121
123
|
- specs/dispatcher_spec.rb
|
124
|
+
- specs/em_adapter_spec.rb
|
122
125
|
- specs/handles_methods_spec.rb
|
123
126
|
- specs/has_messages_spec.rb
|
124
|
-
- specs/
|
125
|
-
- specs/
|
126
|
-
- specs/
|
127
|
+
- specs/inspect_spec.rb
|
128
|
+
- specs/json_parser_spec.rb
|
129
|
+
- specs/messages/intermediate_spec.rb
|
130
|
+
- specs/messages/notification_spec.rb
|
131
|
+
- specs/messages/request_spec.rb
|
132
|
+
- specs/messages/response_spec.rb
|
127
133
|
- specs/node_callbacks_spec.rb
|
128
|
-
- specs/
|
129
|
-
- specs/nodes/
|
134
|
+
- specs/node_spec.rb
|
135
|
+
- specs/nodes/amqp_spec.rb
|
136
|
+
- specs/nodes/easy_spec.rb
|
137
|
+
- specs/nodes/local_spec.rb
|
130
138
|
- specs/nodes/multi_spec.rb
|
131
139
|
- specs/nodes/tcp_spec.rb
|
140
|
+
- specs/nodes/unix_spec.rb
|
132
141
|
- specs/nodes/web_spec.rb
|
133
|
-
- specs/nodes/local_spec.rb
|
134
|
-
- specs/nodes/amqp_spec.rb
|
135
142
|
- specs/nodes/ws_spec.rb
|
136
|
-
- specs/
|
137
|
-
- specs/
|
143
|
+
- specs/request_spec.rb
|
144
|
+
- specs/result_spec.rb
|
138
145
|
- specs/thread_pool_spec.rb
|
139
|
-
- specs/em_adapter_spec.rb
|
140
|
-
- bin/rjr-server
|
141
|
-
- bin/rjr-client
|
142
|
-
- bin/rjr-client-launcher
|
143
146
|
homepage: http://github.com/movitto/rjr
|
144
147
|
licenses:
|
145
148
|
- Apache 2.0
|
@@ -156,12 +159,12 @@ require_paths:
|
|
156
159
|
- lib
|
157
160
|
required_ruby_version: !ruby/object:Gem::Requirement
|
158
161
|
requirements:
|
159
|
-
- -
|
162
|
+
- - ">="
|
160
163
|
- !ruby/object:Gem::Version
|
161
164
|
version: 1.8.1
|
162
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
166
|
requirements:
|
164
|
-
- -
|
167
|
+
- - ">="
|
165
168
|
- !ruby/object:Gem::Version
|
166
169
|
version: 1.3.3
|
167
170
|
requirements:
|
@@ -169,32 +172,32 @@ requirements:
|
|
169
172
|
- The eventmachine_httpserver and em-http-request gems are needed to use the web node
|
170
173
|
- The em-websocket and em-websocket-client gems are needed to use the web socket node
|
171
174
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.
|
175
|
+
rubygems_version: 2.2.5
|
173
176
|
signing_key:
|
174
177
|
specification_version: 4
|
175
178
|
summary: JSON RPC server and client library over amqp, websockets, http, etc
|
176
179
|
test_files:
|
177
|
-
- specs/
|
180
|
+
- specs/inspect_spec.rb
|
181
|
+
- specs/thread_pool_spec.rb
|
182
|
+
- specs/has_messages_spec.rb
|
183
|
+
- specs/args_spec.rb
|
184
|
+
- specs/messages/notification_spec.rb
|
178
185
|
- specs/messages/response_spec.rb
|
186
|
+
- specs/messages/intermediate_spec.rb
|
179
187
|
- specs/messages/request_spec.rb
|
180
|
-
- specs/
|
188
|
+
- specs/result_spec.rb
|
189
|
+
- specs/json_parser_spec.rb
|
181
190
|
- specs/dispatcher_spec.rb
|
191
|
+
- specs/request_spec.rb
|
182
192
|
- specs/handles_methods_spec.rb
|
183
|
-
- specs/has_messages_spec.rb
|
184
193
|
- specs/node_spec.rb
|
185
|
-
- specs/args_spec.rb
|
186
|
-
- specs/request_spec.rb
|
187
194
|
- specs/node_callbacks_spec.rb
|
188
|
-
- specs/
|
189
|
-
- specs/nodes/
|
195
|
+
- specs/nodes/ws_spec.rb
|
196
|
+
- specs/nodes/local_spec.rb
|
190
197
|
- specs/nodes/multi_spec.rb
|
191
|
-
- specs/nodes/
|
198
|
+
- specs/nodes/unix_spec.rb
|
192
199
|
- specs/nodes/web_spec.rb
|
193
|
-
- specs/nodes/
|
200
|
+
- specs/nodes/tcp_spec.rb
|
194
201
|
- specs/nodes/amqp_spec.rb
|
195
|
-
- specs/nodes/ws_spec.rb
|
196
202
|
- specs/nodes/easy_spec.rb
|
197
|
-
- specs/inspect_spec.rb
|
198
|
-
- specs/thread_pool_spec.rb
|
199
203
|
- specs/em_adapter_spec.rb
|
200
|
-
has_rdoc:
|