pugin 1.6.5 → 1.6.6

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: 9566909e901221f53226a100d372bf3bb5e0ef9e
4
- data.tar.gz: 1c855302de9af0c3123240b1ae5d9e795575573b
3
+ metadata.gz: e9f565852633fa169d1c666b5dd8205be7dc0b4c
4
+ data.tar.gz: 0164d98d45b09f27805dbac1eebbd1f05c5214ab
5
5
  SHA512:
6
- metadata.gz: 32cfab5205bfc868f7479153d0014043f26b6e0254700df789d864939cedbd05e4c27721377483d2a9d8e0283a575d417fb2065b46b2acee09042f4b76c81bba
7
- data.tar.gz: 174df3b9bb317623613b51765f0c5bdbb2cdbe16de5c687a510f646df9d154b2c4f3c526a491e842020aec945818586114cf2921de65057be8a058830254fbea
6
+ metadata.gz: a174ec474f38e0ea358cb3920e9bf67d632d3ef5460af5039c936779399a969309e72a310ff9a1206b941b5eaf02bcdb0840e06ea0fb8b8de7d3a43c73c9801c
7
+ data.tar.gz: 10c540dca1664473ef60d8312a3a0e4b343bba24ce5b2934638b9f935fd13cd3707af2f8e963488b6c12a61aeb500bc92a22909938f3a1b199b2eba22249b49e
@@ -1,4 +1,4 @@
1
- - person_type = people.house_incumbencies.empty? ? "member" : "lord"
1
+ - person_type = people.current_mp? ? "member" : "lord"
2
2
 
3
3
  %li
4
4
  = render partial: "pugin/people/list/#{person_type}/#{person_type}", locals: { "#{person_type}": local_assigns.fetch(:people, []), as: person_type }
@@ -1,4 +1,4 @@
1
- - current_incumbency = lord.house_incumbencies.sort{ |inc_a, inc_b| inc_b.start_date <=> inc_a.start_date }.first
1
+ - current_incumbency = lord.seat_incumbencies.sort{ |inc_a, inc_b| inc_b.start_date <=> inc_a.start_date }.first
2
2
  - if Pugin::Feature::Bandiera.show_list_images?
3
3
  %figure
4
4
  %a{href: "/people/#{lord.graph_id}", tabindex: "-1"}
@@ -11,7 +11,7 @@
11
11
  .list--details
12
12
  - if !instance_variable_get("@parliament").nil? # parliament lord
13
13
 
14
- - elsif current_incumbency.current? # current lord
14
+ - elsif current_incumbency&.current? # current lord
15
15
  %h2
16
16
  %a{href: "/people/#{lord.graph_id}"}= lord.display_name
17
17
  - unless lord.statuses[:house_membership_status].empty? && !lord.statuses[:house_membership_status].include?('Current MP')
data/lib/pugin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.6.5'.freeze
2
+ VERSION = '1.6.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner