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
- SHA256:
3
- metadata.gz: 8a42c1110addcba2c2bb7834e1a4cf1f92c5685876cb048711f08174df65846a
4
- data.tar.gz: e7aedcf0d2a4f1ab1931f84944357bc58a4043d7c5900b7e56f1df428590f7f0
2
+ SHA1:
3
+ metadata.gz: 6dbbf56fc3178fb169c59cf72e0caf418c9dbb46
4
+ data.tar.gz: 93abad8caf69a2cc2d558dca8de13838d2878fe7
5
5
  SHA512:
6
- metadata.gz: 2186b34db553ff1fd5999131050f7f5cff55ef107df91f7e72cc9e4b07c53e8905831d005945f3a2fbd1d6b3ce251af6e6edceff1285ac33a63bba3de7bda923
7
- data.tar.gz: 976bbdfcf7558364d92a028161312c1eeedd992443c8341308360baeeb8e50fdc65dad8ea714c0d4ff54755020e3df52c5de24f9fbe9bc73f2e3616aaa15eb34
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
@@ -0,0 +1,9 @@
1
+ module Parliament
2
+ module Grom
3
+ module Decorator
4
+ # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/LayingBody
5
+ module LayingBody
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,7 +1,7 @@
1
1
  module Parliament
2
2
  module Grom
3
3
  module Decorator
4
- VERSION = '1.0.0'.freeze
4
+ VERSION = '1.0.2'.freeze
5
5
  end
6
6
  end
7
7
  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.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-04 00:00:00.000000000 Z
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.7.6
225
+ rubygems_version: 2.6.8
225
226
  signing_key:
226
227
  specification_version: 4
227
228
  summary: Parliamentary Grom decorator