jflow 0.2.0 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/jflow.gemspec +3 -3
- data/lib/jflow/activity/task.rb +2 -3
- data/lib/jflow/activity/worker.rb +2 -2
- data/lib/jflow/version.rb +1 -1
- metadata +40 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a39c9fd14f64b6c067143fae05df488e5ebf146e
|
4
|
+
data.tar.gz: 3b3e9cf16d297f884d84a23e51bc7a50f1b4851a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dccbe5e1dfefa8ef5cfd8880675576ebaff524422bd443f78b8381cf1b435c0496fbeea1e44983ed61fa082018a6e204ea82ddb2263f766a5e49a41ba1fc6308
|
7
|
+
data.tar.gz: 03a10a4ef3012ed02c8e5912e4a7de4c083393319dcd8881989a95ba5b306f72bed98c7523da599cb502319193c179bcc0eb5388c08e1b0c3c5a3ec8dc954292
|
data/.gitignore
CHANGED
data/jflow.gemspec
CHANGED
@@ -26,13 +26,13 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
|
-
spec.
|
29
|
+
spec.add_runtime_dependency "slop", "~> 4"
|
30
|
+
spec.add_runtime_dependency "aws-sdk", "~> 2"
|
31
|
+
spec.add_runtime_dependency "hash_validator", "~> 0.4"
|
30
32
|
|
31
33
|
spec.add_development_dependency "bundler", "~> 1.10"
|
32
34
|
spec.add_development_dependency "rake", "~> 10.0"
|
33
35
|
spec.add_development_dependency "rspec"
|
34
36
|
spec.add_development_dependency "simplecov"
|
35
|
-
spec.add_development_dependency "hash_validator"
|
36
|
-
spec.add_development_dependency "aws-sdk", "~> 2"
|
37
37
|
|
38
38
|
end
|
data/lib/jflow/activity/task.rb
CHANGED
@@ -12,7 +12,6 @@ module JFlow
|
|
12
12
|
YAML.load(task.input)
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
15
|
def name
|
17
16
|
task.activity_type.name
|
18
17
|
end
|
@@ -22,7 +21,7 @@ module JFlow
|
|
22
21
|
end
|
23
22
|
|
24
23
|
def token
|
25
|
-
task.
|
24
|
+
task.task_token
|
26
25
|
end
|
27
26
|
|
28
27
|
def klass
|
@@ -41,7 +40,7 @@ module JFlow
|
|
41
40
|
|
42
41
|
def run!
|
43
42
|
log "Started #{klass}##{method} with #{input}"
|
44
|
-
result = klass.new.send(method, input) || "done"
|
43
|
+
result = klass.new.send(method, *input) || "done"
|
45
44
|
log "Result is #{result.class} #{result}"
|
46
45
|
completed!(result)
|
47
46
|
end
|
@@ -29,11 +29,11 @@ module JFlow
|
|
29
29
|
|
30
30
|
def process_task(response)
|
31
31
|
log "Got task #{response.task_token}"
|
32
|
-
task =
|
32
|
+
task = JFlow::Activity::Task.new(response)
|
33
33
|
begin
|
34
34
|
task.run!
|
35
35
|
rescue => exception
|
36
|
-
task.failed!(
|
36
|
+
task.failed!(exception)
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
data/lib/jflow/version.rb
CHANGED
metadata
CHANGED
@@ -1,111 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christophe Verbinnen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|
15
15
|
version_requirements: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4'
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
|
-
- -
|
22
|
+
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: '4'
|
25
25
|
prerelease: false
|
26
26
|
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: aws-sdk
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2'
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ~>
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: '
|
38
|
+
version: '2'
|
39
39
|
prerelease: false
|
40
|
-
type: :
|
40
|
+
type: :runtime
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: hash_validator
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0.4'
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - ~>
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '0.4'
|
53
53
|
prerelease: false
|
54
|
-
type: :
|
54
|
+
type: :runtime
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: bundler
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.10'
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ~>
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '1.10'
|
67
67
|
prerelease: false
|
68
68
|
type: :development
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '10.0'
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - ~>
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '0'
|
80
|
+
version: '10.0'
|
81
81
|
prerelease: false
|
82
82
|
type: :development
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirement: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- -
|
92
|
+
- - '>='
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
prerelease: false
|
96
96
|
type: :development
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: simplecov
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- -
|
106
|
+
- - '>='
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
108
|
+
version: '0'
|
109
109
|
prerelease: false
|
110
110
|
type: :development
|
111
111
|
description: you know, for flow
|
@@ -118,9 +118,9 @@ executables:
|
|
118
118
|
extensions: []
|
119
119
|
extra_rdoc_files: []
|
120
120
|
files:
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
121
|
+
- .gitignore
|
122
|
+
- .rspec
|
123
|
+
- .travis.yml
|
124
124
|
- Gemfile
|
125
125
|
- README.md
|
126
126
|
- Rakefile
|
@@ -146,17 +146,17 @@ require_paths:
|
|
146
146
|
- lib
|
147
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- -
|
149
|
+
- - '>='
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- -
|
154
|
+
- - '>='
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.4.
|
159
|
+
rubygems_version: 2.4.5
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: SWF Flow framework for jRuby
|