qrpc 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +4 -1
- data/Gemfile +4 -4
- data/Gemfile.lock +16 -19
- data/Rakefile +3 -11
- data/TODO.md +1 -0
- data/VERSION +1 -1
- data/lib/qrpc/client/job.rb +1 -1
- data/lib/qrpc/protocol/qrpc-object.rb +3 -3
- data/qrpc.gemspec +18 -18
- metadata +8 -10
data/CHANGES.txt
CHANGED
data/Gemfile
CHANGED
@@ -4,12 +4,12 @@ source "http://rubygems.org"
|
|
4
4
|
gem "json-rpc-objects", ">= 0.3.3"
|
5
5
|
gem "depq", ">= 0.4"
|
6
6
|
gem "em-jack", ">= 0.1.3"
|
7
|
-
gem "eventmachine", ">= 0
|
8
|
-
gem "uuid", ">= 2.3.
|
7
|
+
gem "eventmachine", ">= 0"
|
8
|
+
gem "uuid", ">= 2.3.2"
|
9
9
|
|
10
10
|
# Add dependencies to develop your gem here.
|
11
11
|
# Include everything needed to run rake, tests, features, etc.
|
12
12
|
group :development do
|
13
|
-
gem "bundler", "
|
14
|
-
gem "jeweler", "
|
13
|
+
gem "bundler", ">= 1.0.0"
|
14
|
+
gem "jeweler", ">= 1.5.2"
|
15
15
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,40 +1,37 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
4
|
+
abstract (1.0.0)
|
5
|
+
addressable (2.2.6)
|
5
6
|
depq (0.4)
|
6
7
|
em-jack (0.1.3)
|
7
8
|
eventmachine
|
8
9
|
eventmachine (0.12.10)
|
9
10
|
git (1.2.5)
|
10
|
-
hash-utils (0.
|
11
|
-
jeweler (1.
|
12
|
-
bundler (~> 1.0
|
11
|
+
hash-utils (0.18.0)
|
12
|
+
jeweler (1.6.4)
|
13
|
+
bundler (~> 1.0)
|
13
14
|
git (>= 1.2.5)
|
14
15
|
rake
|
15
|
-
json-rpc-objects (0.
|
16
|
+
json-rpc-objects (0.4.2)
|
17
|
+
abstract (>= 1.0.0)
|
16
18
|
addressable (>= 2.2.2)
|
17
|
-
hash-utils (>= 0.
|
18
|
-
|
19
|
-
types (>= 0.1.0)
|
20
|
-
yajl-ruby (>= 0.7.8)
|
19
|
+
hash-utils (>= 0.18.0)
|
20
|
+
multi_json
|
21
21
|
macaddr (1.0.0)
|
22
|
-
|
23
|
-
rake (0.
|
24
|
-
|
25
|
-
multitype-introspection (>= 0.1.0)
|
26
|
-
uuid (2.3.1)
|
22
|
+
multi_json (1.0.3)
|
23
|
+
rake (0.9.2)
|
24
|
+
uuid (2.3.2)
|
27
25
|
macaddr (~> 1.0)
|
28
|
-
yajl-ruby (0.8.1)
|
29
26
|
|
30
27
|
PLATFORMS
|
31
28
|
ruby
|
32
29
|
|
33
30
|
DEPENDENCIES
|
34
|
-
bundler (
|
31
|
+
bundler (>= 1.0.0)
|
35
32
|
depq (>= 0.4)
|
36
33
|
em-jack (>= 0.1.3)
|
37
|
-
eventmachine
|
38
|
-
jeweler (
|
34
|
+
eventmachine
|
35
|
+
jeweler (>= 1.5.2)
|
39
36
|
json-rpc-objects (>= 0.3.3)
|
40
|
-
uuid (>= 2.3.
|
37
|
+
uuid (>= 2.3.2)
|
data/Rakefile
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'rubygems'
|
3
3
|
require 'bundler'
|
4
|
+
|
4
5
|
begin
|
5
6
|
Bundler.setup(:default, :development)
|
6
7
|
rescue Bundler::BundlerError => e
|
@@ -8,9 +9,10 @@ rescue Bundler::BundlerError => e
|
|
8
9
|
$stderr.puts "Run `bundle install` to install missing gems"
|
9
10
|
exit e.status_code
|
10
11
|
end
|
11
|
-
require 'rake'
|
12
12
|
|
13
|
+
require 'rake'
|
13
14
|
require 'jeweler'
|
15
|
+
|
14
16
|
Jeweler::Tasks.new do |gem|
|
15
17
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
16
18
|
gem.name = "qrpc"
|
@@ -25,13 +27,3 @@ Jeweler::Tasks.new do |gem|
|
|
25
27
|
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
26
28
|
end
|
27
29
|
Jeweler::RubygemsDotOrgTasks.new
|
28
|
-
|
29
|
-
require 'rake/rdoctask'
|
30
|
-
Rake::RDocTask.new do |rdoc|
|
31
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
32
|
-
|
33
|
-
rdoc.rdoc_dir = 'rdoc'
|
34
|
-
rdoc.title = "qrpc #{version}"
|
35
|
-
rdoc.rdoc_files.include('README*')
|
36
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
37
|
-
end
|
data/TODO.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/qrpc/client/job.rb
CHANGED
@@ -60,14 +60,14 @@ module QRPC
|
|
60
60
|
#
|
61
61
|
|
62
62
|
def output
|
63
|
-
result = {
|
63
|
+
result = { "version" => "1.0.1" }
|
64
64
|
|
65
65
|
if not @priority.nil?
|
66
|
-
result[
|
66
|
+
result["priority"] = @priority
|
67
67
|
end
|
68
68
|
|
69
69
|
if not @client.nil?
|
70
|
-
result[
|
70
|
+
result["client"] = @client
|
71
71
|
end
|
72
72
|
|
73
73
|
return result
|
data/qrpc.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{qrpc}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{2011-
|
11
|
+
s.authors = [%q{Martin Kozák}]
|
12
|
+
s.date = %q{2011-08-04}
|
13
13
|
s.email = %q{martinkozak@martinkozak.net}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
@@ -42,9 +42,9 @@ Gem::Specification.new do |s|
|
|
42
42
|
"test-server.rb"
|
43
43
|
]
|
44
44
|
s.homepage = %q{http://github.com/martinkozak/qrpc}
|
45
|
-
s.licenses = [
|
46
|
-
s.require_paths = [
|
47
|
-
s.rubygems_version = %q{1.
|
45
|
+
s.licenses = [%q{MIT}]
|
46
|
+
s.require_paths = [%q{lib}]
|
47
|
+
s.rubygems_version = %q{1.8.6}
|
48
48
|
s.summary = %q{Queued JSON-RPC client and server. Works as normal RPC server, but through queue interface, so allows highly scalable, distributed and asynchronous remote API implementation and fast data processing. It's based on eventmachine and beanstalkd, so it's fast and thread safe.}
|
49
49
|
|
50
50
|
if s.respond_to? :specification_version then
|
@@ -54,27 +54,27 @@ Gem::Specification.new do |s|
|
|
54
54
|
s.add_runtime_dependency(%q<json-rpc-objects>, [">= 0.3.3"])
|
55
55
|
s.add_runtime_dependency(%q<depq>, [">= 0.4"])
|
56
56
|
s.add_runtime_dependency(%q<em-jack>, [">= 0.1.3"])
|
57
|
-
s.add_runtime_dependency(%q<eventmachine>, [">= 0
|
58
|
-
s.add_runtime_dependency(%q<uuid>, [">= 2.3.
|
59
|
-
s.add_development_dependency(%q<bundler>, ["
|
60
|
-
s.add_development_dependency(%q<jeweler>, ["
|
57
|
+
s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
|
58
|
+
s.add_runtime_dependency(%q<uuid>, [">= 2.3.2"])
|
59
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
60
|
+
s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
|
61
61
|
else
|
62
62
|
s.add_dependency(%q<json-rpc-objects>, [">= 0.3.3"])
|
63
63
|
s.add_dependency(%q<depq>, [">= 0.4"])
|
64
64
|
s.add_dependency(%q<em-jack>, [">= 0.1.3"])
|
65
|
-
s.add_dependency(%q<eventmachine>, [">= 0
|
66
|
-
s.add_dependency(%q<uuid>, [">= 2.3.
|
67
|
-
s.add_dependency(%q<bundler>, ["
|
68
|
-
s.add_dependency(%q<jeweler>, ["
|
65
|
+
s.add_dependency(%q<eventmachine>, [">= 0"])
|
66
|
+
s.add_dependency(%q<uuid>, [">= 2.3.2"])
|
67
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
68
|
+
s.add_dependency(%q<jeweler>, [">= 1.5.2"])
|
69
69
|
end
|
70
70
|
else
|
71
71
|
s.add_dependency(%q<json-rpc-objects>, [">= 0.3.3"])
|
72
72
|
s.add_dependency(%q<depq>, [">= 0.4"])
|
73
73
|
s.add_dependency(%q<em-jack>, [">= 0.1.3"])
|
74
|
-
s.add_dependency(%q<eventmachine>, [">= 0
|
75
|
-
s.add_dependency(%q<uuid>, [">= 2.3.
|
76
|
-
s.add_dependency(%q<bundler>, ["
|
77
|
-
s.add_dependency(%q<jeweler>, ["
|
74
|
+
s.add_dependency(%q<eventmachine>, [">= 0"])
|
75
|
+
s.add_dependency(%q<uuid>, [">= 2.3.2"])
|
76
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
77
|
+
s.add_dependency(%q<jeweler>, [">= 1.5.2"])
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: qrpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- "Martin Koz\xC3\xA1k"
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-08-04 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: json-rpc-objects
|
@@ -53,7 +52,7 @@ dependencies:
|
|
53
52
|
requirements:
|
54
53
|
- - ">="
|
55
54
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0
|
55
|
+
version: "0"
|
57
56
|
type: :runtime
|
58
57
|
prerelease: false
|
59
58
|
version_requirements: *id004
|
@@ -64,7 +63,7 @@ dependencies:
|
|
64
63
|
requirements:
|
65
64
|
- - ">="
|
66
65
|
- !ruby/object:Gem::Version
|
67
|
-
version: 2.3.
|
66
|
+
version: 2.3.2
|
68
67
|
type: :runtime
|
69
68
|
prerelease: false
|
70
69
|
version_requirements: *id005
|
@@ -73,7 +72,7 @@ dependencies:
|
|
73
72
|
requirement: &id006 !ruby/object:Gem::Requirement
|
74
73
|
none: false
|
75
74
|
requirements:
|
76
|
-
- -
|
75
|
+
- - ">="
|
77
76
|
- !ruby/object:Gem::Version
|
78
77
|
version: 1.0.0
|
79
78
|
type: :development
|
@@ -84,7 +83,7 @@ dependencies:
|
|
84
83
|
requirement: &id007 !ruby/object:Gem::Requirement
|
85
84
|
none: false
|
86
85
|
requirements:
|
87
|
-
- -
|
86
|
+
- - ">="
|
88
87
|
- !ruby/object:Gem::Version
|
89
88
|
version: 1.5.2
|
90
89
|
type: :development
|
@@ -124,7 +123,6 @@ files:
|
|
124
123
|
- qrpc.gemspec
|
125
124
|
- test-client.rb
|
126
125
|
- test-server.rb
|
127
|
-
has_rdoc: true
|
128
126
|
homepage: http://github.com/martinkozak/qrpc
|
129
127
|
licenses:
|
130
128
|
- MIT
|
@@ -138,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
136
|
requirements:
|
139
137
|
- - ">="
|
140
138
|
- !ruby/object:Gem::Version
|
141
|
-
hash:
|
139
|
+
hash: 3574050090590324114
|
142
140
|
segments:
|
143
141
|
- 0
|
144
142
|
version: "0"
|
@@ -151,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
149
|
requirements: []
|
152
150
|
|
153
151
|
rubyforge_project:
|
154
|
-
rubygems_version: 1.
|
152
|
+
rubygems_version: 1.8.6
|
155
153
|
signing_key:
|
156
154
|
specification_version: 3
|
157
155
|
summary: Queued JSON-RPC client and server. Works as normal RPC server, but through queue interface, so allows highly scalable, distributed and asynchronous remote API implementation and fast data processing. It's based on eventmachine and beanstalkd, so it's fast and thread safe.
|