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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b7958507638d32509950d0bb5700e99dd53dc37
4
- data.tar.gz: 3fc180a3a5ddf597317707b80ddcc60020f4593f
3
+ metadata.gz: 3dbd683e2f0619c5472580caa0afddbe1a2284cf
4
+ data.tar.gz: a50cdd52ca727b361b68de8aba66e91a402cc7e0
5
5
  SHA512:
6
- metadata.gz: a198eaabed1459eda780ca4b4f41d917f41e01ffd0b5d8042872733ed938599254e15ae651d8433e2f2274607643375832fbb4076c4e0cbfdc2f5fa988b8b163
7
- data.tar.gz: 8b347d3b83c894c659005d8e573ca92cd493caab003158863297e411f5d94835d7c201bc08319b6149e541687c434fec906c8d9ed870cd300c6556c108f6cf6e
6
+ metadata.gz: 6f9baef246606e6fd33545e3b35965a4927f925bdd0c324e5f3b76ad3b6c9ad07bd25a02d15b3afaba8833fa6a7eff50730175ae3f87fe0715dacd214eda4e00
7
+ data.tar.gz: 2e9c5374b57766dfddf7f52ff981fe924ed68179c4214c1195bd0a79501f4f8612ba729e776d44560a3f8a87c513bb1ac75a50e7838e271439d7bd85af24f121
data/Gemfile CHANGED
@@ -1,3 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
+ group :development, :test do
4
+ case RUBY_VERSION.match(/^([12])/)[1]
5
+ when "1"
6
+ gem 'debugger'
7
+ when "2"
8
+ gem 'byebug'
9
+ end
10
+ end
3
11
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nezu (0.8.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.0.3)
17
- activesupport (= 4.0.3)
18
- builder (~> 3.1.0)
19
- activerecord (4.0.3)
20
- activemodel (= 4.0.3)
21
- activerecord-deprecated_finders (~> 1.0.2)
22
- activesupport (= 4.0.3)
23
- arel (~> 4.0.0)
24
- activerecord-deprecated_finders (1.0.3)
25
- activesupport (4.0.3)
26
- i18n (~> 0.6, >= 0.6.4)
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 (~> 0.3.37)
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 (4.0.2)
36
- atomic (1.1.15)
37
- builder (3.1.4)
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
- columnize (0.3.6)
41
- configatron (3.0.1)
42
- debugger (1.6.5)
43
- columnize (>= 0.3.1)
44
- debugger-linecache (~> 1.2.0)
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 (4.7.5)
53
- multi_json (1.8.4)
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.2.0)
72
- atomic (>= 1.1.7, < 2)
73
- tins (1.0.0)
74
- tzinfo (0.3.38)
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
- debugger
74
+ byebug
81
75
  nezu!
82
76
  rake
83
77
  rspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
data/lib/nezu/cli.rb CHANGED
@@ -67,8 +67,6 @@ begin
67
67
  optparse.parse!
68
68
  end
69
69
 
70
- require 'debugger' if Nezu.env.development? || Nezu.env.test?
71
-
72
70
  Nezu::CLI.send(command, options)
73
71
  rescue OptionParser::MissingArgument, OptionParser::InvalidOption
74
72
  puts optparse
@@ -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.0
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-03-04 00:00:00.000000000 Z
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.0
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