parliament-grom-decorators 0.22.0 → 0.22.1

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: 2a8e463ea0df6d029f956dae0d477d9a4bf1214d
4
- data.tar.gz: ab2d044459ce303cbd4eb547ae591d27a9199426
3
+ metadata.gz: bc13e4d4c860ef8ced996dae9efe6ea83816fde8
4
+ data.tar.gz: 04f944e13d09b1d75aa4be8106cd4e11f9154dad
5
5
  SHA512:
6
- metadata.gz: 80198d68a8885b28c59f174417b696c2f8605cc810bbf4ee2fcc3020b6f7b34b908438d5924be1483260ebded8281412537a4b3bbf1fa9af2924bbb2636f60b1
7
- data.tar.gz: a406c5faba73f67de95ee2f554ecd7a61d33fca15d381f84f3a5a0128ceb6406f8fc0558dddf6ebe7216b2a3ada923a25f548858716a132ce9c60605123f0e34
6
+ metadata.gz: e920d5219dfda400d7b7039efafe5b1547cc9a74f61b3fe13e5831d7028118cde991203143af5b44627db3c3b52fb3652d17844a35c46bc34303068831da77cc
7
+ data.tar.gz: e4c610ff93e7876a7bd94139dd3fb7afe61a8a8da0a3ebf63a373ea58d3fc9727ae45b802f13997e9a3bee630d903f7049bf7e05dc4f766850beeb31b527db27
@@ -53,6 +53,13 @@ module Parliament
53
53
  def current?
54
54
  end_date.nil?
55
55
  end
56
+
57
+ # Checks if Grom::Node has contact points.
58
+ #
59
+ # @return [Array, Array] an arry containing the contact_point(s), or an empty array.
60
+ def contact_points
61
+ @contact_points ||= respond_to?(:formalBodyHasContactPoint) ? Array(formalBodyHasContactPoint) : []
62
+ end
56
63
  end
57
64
  end
58
65
  end
@@ -1,7 +1,7 @@
1
1
  module Parliament
2
2
  module Grom
3
3
  module Decorator
4
- VERSION = '0.22.0'.freeze
4
+ VERSION = '0.22.1'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-grom-decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rebecca Appleyard