easy_flow 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ee73e25b94df6a0b978b07ec0c4770a592182ccba5673fa778c4aa8b97ab10d
4
- data.tar.gz: acfbd9706813c21dd957ee45f1548afa081c1f1d39c0a093d120b686e385e73f
3
+ metadata.gz: c8982c5b8d1ce99325e551defd3fe3cd5dc1c6fe47b30c9577acd0eb4963cfb5
4
+ data.tar.gz: cacca6d87e4cd17cecd3ca9c8f421222bdb9f9e5b1190db60d5d7768065c2843
5
5
  SHA512:
6
- metadata.gz: 7de86983c7f99ab9a282c8969921efc770a233c3dcf636e5e8a6d8befc7f1dac97d4f485c8809bb00b0d7788ba594f5a38ba1fa40125bb75c774083995dcb74f
7
- data.tar.gz: 9e3c18a7ac8329fa0cf1d3415e9275468183c256571490d560345b1825553abdf21361f29fcd7ae069c0766029344d9455255e1dd7d37f35025d9c891f33a144
6
+ metadata.gz: 7ea8fb69a242f0ac1e6b62032b55fadead54cf95c4c41a28d223dfce56089ab25d088969520a1ff1a6a221d95e669fd722fba87aff5f3ba0d1cf5ef53b1701be
7
+ data.tar.gz: eb0eae28d9d3c148eabe860b39b379c89471b4a16c4ef396af9a78a930d8b7adb50ad92859a4df83036c46c849b5797562f504743978d8bb42fb17b2c4ca85a3
@@ -112,7 +112,14 @@ module EasyFlow
112
112
  "record_outputs_of" => step_type.settings.record_outputs_of.to_h { |name, sources| [ name.to_s, sources.to_h { |field, source| [ field.to_s, source.to_s ] } ] },
113
113
  "record_labels" => step_type.settings.record_labels.to_h { |name, held| [ name.to_s, held.transform_keys(&:to_s) ] },
114
114
  "record_explanations" => record_explanations_of(step_type),
115
- "awaits_input" => step_type.awaits_input? }
115
+ "awaits_input" => step_type.awaits_input?,
116
+ "outputs" => step_type.outputs.map { |output| palette_output(output) },
117
+ "outputs_named_by" => step_type.outputs_named_by&.to_s }
118
+ end
119
+
120
+ def palette_output(output)
121
+ { "name" => output.name.to_s, "label" => output.label, "type" => output.type.to_s,
122
+ "values" => output.values.respond_to?(:call) ? nil : output.values }
116
123
  end
117
124
 
118
125
  def hidden_settings_of(step_type)
@@ -8,7 +8,7 @@ module EasyFlow
8
8
  behaviour.present? && behaviour.parameters.include?([ :key, :run ])
9
9
  end
10
10
 
11
- attr_reader :id, :step_name, :settings, :naming_field, :naming, :outputs, :drawn_by, :unsaved_refusal
11
+ attr_reader :id, :step_name, :settings, :naming_field, :naming, :outputs, :outputs_named_by, :drawn_by, :unsaved_refusal
12
12
 
13
13
  def initialize(id:, step_name:, settings:, awaits_input:, behaviour:, routing:,
14
14
  ends_here: false, begins_here: false, starts_a_flow: false, plays_the_picked_flow: false, holds_steps: false, flow_chooser: nil, run_chooser: nil, display: nil, drawn_by: nil,
@@ -1,3 +1,3 @@
1
1
  module EasyFlow
2
- VERSION = "0.48.0"
2
+ VERSION = "0.49.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider