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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b06edfc8d628c5ac90cde50d5b0ece1f2abef49c
4
- data.tar.gz: 015dfc6b463c7acbd07310e8edc321173e0bd025
3
+ metadata.gz: a4b9f642131000e5c44ff97be87ac2fa068e1641
4
+ data.tar.gz: 206b67cc16c8e79a53059500bce8e5ef12dadf91
5
5
  SHA512:
6
- metadata.gz: bbda965fed3f938cb480991d20dd595b175fcf6fbe17cb1fed140b688f70998b52ec5ae3f918418c65813251a3db13b1ef8b6e703a5161547d9c1ff42583f8b1
7
- data.tar.gz: 7ef3b059bd55ee45ab68db904b9e5b06dc7191a68db97e49485a760b2c75bb1b99c4aef42800d6494112fc5e68e279127318c8d2d360415cee83ddf4185822e7
6
+ metadata.gz: 6317ace33c917e06f3506f7009b2f2fd9837fb627753e2f1361092383be4af0cef3e5bcf57814a3aa1f52aa5990501ce4930cd969c8425ee2073b5286de92af5
7
+ data.tar.gz: 5dc523676e9bb74d6824102377b4b59d22576c5331a488f92da18f438f277223b7f30b34a1a5adb9f33c4de8de326a164c9adb8da516b6f2d3588789ad7aaca3
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /tmp/
10
10
  *.gem
11
11
  .idea
12
+ .DS_Store
12
13
 
13
14
  # rspec failure tracking
14
15
  .rspec_status
@@ -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: http://id.ukpds.org/schema/ConstituencyArea
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: http://id.ukpds.org/schema/ConstituencyGroup
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 http://id.ukpds.org/schema/ConstituencyArea or nil.
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: http://id.ukpds.org/schema/ContactPoint
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: http://id.ukpds.org/schema/FormalBody.
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: http://id.ukpds.org/schema/FormalBodyMembership.
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: http://id.ukpds.org/schema/Gender
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: http://id.ukpds.org/schema/GenderIdentity
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 http://id.ukpds.org/schema/Gender or nil.
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: http://id.ukpds.org/schema/governmentIncumbency.
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: http://id.ukpds.org/schema/governmentPosition.
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: http://id.ukpds.org/schema/House
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: http://id.ukpds.org/schema/HouseIncumbency
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: http://id.ukpds.org/schema/HouseSeat
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: http://id.ukpds.org/schema/MemberImage
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: http://id.ukpds.org/schema/ParliamentaryIncumbency
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: http://id.ukpds.org/schema/Parliaments
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: http://id.ukpds.org/schema/Party
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: http://id.ukpds.org/schema/PartyMembership
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: http://id.ukpds.org/schema/Person.
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 == 'http://id.ukpds.org/schema/SeatIncumbency' }
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 == 'http://id.ukpds.org/schema/HouseIncumbency' }
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: http://id.ukpds.org/schema/PostalAddress
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: http://id.ukpds.org/schema/SeatIncumbency
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.
@@ -1,7 +1,7 @@
1
1
  module Parliament
2
2
  module Grom
3
3
  module Decorator
4
- VERSION = '0.10.1'.freeze
4
+ VERSION = '0.11.0'.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: 0.10.1
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 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler