parliament-grom-decorators 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/parliament/grom/decorator/constituency_area.rb +1 -1
- data/lib/parliament/grom/decorator/constituency_group.rb +2 -2
- data/lib/parliament/grom/decorator/contact_point.rb +1 -1
- data/lib/parliament/grom/decorator/formal_body.rb +1 -1
- data/lib/parliament/grom/decorator/formal_body_membership.rb +1 -1
- data/lib/parliament/grom/decorator/gender.rb +1 -1
- data/lib/parliament/grom/decorator/gender_identity.rb +2 -2
- data/lib/parliament/grom/decorator/government_incumbency.rb +1 -1
- data/lib/parliament/grom/decorator/government_position.rb +1 -1
- data/lib/parliament/grom/decorator/house.rb +1 -1
- data/lib/parliament/grom/decorator/house_incumbency.rb +1 -1
- data/lib/parliament/grom/decorator/house_seat.rb +1 -1
- data/lib/parliament/grom/decorator/member_image.rb +1 -1
- data/lib/parliament/grom/decorator/parliamentary_incumbency.rb +1 -1
- data/lib/parliament/grom/decorator/parliaments.rb +1 -1
- data/lib/parliament/grom/decorator/party.rb +1 -1
- data/lib/parliament/grom/decorator/party_membership.rb +1 -1
- data/lib/parliament/grom/decorator/person.rb +3 -3
- data/lib/parliament/grom/decorator/postal_address.rb +1 -1
- data/lib/parliament/grom/decorator/seat_incumbency.rb +1 -1
- data/lib/parliament/grom/decorator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4b9f642131000e5c44ff97be87ac2fa068e1641
|
4
|
+
data.tar.gz: 206b67cc16c8e79a53059500bce8e5ef12dadf91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6317ace33c917e06f3506f7009b2f2fd9837fb627753e2f1361092383be4af0cef3e5bcf57814a3aa1f52aa5990501ce4930cd969c8425ee2073b5286de92af5
|
7
|
+
data.tar.gz: 5dc523676e9bb74d6824102377b4b59d22576c5331a488f92da18f438f277223b7f30b34a1a5adb9f33c4de8de326a164c9adb8da516b6f2d3588789ad7aaca3
|
data/.gitignore
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/ConstituencyArea
|
5
5
|
module ConstituencyArea
|
6
6
|
# Alias constituencyAreaLatitude with fallback.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/ConstituencyGroup
|
5
5
|
#
|
6
6
|
# attr [Boolean] correct verifies that the Grom::Node is the expected constituency. This is used in conjunction with postcode lookup to verify if the Grom::Node is the expected constituency.
|
7
7
|
module ConstituencyGroup
|
@@ -66,7 +66,7 @@ module Parliament
|
|
66
66
|
|
67
67
|
# Alias constituencyGroupHasConstituencyArea with fallback.
|
68
68
|
#
|
69
|
-
# @return [Grom::Node, nil] a Grom::Node with type
|
69
|
+
# @return [Grom::Node, nil] a Grom::Node with type https://id.parliament.uk/schema/ConstituencyArea or nil.
|
70
70
|
def area
|
71
71
|
respond_to?(:constituencyGroupHasConstituencyArea) ? constituencyGroupHasConstituencyArea.first : nil
|
72
72
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/ContactPoint
|
5
5
|
module ContactPoint
|
6
6
|
# Alias contactPointHasPostalAddress with fallback.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/FormalBody.
|
5
5
|
# rubocop:disable ModuleLength
|
6
6
|
module FormalBody
|
7
7
|
include Helpers::DateHelper
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/FormalBodyMembership.
|
5
5
|
# rubocop:disable ModuleLength
|
6
6
|
module FormalBodyMembership
|
7
7
|
include Helpers::DateHelper
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/Gender
|
5
5
|
module Gender
|
6
6
|
# Alias genderName with fallback.
|
7
7
|
#
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/GenderIdentity
|
5
5
|
module GenderIdentity
|
6
6
|
# Alias genderIdentityHasGender with fallback.
|
7
7
|
#
|
8
|
-
# @return [Grom::Node, nil] a Grom::Node with type
|
8
|
+
# @return [Grom::Node, nil] a Grom::Node with type https://id.parliament.uk/schema/Gender or nil.
|
9
9
|
def gender
|
10
10
|
respond_to?(:genderIdentityHasGender) ? genderIdentityHasGender.first : nil
|
11
11
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/governmentIncumbency.
|
5
5
|
# rubocop:disable ModuleLength
|
6
6
|
module GovernmentIncumbency
|
7
7
|
include Helpers::DateHelper
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/governmentPosition.
|
5
5
|
# rubocop:disable ModuleLength
|
6
6
|
module GovernmentPosition
|
7
7
|
# Checks if Grom::Node has a name.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/House
|
5
5
|
module House
|
6
6
|
# Alias houseName with fallback.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/HouseIncumbency
|
5
5
|
module HouseIncumbency
|
6
6
|
include Helpers::DateHelper
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/HouseSeat
|
5
5
|
module HouseSeat
|
6
6
|
# Alias houseSeatHasHouse with fallback.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/MemberImage
|
5
5
|
module MemberImage
|
6
6
|
# Alias memberImageHasMember with fallback.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/ParliamentaryIncumbency
|
5
5
|
module ParliamentaryIncumbency
|
6
6
|
include Helpers::DateHelper
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/Parliaments
|
5
5
|
module ParliamentPeriod
|
6
6
|
include Helpers::DateHelper
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/Party
|
5
5
|
module Party
|
6
6
|
# Alias partyName with fallback.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/PartyMembership
|
5
5
|
module PartyMembership
|
6
6
|
include Helpers::DateHelper
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/Person.
|
5
5
|
# rubocop:disable ModuleLength
|
6
6
|
module Person
|
7
7
|
include Helpers::DateHelper
|
@@ -69,14 +69,14 @@ module Parliament
|
|
69
69
|
#
|
70
70
|
# @return [Array, Array] the seat incumbencies of the Grom::Node or an empty array.
|
71
71
|
def seat_incumbencies
|
72
|
-
@seat_incumbencies ||= incumbencies.select { |inc| inc.type == '
|
72
|
+
@seat_incumbencies ||= incumbencies.select { |inc| inc.type == 'https://id.parliament.uk/schema/SeatIncumbency' }
|
73
73
|
end
|
74
74
|
|
75
75
|
# Alias memberHasParliamentaryIncumbency with fallback.
|
76
76
|
#
|
77
77
|
# @return [Array, Array] the house incumbencies of the Grom::Node or an empty array.
|
78
78
|
def house_incumbencies
|
79
|
-
@house_incumbencies ||= incumbencies.select { |inc| inc.type == '
|
79
|
+
@house_incumbencies ||= incumbencies.select { |inc| inc.type == 'https://id.parliament.uk/schema/HouseIncumbency' }
|
80
80
|
end
|
81
81
|
|
82
82
|
# Alias seatIncumbencyHasHouseSeat with fallback.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/PostalAddress
|
5
5
|
module PostalAddress
|
6
6
|
# Builds a full address using the lines of the address and the postcode.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Grom
|
3
3
|
module Decorator
|
4
|
-
# Decorator namespace for Grom::Node instances with type:
|
4
|
+
# Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/SeatIncumbency
|
5
5
|
module SeatIncumbency
|
6
6
|
include Helpers::DateHelper
|
7
7
|
# Alias parliamentaryIncumbencyStartDate with fallback.
|
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: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rebecca Appleyard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|