nezu 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -0
- data/Gemfile.lock +28 -34
- data/VERSION +1 -1
- data/lib/nezu/cli.rb +0 -2
- data/lib/nezu/runtime/recipient.rb +12 -2
- data/nezu.gemspec +0 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dbd683e2f0619c5472580caa0afddbe1a2284cf
|
4
|
+
data.tar.gz: a50cdd52ca727b361b68de8aba66e91a402cc7e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f9baef246606e6fd33545e3b35965a4927f925bdd0c324e5f3b76ad3b6c9ad07bd25a02d15b3afaba8833fa6a7eff50730175ae3f87fe0715dacd214eda4e00
|
7
|
+
data.tar.gz: 2e9c5374b57766dfddf7f52ff981fe924ed68179c4214c1195bd0a79501f4f8612ba729e776d44560a3f8a87c513bb1ac75a50e7838e271439d7bd85af24f121
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nezu (0.
|
4
|
+
nezu (0.9.1)
|
5
5
|
activerecord
|
6
6
|
activesupport
|
7
7
|
amqp
|
@@ -13,45 +13,39 @@ PATH
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
activemodel (4.
|
17
|
-
activesupport (= 4.
|
18
|
-
builder (~> 3.1
|
19
|
-
activerecord (4.
|
20
|
-
activemodel (= 4.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
minitest (~> 4.2)
|
28
|
-
multi_json (~> 1.3)
|
16
|
+
activemodel (4.1.1)
|
17
|
+
activesupport (= 4.1.1)
|
18
|
+
builder (~> 3.1)
|
19
|
+
activerecord (4.1.1)
|
20
|
+
activemodel (= 4.1.1)
|
21
|
+
activesupport (= 4.1.1)
|
22
|
+
arel (~> 5.0.0)
|
23
|
+
activesupport (4.1.1)
|
24
|
+
i18n (~> 0.6, >= 0.6.9)
|
25
|
+
json (~> 1.7, >= 1.7.7)
|
26
|
+
minitest (~> 5.1)
|
29
27
|
thread_safe (~> 0.1)
|
30
|
-
tzinfo (~>
|
28
|
+
tzinfo (~> 1.1)
|
31
29
|
amq-protocol (1.9.2)
|
32
30
|
amqp (1.3.0)
|
33
31
|
amq-protocol (>= 1.9.2)
|
34
32
|
eventmachine
|
35
|
-
arel (
|
36
|
-
|
37
|
-
|
38
|
-
bunny (1.1.3)
|
33
|
+
arel (5.0.1.20140414130214)
|
34
|
+
builder (3.2.2)
|
35
|
+
bunny (1.3.1)
|
39
36
|
amq-protocol (>= 1.9.2)
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
debugger-ruby_core_source (~> 1.3.1)
|
37
|
+
byebug (3.1.2)
|
38
|
+
columnize (~> 0.8)
|
39
|
+
debugger-linecache (~> 1.2)
|
40
|
+
columnize (0.8.9)
|
41
|
+
configatron (4.1.0)
|
46
42
|
debugger-linecache (1.2.0)
|
47
|
-
debugger-ruby_core_source (1.3.1)
|
48
43
|
diff-lcs (1.2.5)
|
49
44
|
eventmachine (1.0.3)
|
50
45
|
i18n (0.6.9)
|
51
46
|
json (1.8.1)
|
52
|
-
minitest (
|
53
|
-
|
54
|
-
mysql2 (0.3.15)
|
47
|
+
minitest (5.3.5)
|
48
|
+
mysql2 (0.3.16)
|
55
49
|
rake (10.1.1)
|
56
50
|
rdoc (4.1.1)
|
57
51
|
json (~> 1.4)
|
@@ -68,16 +62,16 @@ GEM
|
|
68
62
|
rdoc (~> 4.0, < 5.0)
|
69
63
|
term-ansicolor (1.3.0)
|
70
64
|
tins (~> 1.0)
|
71
|
-
thread_safe (0.
|
72
|
-
|
73
|
-
|
74
|
-
|
65
|
+
thread_safe (0.3.4)
|
66
|
+
tins (1.3.0)
|
67
|
+
tzinfo (1.2.1)
|
68
|
+
thread_safe (~> 0.1)
|
75
69
|
|
76
70
|
PLATFORMS
|
77
71
|
ruby
|
78
72
|
|
79
73
|
DEPENDENCIES
|
80
|
-
|
74
|
+
byebug
|
81
75
|
nezu!
|
82
76
|
rake
|
83
77
|
rspec
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
data/lib/nezu/cli.rb
CHANGED
@@ -9,13 +9,23 @@ module Nezu
|
|
9
9
|
class RecipientError < RuntimeError
|
10
10
|
def self.does_not_exist(q)
|
11
11
|
klass = q.sub(/^#{Nezu::Config.amqp.development.queue_prefix}./, '').sub(/.#{Nezu::Config.amqp.development.queue_postfix}$/,'').classify
|
12
|
+
all_producers = Nezu::Runtime::Producer.descendants.inject({}) {|accu, producer| accu.merge({producer.name => producer.queue_name})}
|
13
|
+
|
12
14
|
message = %Q(
|
13
|
-
The class "#{klass}" doesn`t exist or is not a child of "Nezu::Runtime::Producer".
|
14
|
-
Please create one in \"app/producers/#{klass.underscore}.rb\" with the content of at least:
|
15
15
|
|
16
|
+
I couldn't find the queue "#{q}" anywhere in the producers.
|
17
|
+
Please create one in \"app/producers/#{klass.underscore}.rb\" with the content of at least:
|
18
|
+
-----------8<-----------8<-----------8<-----------
|
16
19
|
class #{klass} < Nezu::Runtime::Producer
|
17
20
|
end
|
21
|
+
----------->8----------->8----------->8-----------
|
22
|
+
These are the producers i've got:
|
23
|
+
|
24
|
+
|
18
25
|
).gsub(/^\s*/, '')
|
26
|
+
all_producers.each do |p,q|
|
27
|
+
message << %Q(class: "#{p}" queue_name: "#{q}"\n)
|
28
|
+
end
|
19
29
|
self.new(message)
|
20
30
|
end
|
21
31
|
|
data/nezu.gemspec
CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_development_dependency 'rake'
|
19
19
|
s.add_development_dependency 'sdoc'
|
20
20
|
s.add_development_dependency 'rspec'
|
21
|
-
s.add_development_dependency 'debugger'
|
22
21
|
|
23
22
|
s.files = `git ls-files`.split("\n")
|
24
23
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nezu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sascha Teske
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: amqp
|
@@ -151,20 +151,6 @@ dependencies:
|
|
151
151
|
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: debugger
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: '0'
|
161
|
-
type: :development
|
162
|
-
prerelease: false
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - ">="
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: '0'
|
168
154
|
description: Skel generator and launcher for amqp consumers.
|
169
155
|
email: sascha.teske@gmail.com fgoersdorf@gmail.com
|
170
156
|
executables:
|
@@ -258,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
258
244
|
version: '0'
|
259
245
|
requirements: []
|
260
246
|
rubyforge_project:
|
261
|
-
rubygems_version: 2.2.
|
247
|
+
rubygems_version: 2.2.2
|
262
248
|
signing_key:
|
263
249
|
specification_version: 4
|
264
250
|
summary: Skel generator and launcher for amqp consumers
|