tootsie 0.9.27 → 0.9.28

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -270,12 +270,12 @@ The queue options is a hash with a key `adapter` telling Tootsie which queue imp
270
270
 
271
271
  The `sqs` adapter takes the following options:
272
272
 
273
- queue_name: <name of queue, defaults to 'tootsie'>
273
+ queue: <name of queue, defaults to 'tootsie'>
274
274
  max_backoff: <max seconds to wait when queue is empty, defaults to 2>
275
275
 
276
276
  For the `amqp` adapter:
277
277
 
278
- queue_name: <name of queue, defaults to 'tootsie'>
278
+ queue: <name of queue, defaults to 'tootsie'>
279
279
  host_name: <host name of AMQP server, defaults to localhost>
280
280
  max_backoff: <max seconds to wait when queue is empty, defaults to 2>
281
281
 
data/Tootsie.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_runtime_dependency 'xml-simple', ['~> 1.0.12']
28
28
  s.add_runtime_dependency 'thin', ['~> 1.2.7']
29
29
  s.add_runtime_dependency 's3', ['~> 0.3.8']
30
- s.add_runtime_dependency 'bunny', ['~> 0.7.8']
30
+ s.add_runtime_dependency 'bunny', ['~> 0.8.0']
31
31
  s.add_runtime_dependency 'sqs', ['~> 0.1.2']
32
32
  s.add_runtime_dependency 'unicorn', ['~> 4.1.1']
33
33
  s.add_runtime_dependency 'i18n', ['>= 0.4.2']
@@ -62,8 +62,9 @@ module Tootsie
62
62
  def with_reconnect(&block)
63
63
  begin
64
64
  result = yield
65
- rescue Bunny::ServerDownError
66
- @logger.error "Error connecting to AMQP server, retrying"
65
+ rescue Bunny::ServerDownError, Bunny::ConnectionError, Bunny::ProtocolError => e
66
+ @logger.error "Error in AMQP server connection (#{e.class}: #{e}), retrying"
67
+ sleep(0.5)
67
68
  connect!
68
69
  retry
69
70
  else
@@ -74,9 +75,8 @@ module Tootsie
74
75
  def with_retry(&block)
75
76
  begin
76
77
  result = yield
77
- rescue Exception => exception
78
- check_exception(exception)
79
- @logger.error("Queue access failed with exception #{exception.class} (#{exception.message}), will retry")
78
+ rescue StandardError => e
79
+ @logger.error("Queue access failed with exception #{e.class} (#{e.message}), will retry")
80
80
  sleep(0.5)
81
81
  retry
82
82
  else
@@ -100,11 +100,6 @@ module Tootsie
100
100
  end
101
101
  end
102
102
 
103
- def check_exception(exception)
104
- raise exception if exception.is_a?(SystemExit)
105
- raise exception if exception.is_a?(SignalException) and not exception.is_a?(Timeout::Error)
106
- end
107
-
108
103
  end
109
104
 
110
105
  end
@@ -1,3 +1,3 @@
1
1
  module Tootsie
2
- VERSION = '0.9.27'
2
+ VERSION = '0.9.28'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tootsie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.27
4
+ version: 0.9.28
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-09-13 00:00:00.000000000 Z
12
+ date: 2012-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -162,7 +162,7 @@ dependencies:
162
162
  requirements:
163
163
  - - ~>
164
164
  - !ruby/object:Gem::Version
165
- version: 0.7.8
165
+ version: 0.8.0
166
166
  type: :runtime
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
@@ -170,7 +170,7 @@ dependencies:
170
170
  requirements:
171
171
  - - ~>
172
172
  - !ruby/object:Gem::Version
173
- version: 0.7.8
173
+ version: 0.8.0
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: sqs
176
176
  requirement: !ruby/object:Gem::Requirement
@@ -326,7 +326,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
326
326
  version: '0'
327
327
  segments:
328
328
  - 0
329
- hash: -3013484921319559554
329
+ hash: -2745809018023260649
330
330
  required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  none: false
332
332
  requirements:
@@ -335,7 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
335
  version: '0'
336
336
  segments:
337
337
  - 0
338
- hash: -3013484921319559554
338
+ hash: -2745809018023260649
339
339
  requirements: []
340
340
  rubyforge_project: tootsie
341
341
  rubygems_version: 1.8.24