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: 6cab38f51c510f82684a1203bb56b79656bb2c9d
4
- data.tar.gz: c3493e4183b61e7021a1884110821701f9c0054c
3
+ metadata.gz: 58f407417c90deee860724cf6c7466e8c4770ea5
4
+ data.tar.gz: 0031a6ae9339c38c3fb4e64cf93500f3e2f2f448
5
5
  SHA512:
6
- metadata.gz: f62d0e94f1df3059a302b2d47d84fedbba315f6c66f00ecb48ff7acde61514100237e004dc23c3268ca5933e9cc2845c0cae379686c36f122febaf75b0b53deb
7
- data.tar.gz: bc38460c8cbdfa86444e79a8733c8204ac37dade4c3c13e8bd3e3216d8970643ee9400194be9fdff3b923606a6b98aa8f23b07081b4efb5279b629fe3dcad239
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
  #
@@ -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/House
5
+ module House
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.3'.freeze
4
+ VERSION = '1.0.4'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -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.3
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-19 00:00:00.000000000 Z
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