angael 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -82,13 +82,6 @@ module Angael
82
82
  end
83
83
  end
84
84
 
85
- # This only exists for the sake of testing. I need a way to stub the restart!
86
- # but not the original start!
87
- # Note: this method is not tested directly.
88
- def restart!
89
- start!
90
- end
91
-
92
85
 
93
86
 
94
87
  #########
@@ -1,3 +1,3 @@
1
1
  module Angael
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -55,6 +55,15 @@ module Angael
55
55
  end
56
56
  end
57
57
 
58
+ # This only exists for the sake of testing. I need a way to stub the restart!
59
+ # but not the original start!
60
+ # Note: this method is not tested directly.
61
+ # Users of this library should not call this method or depend on its existence
62
+ # or behavior.
63
+ def restart!
64
+ start!
65
+ end
66
+
58
67
  def stop!
59
68
  unless started?
60
69
  __log("Called stop for worker with PID #{pid} but it is not started")
@@ -41,7 +41,7 @@ describe Angael::Manager do
41
41
 
42
42
  context "when :restart_after is set to 0.5" do
43
43
  subject { Angael::Manager.new(Angael::TestSupport::SampleWorker, 3, [], :restart_after => 0.5) }
44
- it "should restarts workers 1 at a time, at 1 second intervals" do
44
+ it "should restart workers 1 at a time, at 1 second intervals" do
45
45
  subject.workers.each do |w|
46
46
  w.stub(:start!) # We don't actually need the workers to fork.
47
47
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: angael
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Cortens