seam 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/seam/version.rb +1 -1
- data/lib/seam/worker.rb +5 -5
- data/spec/seam/worker_spec.rb +8 -0
- metadata +3 -3
data/lib/seam/version.rb
CHANGED
data/lib/seam/worker.rb
CHANGED
@@ -64,6 +64,11 @@ module Seam
|
|
64
64
|
@current_run
|
65
65
|
end
|
66
66
|
|
67
|
+
def step
|
68
|
+
s = @step || self.class.name.underscore.gsub('_worker', '')
|
69
|
+
s.to_s
|
70
|
+
end
|
71
|
+
|
67
72
|
private
|
68
73
|
|
69
74
|
def mark_effort_as_complete
|
@@ -95,11 +100,6 @@ module Seam
|
|
95
100
|
Seam::Effort.find_all_by_step step
|
96
101
|
end
|
97
102
|
|
98
|
-
def step
|
99
|
-
s = @step || self.class.name.underscore.gsub('_worker', '')
|
100
|
-
s.to_s
|
101
|
-
end
|
102
|
-
|
103
103
|
def execute_the_appropriate_operation
|
104
104
|
@operation_to_execute ||= :move_to_next_step
|
105
105
|
operations[@operation_to_execute].call
|
data/spec/seam/worker_spec.rb
CHANGED
@@ -10,6 +10,14 @@ describe "worker" do
|
|
10
10
|
Timecop.return
|
11
11
|
end
|
12
12
|
|
13
|
+
describe "step" do
|
14
|
+
it "should match the name" do
|
15
|
+
worker = Seam::Worker.new
|
16
|
+
worker.handles(:darren)
|
17
|
+
worker.step.must_equal "darren"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
13
21
|
describe "move_to_next_step" do
|
14
22
|
it "should work" do
|
15
23
|
flow = Seam::Flow.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -227,7 +227,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
227
|
version: '0'
|
228
228
|
segments:
|
229
229
|
- 0
|
230
|
-
hash:
|
230
|
+
hash: 1160896100058127774
|
231
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
232
|
none: false
|
233
233
|
requirements:
|
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
236
|
version: '0'
|
237
237
|
segments:
|
238
238
|
- 0
|
239
|
-
hash:
|
239
|
+
hash: 1160896100058127774
|
240
240
|
requirements: []
|
241
241
|
rubyforge_project:
|
242
242
|
rubygems_version: 1.8.25
|