parliament-grom-decorators 1.0.0 → 1.0.2
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6dbbf56fc3178fb169c59cf72e0caf418c9dbb46
|
4
|
+
data.tar.gz: 93abad8caf69a2cc2d558dca8de13838d2878fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd0e30521f95c52a6d2d531ee2ad843418000f36749cc797edbd65306146a4ab6dc1aeb15db7d148f01cf225a9508779c67ee1be716df5d010a306e435bf99c
|
7
|
+
data.tar.gz: d7972c5a50b1be0c758907b11f16d71d60502e739a652938a0e0967d9bb9b33c065fd1578d2d2ef1eff238fa5bff0a9a7dd2a68d7ecf2b3f976039718f86e2eb
|
@@ -29,6 +29,16 @@ module Parliament
|
|
29
29
|
|
30
30
|
@person = Helpers::Utils.type_safe_first(layingHasLayingPerson, Parliament::Grom::Decorator::Person)
|
31
31
|
end
|
32
|
+
|
33
|
+
# Alias layingHasLaidThing with fallback.
|
34
|
+
#
|
35
|
+
# @return [Grom::Node, nil] the LaidThing of the Grom::Node or nil.
|
36
|
+
def laid_thing
|
37
|
+
return @laid_thing if @laid_thing
|
38
|
+
return nil unless respond_to?(:layingHasLaidThing)
|
39
|
+
|
40
|
+
@laid_thing = Helpers::Utils.type_safe_first(layingHasLaidThing, Parliament::Grom::Decorator::LaidThing)
|
41
|
+
end
|
32
42
|
end
|
33
43
|
end
|
34
44
|
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.2
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -193,6 +193,7 @@ files:
|
|
193
193
|
- lib/parliament/grom/decorator/helpers/utils.rb
|
194
194
|
- lib/parliament/grom/decorator/laid_thing.rb
|
195
195
|
- lib/parliament/grom/decorator/laying.rb
|
196
|
+
- lib/parliament/grom/decorator/laying_body.rb
|
196
197
|
- lib/parliament/grom/decorator/person.rb
|
197
198
|
- lib/parliament/grom/decorator/procedure.rb
|
198
199
|
- lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb
|
@@ -221,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
222
|
version: '0'
|
222
223
|
requirements: []
|
223
224
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.
|
225
|
+
rubygems_version: 2.6.8
|
225
226
|
signing_key:
|
226
227
|
specification_version: 4
|
227
228
|
summary: Parliamentary Grom decorator
|