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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6d5b085e32a6c4333c666ce48975f2b99180ef8
4
- data.tar.gz: 611e2db6f13e3e5ff629df25a584b5cfca347244
3
+ metadata.gz: b95866eb764a602c8c23da32240f56751f5c5d0c
4
+ data.tar.gz: a12906e1f9767165094a8aec5d5e41602aab56de
5
5
  SHA512:
6
- metadata.gz: a9a7f0ce9ac2c94d618a8fdc933354b7228f9d63050f43f8adeac26afc165ba798ac9a8fe9e414648004ef00b07f20ac8c2881c630f22f915ba9d178eab5d78c
7
- data.tar.gz: 20863cf5baab210d02c72eea6afb0da2c1151d0182c33a0158d69141d9ba20e83ca019aec0d38e83c37443672decbeeac6f52be4835af5e8a1f0680cbc523e00
6
+ metadata.gz: f3c00456958955cef5d4b9ee5f1368c6bf63a87ee43c20e379b6bccddd07d93658fbb748ba340c5ee511ffe6cee166bb4a171ced1f2fd15165d6cd42faa5053f
7
+ data.tar.gz: 3c4ea47c6520058588ba35763d0d49d9bd91cf8c52378e6f9fb0c7f65ffee53a80410eba2e1039480029c2192e832c5ea3e657f01d045849d05c253a21090ecc
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.4
2
+
3
+ * `Nested` now uses kw args for `start_at` and the new `call` option. The latter allows to set the called method on the nested activity, e.g. `__call`.
4
+
1
5
  # 0.1.3
2
6
 
3
7
  * Introduce `Activity#outputs` and ditch `#end_events`.
@@ -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, start_with=nil, &block)
12
- @activity, @start_with, @block = activity, start_with, block
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: @start_with, args: args) if @block
16
+ return @block.(activity: activity, start_at: @start_at, args: args) if @block
17
17
 
18
- @activity.(@start_with, *args)
18
+ @activity.public_send(@call, @start_at, *args)
19
19
  end
20
20
 
21
21
  # @private
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  class Activity
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
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.3
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-08-28 00:00:00.000000000 Z
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.12
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.