parliament-grom-decorators 1.0.3 → 1.0.4
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58f407417c90deee860724cf6c7466e8c4770ea5
|
4
|
+
data.tar.gz: 0031a6ae9339c38c3fb4e64cf93500f3e2f2f448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76c0c9cd7c398a763e401febbc11623c14a8fc8ae714949137bc6499c62753fc201513e5ff8333e3178c617b88ffe8d1a93643a26154a755c03a0c63cac00baa
|
7
|
+
data.tar.gz: 90547af20b5bb88c608486deeff1bb3aa20a9c7dfcf23435d8cba37800148ca4143da731e8409fe0b4eb720ebabe1af361b0d195f5e6a3c006d0512c3beec2a8
|
@@ -3,7 +3,6 @@ module Parliament
|
|
3
3
|
module Decorator
|
4
4
|
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/BusinessItem
|
5
5
|
module BusinessItem
|
6
|
-
include Helpers::DateHelper
|
7
6
|
# Alias businessItemeHasProcedureStep with fallback.
|
8
7
|
# NB: Currently, business items only have one procedure step
|
9
8
|
#
|
@@ -20,6 +20,16 @@ module Parliament
|
|
20
20
|
|
21
21
|
@business_item = Helpers::Utils.type_safe_first(workPackageHasBusinessItem, Parliament::Grom::Decorator::BusinessItem)
|
22
22
|
end
|
23
|
+
|
24
|
+
# Alias workPackageHasWorkPackagedThing with fallback.
|
25
|
+
#
|
26
|
+
# @return [Grom::Node, nil] a WorkPackagedThing Grom::Node or nil.
|
27
|
+
def work_packaged_thing
|
28
|
+
return @work_packaged_thing if @work_packaged_thing
|
29
|
+
return nil unless respond_to?(:workPackageHasWorkPackagedThing)
|
30
|
+
|
31
|
+
@work_packaged_thing = Helpers::Utils.type_safe_first(workPackageHasWorkPackagedThing, Parliament::Grom::Decorator::WorkPackagedThing)
|
32
|
+
end
|
23
33
|
end
|
24
34
|
end
|
25
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parliament-grom-decorators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rebecca Appleyard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- lib/parliament/grom/decorator/helpers.rb
|
193
193
|
- lib/parliament/grom/decorator/helpers/date_helper.rb
|
194
194
|
- lib/parliament/grom/decorator/helpers/utils.rb
|
195
|
+
- lib/parliament/grom/decorator/house.rb
|
195
196
|
- lib/parliament/grom/decorator/laid_thing.rb
|
196
197
|
- lib/parliament/grom/decorator/laying.rb
|
197
198
|
- lib/parliament/grom/decorator/laying_body.rb
|