qrpc 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +7 -0
- data/TODO.md +1 -1
- data/VERSION +1 -1
- data/lib/qrpc/client.rb +1 -1
- data/lib/qrpc/client/dispatcher.rb +1 -4
- data/lib/qrpc/client/exception.rb +1 -3
- data/lib/qrpc/client/job.rb +2 -4
- data/lib/qrpc/general.rb +1 -1
- data/lib/qrpc/generator/object-id.rb +1 -1
- data/lib/qrpc/generator/uuid.rb +1 -1
- data/lib/qrpc/locator.rb +1 -1
- data/lib/qrpc/locator/em-jack.rb +1 -1
- data/lib/qrpc/locator/evented-queue.rb +1 -1
- data/lib/qrpc/protocol/abstract.rb +1 -1
- data/lib/qrpc/protocol/abstract/error.rb +1 -1
- data/lib/qrpc/protocol/abstract/object.rb +1 -1
- data/lib/qrpc/protocol/abstract/request.rb +1 -1
- data/lib/qrpc/protocol/abstract/response.rb +1 -1
- data/lib/qrpc/protocol/json-rpc.rb +1 -1
- data/lib/qrpc/protocol/json-rpc/error.rb +1 -1
- data/lib/qrpc/protocol/json-rpc/native/exception-data.rb +1 -1
- data/lib/qrpc/protocol/json-rpc/native/qrpc-object.rb +1 -1
- data/lib/qrpc/protocol/json-rpc/request.rb +2 -1
- data/lib/qrpc/protocol/json-rpc/response.rb +2 -1
- data/lib/qrpc/protocol/object/request.rb +1 -1
- data/lib/qrpc/server.rb +1 -4
- data/lib/qrpc/server/dispatcher.rb +1 -0
- data/lib/qrpc/server/job.rb +4 -8
- data/qrpc.gemspec +2 -2
- metadata +3 -3
data/CHANGES.txt
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
|
2
|
+
0.9.1 (2012-05-28)
|
3
|
+
* corrected fatal redundant dependency requirements
|
4
|
+
* documentation corrections
|
5
|
+
|
2
6
|
0.9.0 (2012-05-24)
|
3
7
|
* transfer agents generic support
|
4
8
|
* protocols generic support
|
@@ -7,6 +11,9 @@
|
|
7
11
|
* server synchronicity option support
|
8
12
|
* substantial code reorganization
|
9
13
|
|
14
|
+
0.4.0 (2012-02-19)
|
15
|
+
* preparations for next version
|
16
|
+
|
10
17
|
0.3.2 (2011-08-28)
|
11
18
|
* UUID of the client now generated in compact format
|
12
19
|
* compatiblity corrections with OkJson
|
data/TODO.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
* plugins for more queue servers (starling, sparrow, kestrel, stomp, AMQP
|
1
|
+
* plugins for more queue servers (starling, sparrow, kestrel, stomp, AMQP, XMPP, Amazon SQS, ActiveMQ, MSMQ)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
data/lib/qrpc/client.rb
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
|
2
|
+
# (c) 2011-2012 Martin Kozák (martinkozak@martinkozak.net)
|
3
3
|
|
4
|
-
require "em-jack"
|
5
|
-
require "em-batch"
|
6
4
|
require "qrpc/general"
|
7
5
|
require "qrpc/client/job"
|
8
6
|
require "hash-utils/object" # >= 1.1.0
|
9
|
-
require "json-rpc-objects/response"
|
10
7
|
|
11
8
|
##
|
12
9
|
# General QRPC module.
|
data/lib/qrpc/client/job.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
|
2
|
+
# (c) 2011-2012 Martin Kozák (martinkozak@martinkozak.net)
|
3
3
|
|
4
|
-
require "uuid"
|
5
|
-
require "qrpc/protocol/request"
|
6
4
|
require "qrpc/client/exception"
|
7
5
|
require "qrpc/general"
|
8
6
|
|
@@ -166,7 +164,7 @@ module QRPC
|
|
166
164
|
|
167
165
|
##
|
168
166
|
# Assigns job result and subsequently calls callback.
|
169
|
-
# @param [
|
167
|
+
# @param [QRPC::Protocol::Abstract::Response] result of the call
|
170
168
|
#
|
171
169
|
|
172
170
|
def assign_result(result)
|
data/lib/qrpc/general.rb
CHANGED
data/lib/qrpc/generator/uuid.rb
CHANGED
data/lib/qrpc/locator.rb
CHANGED
data/lib/qrpc/locator/em-jack.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
|
2
|
+
# (c) 2011-2012 Martin Kozák (martinkozak@martinkozak.net)
|
3
3
|
|
4
4
|
require "qrpc/general"
|
5
5
|
require "qrpc/protocol/abstract/request"
|
6
6
|
require "qrpc/protocol/json-rpc/native/qrpc-object"
|
7
|
+
require "json-rpc-objects/request"
|
7
8
|
|
8
9
|
##
|
9
10
|
# General QRPC module.
|
@@ -1,11 +1,12 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
|
2
|
+
# (c) 2011-2012 Martin Kozák (martinkozak@martinkozak.net)
|
3
3
|
|
4
4
|
require "base64"
|
5
5
|
|
6
6
|
require "qrpc/general"
|
7
7
|
require "qrpc/protocol/abstract/response"
|
8
8
|
require "qrpc/protocol/json-rpc/native/qrpc-object"
|
9
|
+
require "json-rpc-objects/response"
|
9
10
|
|
10
11
|
##
|
11
12
|
# General QRPC module.
|
data/lib/qrpc/server.rb
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
|
2
|
+
# (c) 2011-2012 Martin Kozák (martinkozak@martinkozak.net)
|
3
3
|
|
4
|
-
require "qrpc/protocol/qrpc-object"
|
5
4
|
require "qrpc/server/dispatcher"
|
6
5
|
require "qrpc/server/job"
|
7
6
|
require "qrpc/general"
|
8
7
|
|
9
8
|
require "hash-utils/hash" # >= 0.1.0
|
10
9
|
require "eventmachine"
|
11
|
-
require "em-batch"
|
12
|
-
require "em-jack"
|
13
10
|
require "base64"
|
14
11
|
|
15
12
|
##
|
data/lib/qrpc/server/job.rb
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
# (c) 2011-2012 Martin Kozák (martinkozak@martinkozak.net)
|
3
|
+
|
2
4
|
require "eventmachine"
|
3
|
-
require "json-rpc-objects/request"
|
4
|
-
require "json-rpc-objects/response"
|
5
|
-
require "json-rpc-objects/error"
|
6
5
|
require "qrpc/general"
|
7
|
-
require "qrpc/protocol/qrpc-object"
|
8
|
-
require "qrpc/protocol/exception-data"
|
9
|
-
|
10
6
|
|
11
7
|
##
|
12
8
|
# General QRPC module.
|
@@ -66,7 +62,7 @@ module QRPC
|
|
66
62
|
#
|
67
63
|
# @param [Object] object which will serve as API
|
68
64
|
# @param [Symbol] synchronicity API methods synchronicity
|
69
|
-
# @param [
|
65
|
+
# @param [Object] job beanstalk job
|
70
66
|
# @param [QRPC::Protocol::Abstract] protocol protocol handling instance
|
71
67
|
#
|
72
68
|
|
@@ -131,7 +127,7 @@ module QRPC
|
|
131
127
|
|
132
128
|
##
|
133
129
|
# Returns job in request form.
|
134
|
-
# @return [
|
130
|
+
# @return [QRPC::Protocol::Abstract::Request] request associated to job
|
135
131
|
#
|
136
132
|
|
137
133
|
def request
|
data/qrpc.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "qrpc"
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Martin Koz\u{e1}k"]
|
12
|
-
s.date = "2012-05-
|
12
|
+
s.date = "2012-05-28"
|
13
13
|
s.email = "martinkozak@martinkozak.net"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qrpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json-rpc-objects
|
@@ -285,7 +285,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
285
285
|
version: '0'
|
286
286
|
segments:
|
287
287
|
- 0
|
288
|
-
hash:
|
288
|
+
hash: 229118400242368258
|
289
289
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
290
290
|
none: false
|
291
291
|
requirements:
|