refinery 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5
1
+ 0.9.6
@@ -94,7 +94,7 @@ module Refinery #:nodoc:
94
94
  message.delete()
95
95
  end
96
96
  end
97
- sleep(1)
97
+ sleep(settings['sleep'] || 5)
98
98
  rescue Exception => e
99
99
  logger.error "An error occurred while receiving from the waiting queue: #{e.message}"
100
100
  end
@@ -59,7 +59,7 @@ module Refinery #:nodoc:
59
59
  rescue Exception => e
60
60
  logger.error e
61
61
  end
62
- sleep(2)
62
+ sleep(5)
63
63
  end
64
64
  end
65
65
  end
@@ -82,7 +82,7 @@ module Refinery #:nodoc:
82
82
  rescue Exception => e
83
83
  logger.error e
84
84
  end
85
- sleep(2)
85
+ sleep(5)
86
86
  end
87
87
  end
88
88
  end
@@ -106,7 +106,7 @@ module Refinery #:nodoc:
106
106
  rescue Exception => e
107
107
  logger.error e
108
108
  end
109
- sleep(2)
109
+ sleep(5)
110
110
  end
111
111
  end
112
112
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinery}
5
- s.version = "0.9.5"
5
+ s.version = "0.9.6"
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"]
@@ -4,25 +4,27 @@ class DaemonTest < Test::Unit::TestCase
4
4
  setup do
5
5
  @server = stub('Server')
6
6
  @waiting_queue = stub('Queue(waiting)')
7
- @waiting_queue.stubs(:receive)
8
7
  @error_queue = stub('Queue(error)')
9
8
  @done_queue = stub('Queue(done)')
10
9
  end
11
10
  should "be startable" do
11
+ @waiting_queue.stubs(:receive)
12
12
  assert_nothing_raised do
13
13
  daemon = Refinery::Daemon.new(@server, 'sample', @waiting_queue, @error_queue, @done_queue)
14
14
  end
15
15
  end
16
16
  should "have logging" do
17
+ @waiting_queue.stubs(:receive)
17
18
  daemon = Refinery::Daemon.new(@server, 'sample', @waiting_queue, @error_queue, @done_queue)
18
19
  assert_not_nil daemon.logger
19
20
  end
20
21
  should "allow visibility setting" do
21
- @waiting_queue.stubs(:receive).with({'visibility' => 600})
22
+ @waiting_queue.expects(:receive).with(600)
22
23
  daemon = Refinery::Daemon.new(@server, 'sample', @waiting_queue, @error_queue, @done_queue, {'visibility' => 600})
23
24
  end
24
25
  context "that is started" do
25
26
  setup do
27
+ @waiting_queue.stubs(:receive)
26
28
  @daemon = Refinery::Daemon.new(@server, 'sample', @waiting_queue, @error_queue, @done_queue)
27
29
  end
28
30
  should "have a state of running" do
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.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Eden