trailblazer-activity 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/trailblazer/activity/nested.rb +4 -4
- data/lib/trailblazer/activity/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b95866eb764a602c8c23da32240f56751f5c5d0c
|
4
|
+
data.tar.gz: a12906e1f9767165094a8aec5d5e41602aab56de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c00456958955cef5d4b9ee5f1368c6bf63a87ee43c20e379b6bccddd07d93658fbb748ba340c5ee511ffe6cee166bb4a171ced1f2fd15165d6cd42faa5053f
|
7
|
+
data.tar.gz: 3c4ea47c6520058588ba35763d0d49d9bd91cf8c52378e6f9fb0c7f65ffee53a80410eba2e1039480029c2192e832c5ea3e657f01d045849d05c253a21090ecc
|
data/CHANGES.md
CHANGED
@@ -8,14 +8,14 @@ module Trailblazer
|
|
8
8
|
# Nested allows to have tasks with a different call interface and start event.
|
9
9
|
# @param activity Activity interface
|
10
10
|
class Nested
|
11
|
-
def initialize(activity,
|
12
|
-
@activity, @
|
11
|
+
def initialize(activity, start_at: nil, call: :call, &block)
|
12
|
+
@activity, @start_at, @call, @block = activity, start_at, call, block
|
13
13
|
end
|
14
14
|
|
15
15
|
def call(start_at, *args)
|
16
|
-
return @block.(activity: activity, start_at: @
|
16
|
+
return @block.(activity: activity, start_at: @start_at, args: args) if @block
|
17
17
|
|
18
|
-
@activity.(@
|
18
|
+
@activity.public_send(@call, @start_at, *args)
|
19
19
|
end
|
20
20
|
|
21
21
|
# @private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-activity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hirb
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.6.
|
131
|
+
rubygems_version: 2.6.8
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: The main element for Trailblazer's BPMN-compliant workflows.
|