trailblazer-activity 0.11.3 → 0.11.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05447b3e4a4957abae7548719bc6b33500621fc6801860c8aaeaa06c33532c21
|
4
|
+
data.tar.gz: d7f55a424263aaffb829a9772fd8cff3d2e93e15691ae091a1eb72570d2136b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43fc2e829e8c1c3de9493a6b1ef8dd4bacc77a1136d8efbb1f9c08d2260e381debc733df7f6d5e4e1b53bb0cefaebf76d54caceeaf786b6056f56878adc1cc6d
|
7
|
+
data.tar.gz: 98ff3aca3a7b3fe102ce9bd368cdfc962cc68687c432c087750f64a36d34ef258a338abc32dc2d3d228d8982a0211b5c6de8efe051dbb4576bbe740bc860d13a
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 0.11.4
|
2
|
+
|
3
|
+
* Introduce the `config_wrap:` option in `Intermediate.call(intermediate, implementation, config_merge: {})` to allow injecting data into the activity's `:config` field.
|
4
|
+
|
1
5
|
# 0.11.3
|
2
6
|
|
3
7
|
* Allow `Testing.def_task` & `Testing.def_tasks` to return custom signals
|
@@ -12,14 +12,16 @@ class Trailblazer::Activity
|
|
12
12
|
# Compiles a {Schema} instance from an {intermediate} structure and
|
13
13
|
# the {implementation} object references.
|
14
14
|
#
|
15
|
-
# Intermediate structure, Implementation, calls extensions, passes {}
|
16
|
-
def self.call(intermediate, implementation)
|
17
|
-
config_default = {wrap_static: Hash.new(TaskWrap.initial_wrap_static)}
|
15
|
+
# Intermediate structure, Implementation, calls extensions, passes {config} # TODO
|
16
|
+
def self.call(intermediate, implementation, config_merge: {})
|
17
|
+
config_default = {wrap_static: Hash.new(TaskWrap.initial_wrap_static)} # DISCUSS: this really doesn't have to be here, but works for now and we want it in 99%.
|
18
|
+
config = config_default.merge(config_merge)
|
19
|
+
config.freeze
|
18
20
|
|
19
21
|
circuit = circuit(intermediate, implementation)
|
20
22
|
nodes = node_attributes(intermediate, implementation)
|
21
23
|
outputs = outputs(intermediate.stop_task_ids, nodes)
|
22
|
-
config = config(implementation, config:
|
24
|
+
config = config(implementation, config: config)
|
23
25
|
Schema.new(circuit, outputs, nodes, config)
|
24
26
|
end
|
25
27
|
|
@@ -38,7 +38,7 @@ class Trailblazer::Activity
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# {input.call()} is invoked in the circuit.
|
41
|
-
# `original_args` are the actual args passed to the wrapped task: [ [
|
41
|
+
# `original_args` are the actual args passed to the wrapped task: [ [ctx, ..], circuit_options ]
|
42
42
|
#
|
43
43
|
def call(wrap_ctx, original_args)
|
44
44
|
# let user compute new ctx for the wrapped task.
|
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.11.
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer-context
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.0.
|
142
|
+
rubygems_version: 3.0.3
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Runtime code for Trailblazer activities.
|