simpler_workflow 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,20 +3,10 @@ require 'aws/simple_workflow/decision_task'
3
3
  module AWS
4
4
  class SimpleWorkflow
5
5
  module DecisionTaskAdditions
6
- def self.extended(inst)
7
- inst.class.__send__ :alias_method, :_original_events, :events
8
- end
9
-
10
6
  def scheduled_event(event)
11
- events.to_a[event.attributes.scheduled_event_id - 1]
12
- end
13
-
14
- def events
15
- @__original_events ||= _original_events
7
+ workflow_execution.events.reverse_order.find { |e| e.id == event.attributes.scheduled_event_id }
16
8
  end
17
-
18
9
  end
19
-
20
10
  end
21
11
  end
22
12
 
@@ -1,3 +1,3 @@
1
1
  module SimplerWorkflow
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpler_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-02 00:00:00.000000000 Z
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk