aws-flow 1.0.0 → 1.0.1

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.
Files changed (33) hide show
  1. data/aws-flow.gemspec +4 -2
  2. data/lib/aws-flow.rb +1 -0
  3. data/lib/aws/decider/decider.rb +2 -2
  4. data/lib/aws/decider/workflow_client.rb +1 -0
  5. data/lib/aws/decider/workflow_clock.rb +3 -3
  6. metadata +3 -29
  7. data/aws-flow-core/Gemfile +0 -9
  8. data/aws-flow-core/LICENSE.TXT +0 -15
  9. data/aws-flow-core/NOTICE.TXT +0 -14
  10. data/aws-flow-core/Rakefile +0 -27
  11. data/aws-flow-core/aws-flow-core.gemspec +0 -12
  12. data/aws-flow-core/lib/aws/flow.rb +0 -26
  13. data/aws-flow-core/lib/aws/flow/async_backtrace.rb +0 -134
  14. data/aws-flow-core/lib/aws/flow/async_scope.rb +0 -195
  15. data/aws-flow-core/lib/aws/flow/begin_rescue_ensure.rb +0 -386
  16. data/aws-flow-core/lib/aws/flow/fiber.rb +0 -77
  17. data/aws-flow-core/lib/aws/flow/flow_utils.rb +0 -50
  18. data/aws-flow-core/lib/aws/flow/future.rb +0 -109
  19. data/aws-flow-core/lib/aws/flow/implementation.rb +0 -151
  20. data/aws-flow-core/lib/aws/flow/simple_dfa.rb +0 -85
  21. data/aws-flow-core/lib/aws/flow/tasks.rb +0 -405
  22. data/aws-flow-core/test/aws/async_backtrace_spec.rb +0 -41
  23. data/aws-flow-core/test/aws/async_scope_spec.rb +0 -118
  24. data/aws-flow-core/test/aws/begin_rescue_ensure_spec.rb +0 -665
  25. data/aws-flow-core/test/aws/external_task_spec.rb +0 -197
  26. data/aws-flow-core/test/aws/factories.rb +0 -52
  27. data/aws-flow-core/test/aws/fiber_condition_variable_spec.rb +0 -163
  28. data/aws-flow-core/test/aws/fiber_spec.rb +0 -78
  29. data/aws-flow-core/test/aws/flow_spec.rb +0 -255
  30. data/aws-flow-core/test/aws/future_spec.rb +0 -210
  31. data/aws-flow-core/test/aws/rubyflow.rb +0 -22
  32. data/aws-flow-core/test/aws/simple_dfa_spec.rb +0 -63
  33. data/aws-flow-core/test/aws/spec_helper.rb +0 -36
@@ -1,22 +0,0 @@
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
- #!/usr/bin/ruby -wKU
17
-
18
- def require_all(path)
19
- Dir[File.join(File.dirname(__FILE__), path, "*.rb")].each {|f| require f}
20
- end
21
-
22
- require_all('rubyflow/')
@@ -1,63 +0,0 @@
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
- describe SimpleDFA do
17
- before(:each) do
18
- class Tester
19
- attr_accessor :trace
20
-
21
- extend SimpleDFA
22
- init(:start_state)
23
-
24
- def initialize
25
- @trace = []
26
- end
27
-
28
- add_transition(:start_state, :a) do |t|
29
- t.trace << :start_to_second
30
- t.current_state = :second_state
31
- end
32
- add_transition(:second_state, :b) do |t|
33
- t.trace << :second_to_third
34
- t.current_state = :third_state
35
- end
36
- add_transition(:third_state, :c) do |t|
37
- t.trace << :third_to_start
38
- t.current_state = :start_state
39
- end
40
- end
41
- @this_dfa = Tester.new
42
-
43
- end
44
-
45
- it "ensures that consume works as expected" do
46
- @this_dfa.consume(:a)
47
- @this_dfa.trace.should == [:start_to_second]
48
- @this_dfa.current_state.should == :second_state
49
- end
50
-
51
- it "ensures that define_general defines general transitions for a state" do
52
- class Tester
53
- define_general(:start_state) {|t| t.current_state = :new_state }
54
- end
55
- @this_dfa.consume(:c)
56
- @this_dfa.current_state.should == :new_state
57
- end
58
-
59
- it "ensures that uncovered_transitions raises on those transitions" do
60
- expect { @this_dfa.consume(:b) }.to raise_error
61
- end
62
-
63
- end
@@ -1,36 +0,0 @@
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
- require 'rubygems'
17
-
18
- require 'aws/flow'
19
-
20
- include AWS::Flow::Core
21
-
22
- Spec::DSL::Main.class_eval do
23
- if method_defined? :context
24
- undef :context
25
- end
26
- end
27
-
28
- def constantize(camel_case_word)
29
- names = camel_case_word.split('::')
30
- names.shift if names.empty? || names.first.empty?
31
- constant = Object
32
- names.each do |name|
33
- constant = constant.const_defined?(name) ? constant.const_get(name) : constant.const_missing(name)
34
- end
35
- constant
36
- end