refinery 0.9.13 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.13
1
+ 0.9.14
@@ -8,11 +8,18 @@ module Refinery #:nodoc:
8
8
  queue_provider.queue(name)
9
9
  end
10
10
 
11
+ # Given the queue name and a block, yield the named queue into
12
+ # the block. This method handles any exceptions that are raised
13
+ # in the block and will recreate the provider automatically.
14
+ #
15
+ # Note that errors will not be propagated beyond this block. You
16
+ # have been warned.
11
17
  def with_queue(name, &block)
12
18
  begin
13
19
  yield queue(name)
14
20
  rescue Exception => e
15
21
  logger.error "Queue error: #{e.message}"
22
+ @queue_provider = nil
16
23
  sleep(5)
17
24
  retry
18
25
  end
data/refinery.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinery}
5
- s.version = "0.9.13"
5
+ s.version = "0.9.14"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Anthony Eden"]
9
- s.date = %q{2009-07-09}
9
+ s.date = %q{2009-07-10}
10
10
  s.description = %q{Process data in a distributed fashion.}
11
11
  s.email = %q{anthonyeden@gmail.com}
12
12
  s.executables = ["epub", "monitor", "pubnow", "refinery"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.13
4
+ version: 0.9.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Eden
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-09 00:00:00 -04:00
12
+ date: 2009-07-10 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15