metadata_presenter 2.6.2 → 2.7.0

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: 750d53675c78f1be97f67ec398bfc9d4f5fd80581068b575f43d26a3cb2b8ba7
4
- data.tar.gz: affc04ab6d093a925ebcf9f11f96f0c737f8022824f8ffabc841bf5f82d148b9
3
+ metadata.gz: 80dfb6023bce9bb54a1517b1d851363f4edcd82546ad93614bdf4efb43f159d6
4
+ data.tar.gz: 0402f10c2c4253b73265a3e84c4ab3c1cd736bb37808f5a1f5b1ba17d8b5e7ea
5
5
  SHA512:
6
- metadata.gz: 86df3d7555b5c767b645a6e0ea6b3b2a83057634caaa7e2cf0b9aaa9f9969193e53bdedfdf640d6ccc2d7df6fbdc12d94aa61bcd6ccdec476b87d2b4ccb6cf78
7
- data.tar.gz: 74be1ca10758a70cfcfea48a47f9baedf55967d31d83aae66735fdf30f717ffba761967fa4b24619760053d02a8119845609e4605071f6f856659b325d479078
6
+ metadata.gz: 2f774c3fbff17f43b4e4df0cb273bad31c1f9596fdd6f16673393c8408926ae81d5a1ed058dc20014489f224d8aa1093ee0a2b2a07a152785cac783ca5ebf6e3
7
+ data.tar.gz: 85f6d65d0d5066295c78a2824be48d5d640b1dd24aab41641244a4290f4e5aa136a99d2114ca57a84a265ff993f77cac11d267b876c0850a1df1e64f5915a1b0
@@ -13,6 +13,14 @@ class MetadataPresenter::Service < MetadataPresenter::Metadata
13
13
  flow_objects.select { |flow| flow.type == 'flow.branch' }
14
14
  end
15
15
 
16
+ def expressions
17
+ conditionals.map(&:expressions).flatten
18
+ end
19
+
20
+ def conditionals
21
+ branches.map(&:conditionals).flatten
22
+ end
23
+
16
24
  def flow_object(uuid)
17
25
  MetadataPresenter::Flow.new(uuid, metadata.flow[uuid])
18
26
  rescue StandardError
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '2.6.2'.freeze
2
+ VERSION = '2.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoJ Forms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-05 00:00:00.000000000 Z
11
+ date: 2021-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder