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 +4 -4
- data/app/models/metadata_presenter/service.rb +8 -0
- data/lib/metadata_presenter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80dfb6023bce9bb54a1517b1d851363f4edcd82546ad93614bdf4efb43f159d6
|
4
|
+
data.tar.gz: 0402f10c2c4253b73265a3e84c4ab3c1cd736bb37808f5a1f5b1ba17d8b5e7ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|