wikidata_position_history 1.4.2 → 1.4.3

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
  SHA256:
3
- metadata.gz: 2d53ac2920ebe5b13817ab9aa31d32150cc24d7896362097bcbc18d17f93bebd
4
- data.tar.gz: d7b98d022698cc33738b6f11f8aa3d5c2b8408f79b57fd459179fbac2ec3df08
3
+ metadata.gz: 35a434aeccb7428a5d7ebc4ff9b534e6477980d153e744760459c3125c4e90ae
4
+ data.tar.gz: bf8f4773d018ae8800104989e2052689ea19217a2a2cafbc09c8d4e4839ce7d0
5
5
  SHA512:
6
- metadata.gz: 8e2cbe1a3e7772a038d566a0ddacd27ededf3e2ffd36a9ebea7bf1fa98af411a8ded14ec994a300d5e2c8ef2f194c5f49a7a6b72f5838d87e350e12035390db9
7
- data.tar.gz: 946c5ae13a66b4fde102cd6e6c18af9855b96da0840979211ba1b8c3f85b4dafd15dbb4b8978c220e1a3236937707df59c6faf3ab652bdaf4a8e1c891765eadc
6
+ metadata.gz: 9900bcc56726b22bf6a2e590400298fdd50dec62c992c1613fd33d2250d4a909ceed1dfc409ec94d5c4ff992a4ffbfcd15893fd9522f3061e967ca2370b03fad
7
+ data.tar.gz: c1d5ad9bdf3378afbebb3b97ffdd0bebca18e88be03605e0ba5d6a379efee73e5293b6881ebe854873fe879b1409320d721f20162d15a654350ccea4587e506c
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ # [1.4.3] 2020-09-05
4
+
5
+ ## Fixes
6
+
7
+ * No longer blows up when a P39 has a start date, but no end date
8
+
3
9
  # [1.4.2] 2020-09-05
4
10
 
5
11
  ## Fixes
@@ -124,8 +124,10 @@ module WikidataPositionHistory
124
124
  def problem?
125
125
  return false unless later
126
126
 
127
+ next_starts = later.start_date or return false
127
128
  ends = current.end_date or return false
128
- ends > later.start_date
129
+
130
+ ends > next_starts
129
131
  rescue ArgumentError
130
132
  true
131
133
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WikidataPositionHistory
4
- VERSION = '1.4.2'
4
+ VERSION = '1.4.3'
5
5
  end
@@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
11
11
  spec.authors = ['Tony Bowden', 'Mark Longair']
12
12
  spec.email = ['tony@tmtm.com']
13
13
 
14
- spec.summary = 'Generates a wikitext history of a holders of a position in Wikidata'
15
- spec.homepage = 'https://github.com/everypolitician/wikidata-position-history/'
14
+ spec.summary = 'Generates a table of historic holders of a Wikidata position'
15
+ spec.homepage = 'https://github.com/tmtmtmtm/wikidata-position-history/'
16
16
  spec.license = 'MIT'
17
17
 
18
18
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikidata_position_history
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Bowden
@@ -214,7 +214,7 @@ files:
214
214
  - lib/wikidata_position_history/template.rb
215
215
  - lib/wikidata_position_history/version.rb
216
216
  - wikidata_position_history.gemspec
217
- homepage: https://github.com/everypolitician/wikidata-position-history/
217
+ homepage: https://github.com/tmtmtmtm/wikidata-position-history/
218
218
  licenses:
219
219
  - MIT
220
220
  metadata:
@@ -238,5 +238,5 @@ rubyforge_project:
238
238
  rubygems_version: 2.7.6.2
239
239
  signing_key:
240
240
  specification_version: 4
241
- summary: Generates a wikitext history of a holders of a position in Wikidata
241
+ summary: Generates a table of historic holders of a Wikidata position
242
242
  test_files: []