lib/trailblazer/activity/dsl/linear/strategy.rb in trailblazer-activity-dsl-linear-0.3.5 vs lib/trailblazer/activity/dsl/linear/strategy.rb in trailblazer-activity-dsl-linear-0.4.0

- old
+ new

@@ -29,11 +29,11 @@ # {#update_sequence} is the only way to mutate the state instance. state.update_sequence do |sequence:, normalizers:, normalizer_options:, fields:| # Compute the sequence rows. options = normalizers.(type, normalizer_options: normalizer_options, options: task, user_options: options.merge(sequence: sequence)) - sequence = Activity::DSL::Linear::DSL.apply_adds_from_dsl(sequence, options) + sequence = Activity::DSL::Linear::DSL.apply_adds_from_dsl(sequence, **options) end end # @public private def step(*args, &block) @@ -96,13 +96,13 @@ def to_h @activity.to_h.to_h.merge(activity: @activity) end # Injects {:exec_context} so that {:instance_method}s work. - def call(args, circuit_options={}) + def call(args, **circuit_options) @activity.( args, - circuit_options.merge(exec_context: new) + **circuit_options.merge(exec_context: new) ) end def invoke(*args) TaskWrap.invoke(self, *args)