aws-flow 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/aws/decider.rb +2 -0
- data/lib/aws/decider/decider.rb +1 -1
- data/lib/aws/decider/version.rb +1 -1
- data/lib/aws/decider/workflow_client.rb +1 -1
- data/spec/aws/unit/decider_spec.rb +18 -0
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OTA5NDFhZDM5MzlhZjQ2MmE5MTJhNmVjZTg0Yzk1MjliNWE3MDMwZg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OGQ0ODk0ZGJkMDg0MjAwYzg2ZjU0NzAwMTBmYTdkNDE3OTdkNmFkMA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Yjk4ZjlmZDYwMzQ5YzJjNTJiOWExNWUxNjUwNWU4MzgwODljZWMzOTkwYzFh
|
10
|
+
MThhZjdlNTM3MzA4MWE0NTQ4MjkyMjE4YjhhZTVkMWUzZGVlNzUyMGE2YWUz
|
11
|
+
ZjY4MmY5ZWRkOGIwNWRhNmM3ZWZhNTJiZWU5N2U4MjVmODg0NGY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZTI5NzIwZTQ0NGJkZjQzOGNjODllZGJmNTBkMDNmMzczNzdiMzA0YTc5OGQ1
|
14
|
+
YWJkM2M4NDMyNGFkZjJjOWY2MDRiYjJlYzllNjllMDRkN2Q5NWExYzY1Yjkw
|
15
|
+
MjQxNzczZmIxYzIyYjQ5NjQ0MDYxOGUwMzEwODhiMGFiZTY3ZmM=
|
data/lib/aws/decider.rb
CHANGED
data/lib/aws/decider/decider.rb
CHANGED
data/lib/aws/decider/version.rb
CHANGED
@@ -363,7 +363,7 @@ module AWS
|
|
363
363
|
|
364
364
|
task_list = options[:task_list]
|
365
365
|
options[:task_list] = { :name => task_list } if options[:task_list]
|
366
|
-
options[:workflow_id] ||=
|
366
|
+
options[:workflow_id] ||= SecureRandom.uuid
|
367
367
|
options[:domain] = @domain.name
|
368
368
|
options[:workflow_type] = {
|
369
369
|
:name => workflow_type_name.to_s,
|
@@ -1473,8 +1473,26 @@ describe "Misc tests" do
|
|
1473
1473
|
end
|
1474
1474
|
previous_hash.should == previous_hash_copy
|
1475
1475
|
end
|
1476
|
+
|
1477
|
+
it "makes sure we can remove depedency on UUIDTools" do
|
1478
|
+
require "securerandom"
|
1479
|
+
# first check if SecureRandom.uuid returns uuid in the right format
|
1480
|
+
regex = /[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
|
1481
|
+
SecureRandom.uuid.should match(regex)
|
1482
|
+
|
1483
|
+
class FakeWorkflowExecutionCollecton
|
1484
|
+
def at(workflow_id, run_id); FakeWorkflowExecution.new(run_id, workflow_id); end
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
# Now check if the uuid is correctly set in start_external_workflow method
|
1488
|
+
workflow_type = WorkflowType.new(nil, "TestWorkflow.entry_point", "1")
|
1489
|
+
client = AWS::Flow::WorkflowClient.new(FakeServiceClient.new, FakeDomain.new(workflow_type), TestWorkflow, WorkflowOptions.new)
|
1490
|
+
workflow = client.start_external_workflow
|
1491
|
+
workflow.workflow_id.should match(regex)
|
1492
|
+
end
|
1476
1493
|
end
|
1477
1494
|
|
1495
|
+
|
1478
1496
|
describe FlowConstants do
|
1479
1497
|
options = {
|
1480
1498
|
:initial_retry_interval => 1,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Steger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03
|
11
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1'
|
20
|
-
- - '>='
|
20
|
+
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.36.2
|
23
23
|
type: :runtime
|
@@ -27,21 +27,21 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '1'
|
30
|
-
- - '>='
|
30
|
+
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.36.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-flow-core
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - '>='
|
37
|
+
- - ! '>='
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: 1.0.1
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - '>='
|
44
|
+
- - ! '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 1.0.1
|
47
47
|
description: Library to provide the AWS Flow Framework for Ruby
|
@@ -116,18 +116,19 @@ require_paths:
|
|
116
116
|
- lib/aws/
|
117
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
|
-
- - '>='
|
119
|
+
- - ! '>='
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- - '>='
|
124
|
+
- - ! '>='
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.2.2
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: AWS Flow Decider package decider
|
133
133
|
test_files: []
|
134
|
+
has_rdoc:
|