trailblazer-operation 0.6.4 → 0.6.5

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: 981ec0cea83a33e099bbc95c7bbde70e0ce158830d8347e28c5584b1ea27ce7a
4
- data.tar.gz: 3b9b123a954f8f7269e1af69f4f60f84fdeebf238319d9243743d27f371e35f9
3
+ metadata.gz: 2908ffe1d690d0bd75b1e936b1351a4139405ed43ea43ce560c5b44c6c782e73
4
+ data.tar.gz: ee5ee4538ea0d59e266c7600f2ff2de20c79a9d66209063f1bdcb8530e296243
5
5
  SHA512:
6
- metadata.gz: e7d149855f102a46264bdeb9a9dfaaaff4e42d85849e1220ae16b2aadb4cf712b1e3326c654127683bf4a33d56c73e83792e33770b70d4615dc26bd651060586
7
- data.tar.gz: 32e58914330e1d5dfd0c63938497daffe280ca3da41ae34c9620de6833dfdd1d2d29cd9186219cc7b731ab80266032e85f945e2ed49ec54db72610183d2c0000
6
+ metadata.gz: a15078c7427fe6927af8e9782dbd919f60115fa5b4fb7c5aed039c5b3e3cb0ef2737373c797f0937a689b10c50e5089850a1c95d6ba6085483cc6a26d07e718b
7
+ data.tar.gz: 5e1a92c16c7ed05500dc28dfa1dccbc352a0d0d9efea28663cb93ff56a4b6e583474fa66062eb88b9fd6008dc84bd56008ebe2f83c8f73d76a688ddaf1fe7fb3
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.5
2
+
3
+ * Upgrade `trailblazer-activity` & `trailblazer-activity-dsl-linear` versions to utilise new `trailblazer-context` :drum:
4
+
1
5
  ## 0.6.4
2
6
 
3
7
  * Remove container support. Containers should be part of `ctx` itself
@@ -12,21 +12,21 @@ class Trailblazer::Operation
12
12
  @state.update_options(options)
13
13
  end
14
14
 
15
- def options_for_public_call(options, *)
15
+ def options_for_public_call(options, **flow_options)
16
16
  ctx = super
17
- context_for_fields(class_fields, ctx)
17
+ context_for_fields(class_fields, [ctx, flow_options], {})
18
18
  end
19
19
 
20
20
  private def class_fields
21
21
  @state.to_h[:fields]
22
22
  end
23
23
 
24
- private def context_for_fields(fields, ctx)
25
- ctx_with_fields = Trailblazer::Context.implementation.build(fields, ctx, [ctx, {}], {}) # TODO: redundant to otions_for_public_call. how to inject aliasing etc?
24
+ private def context_for_fields(fields, (ctx, flow_options), **)
25
+ ctx_with_fields = Trailblazer::Context(fields, ctx, flow_options[:context_options]) # TODO: redundant to otions_for_public_call.
26
26
  end
27
27
 
28
28
  def call_with_circuit_interface((ctx, flow_options), **circuit_options)
29
- ctx_with_fields = context_for_fields(class_fields, ctx)
29
+ ctx_with_fields = context_for_fields(class_fields, [ctx, flow_options], circuit_options)
30
30
 
31
31
  super([ctx_with_fields, flow_options], circuit_options) # FIXME: should we unwrap here?
32
32
  end
@@ -47,12 +47,12 @@ module Trailblazer
47
47
  # Compile a Context object to be passed into the Activity::call.
48
48
  # @private
49
49
  def self.options_for_public_call(options, **flow_options)
50
- Trailblazer::Context.for_circuit(options, {}, [options, flow_options], {})
50
+ Trailblazer::Context(options, {}, flow_options[:context_options])
51
51
  end
52
52
 
53
53
  # @semi=public
54
54
  def flow_options
55
- {context_alias: {}}
55
+ {}
56
56
  end
57
57
  end
58
58
  end
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Operation
4
- VERSION = "0.6.4"
4
+ VERSION = "0.6.5"
5
5
  end
6
6
  end
7
7
  end
@@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "trailblazer-activity-dsl-linear", ">= 0.3.1", "< 1.0.0"
21
- spec.add_dependency "trailblazer-activity", ">= 0.10.0", "< 1.0.0"
20
+ spec.add_dependency "trailblazer-activity-dsl-linear", ">= 0.3.2", "< 1.0.0"
21
+ spec.add_dependency "trailblazer-activity", ">= 0.11.2", "< 1.0.0"
22
22
  spec.add_dependency "trailblazer-developer", ">= 0.0.8"
23
23
 
24
24
  spec.add_development_dependency "bundler"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-operation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.1
19
+ version: 0.3.2
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.0.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.3.1
29
+ version: 0.3.2
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.10.0
39
+ version: 0.11.2
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.0.0
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.10.0
49
+ version: 0.11.2
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.0.0