seam 0.0.10 → 0.0.11

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/lib/seam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Seam
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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
@@ -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.10
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: -3288944774515324226
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: -3288944774515324226
239
+ hash: 1160896100058127774
240
240
  requirements: []
241
241
  rubyforge_project:
242
242
  rubygems_version: 1.8.25