amqp_notifier 0.0.7b → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{amqp_notifier}
5
- s.version = "0.0.7b"
5
+ s.version = "0.0.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Pau","TLmaK0"]
9
- s.date = %q{2011-11-21}
9
+ s.date = %q{2011-9-15}
10
10
  s.description = %q{AMQP & Qusion helper class}
11
11
  s.email = %q{pau@nosolopau.com}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/amqp_notifier.rb"]
@@ -19,7 +19,7 @@ class AmqpNotifier
19
19
  end
20
20
 
21
21
  def subscribe(key = '', &block)
22
- $stdout.puts "Subscription to Exchange: #{@exchange} Queue: #{@queue} Key: #{key}"
22
+ $stdout.puts "Subscriction to Exchange: #{@exchange} Queue: #{@queue} Key: #{key}"
23
23
  Qusion.channel.prefetch(1).queue(@queue, :durable => true).bind(Qusion.channel.topic(@exchange, @options), :key => key).subscribe(:ack => true) do |info, message|
24
24
  for i in (0..RETRIES)
25
25
  begin
@@ -31,12 +31,8 @@ class AmqpNotifier
31
31
  $stderr.puts "#{e.inspect}:"
32
32
  e.backtrace.each {|line| $stderr.puts line}
33
33
  if i == RETRIES
34
- begin
35
- AmqpNotifier.new("#{@exchange}_errors").publish(key, message)
36
- info.reject(:requeue => false)
37
- rescue
38
- $stderr.puts "Error sending message to exchange #{@exchange}_errors"
39
- end
34
+ AmqpNotifier.new("#{@exchange}_errors").publish(key, message)
35
+ info.reject(:requeue => false)
40
36
  else
41
37
  sleep(1)
42
38
  next
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp_notifier
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7b
9
- version: 0.0.7b
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pau
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-21 00:00:00 +01:00
18
+ date: 2011-09-15 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21