All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
Membership#sources
0.8.0 - 2016-10-28
Popolo#latest_term
replacesPopolo#current_term
and has the same functionality. It will return the most recent term for the legislature but it is not guaranteed that the term will be a current one. You should check thestart_date
andend_date
of the term to determine that.- Added
Election
andLegislativePeriod
classes forEvent
s. Collection#where
now returns aCollection
rather than anArray
- Added the following shortcut methods:
Membership#area
Membership#legislative_period
orMembership#term
Membership#person
Membership#on_behalf_of
orMembership#party
Membership#organization
Membership#post
Post#organization
Person#memberships
- Accessors are no longer generated dynamically for Popolo properties, which means that all normal accessor methods will now exist even where a record doesn’t have that property.
Popolo#current_term
- uselatest_term
instead.
0.7.0 - 2016-09-26
- Property lookups are now cached the first time they are used so multiple searches on the same property should be much quicker, especially on large data sets.
- Version 0.6.0 was accidentally tagged at the wrong (broken) point in history,
which included a broken fix for removing the
id
prefix from entities (#48), but not the pull request reverting that change (#49). 0.6.0 has been yanked from RubyGems and we recommend using version 0.6.1.
0.6.0 (yanked from RubyGems.org) - 2016-09-03
Entitiy#identifiers
will now return an empty list if no identifiers exist, rather than blowing up.
0.5.0 - 2016-08-01
- Added
Person#link(type)
0.4.0 - 2016-07-04
- Added
Organization#wikidata
0.3.2 - 2016-06-06
- Added missing attribute definition for
Event#start_date
andEvent#end_date
0.3.1 - 2016-05-04
- Added missing attribute definition for
Post#label
.
0.3.0 - 2016-05-04
- Return an empty array when no data is available for a collection (Thanks @henare)
- Support for Posts, which EveryPolitician has recently added support for.
Collection#find_by
andCollection#where
methods. See the README for more details on how to use these.- Explicit methods so that calling a known property on a document returns
nil
rather than blowing up if it's missing.
0.2.0 - 2016-03-11
- Support for all Popolo collections that EveryPolitician uses - People, Organizations, Areas, Memberships and Events. Thanks to @equivalentideas and @henare for this contribution!
- Initial release