aws-flow 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,6 +55,7 @@ require "aws/decider/exceptions"
55
55
  require "aws/decider/task_poller"
56
56
  require "aws/decider/flow_defaults"
57
57
  require "aws/decider/implementation"
58
+ require "aws/decider/version"
58
59
 
59
60
  # @!visibility private
60
61
  def get_const(name)
@@ -450,7 +450,7 @@ module AWS
450
450
  #
451
451
  # @!visibility private
452
452
  def async_create_timer(delay_seconds, &block)
453
- AWS::Flow::Core::task { self.decision_context.workflow_clock.create_timer(delay_seconds, block) }
453
+ task { self.decision_context.workflow_clock.create_timer(delay_seconds, block) }
454
454
  end
455
455
 
456
456
 
@@ -459,7 +459,7 @@ module AWS
459
459
  # @param (see #create_timer)
460
460
  #
461
461
  def create_timer_async(delay_seconds, &block)
462
- AWS::Flow::Core::task { self.decision_context.workflow_clock.create_timer(delay_seconds, block) }
462
+ task { self.decision_context.workflow_clock.create_timer(delay_seconds, block) }
463
463
  end
464
464
 
465
465
 
@@ -0,0 +1,22 @@
1
+ #--
2
+ # Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License").
5
+ # You may not use this file except in compliance with the License.
6
+ # A copy of the License is located at
7
+ #
8
+ # http://aws.amazon.com/apache2.0
9
+ #
10
+ # or in the "license" file accompanying this file. This file is distributed
11
+ # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12
+ # express or implied. See the License for the specific language governing
13
+ # permissions and limitations under the License.
14
+ #++
15
+
16
+ module AWS
17
+ module Flow
18
+ def self.version
19
+ "1.0.2"
20
+ end
21
+ end
22
+ end
@@ -331,7 +331,6 @@ module AWS
331
331
 
332
332
 
333
333
  # Instances of WorkflowFactory are generated by {#workflow_factory}.
334
- # @!visibility private
335
334
  class WorkflowFactory
336
335
 
337
336
 
@@ -75,15 +75,15 @@ module AWS
75
75
  open_request = OpenRequestInfo.new
76
76
  open_request.blocking_promise = Future.new
77
77
  if block
78
- open_request.result = AWS::Flow::Core::task do
78
+ open_request.result = task do
79
79
  open_request.blocking_promise.get
80
80
  block.call
81
81
  end
82
82
  else
83
83
  open_request.result = open_request.blocking_promise
84
84
  end
85
- external_AWS::Flow::Core::task do |t|
86
- t.initiate_AWS::Flow::Core::task do |handle|
85
+ external_task do |t|
86
+ t.initiate_task do |handle|
87
87
  open_request.completion_handle = handle
88
88
  @decision_helper.scheduled_timers[timer_id.to_s] = open_request
89
89
  @decision_helper[timer_id.to_s] = TimerDecisionStateMachine.new(timer_id, attributes)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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: 2013-08-06 00:00:00.000000000 Z
12
+ date: 2013-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -54,7 +54,6 @@ files:
54
54
  - NOTICE.TXT
55
55
  - Rakefile
56
56
  - aws-flow.gemspec
57
- - lib/aws-flow.rb
58
57
  - lib/aws/decider.rb
59
58
  - lib/aws/decider/activity.rb
60
59
  - lib/aws/decider/activity_definition.rb
@@ -74,6 +73,7 @@ files:
74
73
  - lib/aws/decider/task_handler.rb
75
74
  - lib/aws/decider/task_poller.rb
76
75
  - lib/aws/decider/utilities.rb
76
+ - lib/aws/decider/version.rb
77
77
  - lib/aws/decider/worker.rb
78
78
  - lib/aws/decider/workflow_client.rb
79
79
  - lib/aws/decider/workflow_clock.rb
@@ -1 +0,0 @@
1
- require 'aws/decider'