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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 74aff8c011e1dda48d38cf639ec0f6fcc1e2ee5a
4
- data.tar.gz: 1b23c646c3afe8a5827d21feb8cc1701fad571b8
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OTA5NDFhZDM5MzlhZjQ2MmE5MTJhNmVjZTg0Yzk1MjliNWE3MDMwZg==
5
+ data.tar.gz: !binary |-
6
+ OGQ0ODk0ZGJkMDg0MjAwYzg2ZjU0NzAwMTBmYTdkNDE3OTdkNmFkMA==
5
7
  SHA512:
6
- metadata.gz: bee020ffb919c382d69db2ef2860e5f134fc49ec7fa90bee420256a6adba01e6daf86e5aad6d8bc30110c2805205298f9f53623ec0e0a91077f511843a64406e
7
- data.tar.gz: d1edebf2776156f6a881f156c92ed93f21c80d534d464b383c4c56c13a45eabbb7805199cd8abbd968578e02c9611b0f313469c4433186c7c114c22fc2981d86
8
+ metadata.gz: !binary |-
9
+ Yjk4ZjlmZDYwMzQ5YzJjNTJiOWExNWUxNjUwNWU4MzgwODljZWMzOTkwYzFh
10
+ MThhZjdlNTM3MzA4MWE0NTQ4MjkyMjE4YjhhZTVkMWUzZGVlNzUyMGE2YWUz
11
+ ZjY4MmY5ZWRkOGIwNWRhNmM3ZWZhNTJiZWU5N2U4MjVmODg0NGY=
12
+ data.tar.gz: !binary |-
13
+ ZTI5NzIwZTQ0NGJkZjQzOGNjODllZGJmNTBkMDNmMzczNzdiMzA0YTc5OGQ1
14
+ YWJkM2M4NDMyNGFkZjJjOWY2MDRiYjJlYzllNjllMDRkN2Q5NWExYzY1Yjkw
15
+ MjQxNzczZmIxYzIyYjQ5NjQ0MDYxOGUwMzEwODhiMGFiZTY3ZmM=
@@ -17,6 +17,8 @@ require 'aws/flow'
17
17
  include AWS::Flow::Core
18
18
 
19
19
  require 'aws-sdk'
20
+ require 'securerandom'
21
+
20
22
  # Setting the user-agent as ruby-flow for all calls to the service
21
23
  AWS.config(:user_agent_prefix => "ruby-flow")
22
24
 
@@ -243,7 +243,7 @@ module AWS
243
243
  # Sets or returns the {WorkflowOptions} for this decider.
244
244
  #
245
245
  module Workflows
246
- attr_accessor :version, :options
246
+ attr_accessor :version
247
247
  extend Utilities::UpwardLookups
248
248
  @precursors = []
249
249
  def look_upwards(variable)
@@ -16,7 +16,7 @@
16
16
  module AWS
17
17
  module Flow
18
18
  def self.version
19
- "1.0.9"
19
+ "1.1.0"
20
20
  end
21
21
  end
22
22
  end
@@ -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] ||= UUIDTools::UUID.random_create.to_s
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.9
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-31 00:00:00.000000000 Z
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.0.3
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: