All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.20.0 - 2016-10-28
- Added
all_legislaturesto Index class. Returns an array of all the Legislatures for all countries. - Added
latest_termto Legislature class. This returns an Everpolitician::Popolo::LegislativePeriod object with data from the latest term. Note that this may involve a substantial download depending on the legislature.
0.19.0 - 2016-10-19
0.18.0 - 2016-08-25
- The method to get the URL of the names file is now
Legislature.names_url, notLegislature.csv_url
0.17.0 - 2016-08-23
- The code now uses the
csv_urlfield from the data, so the url host has changed fromraw.githubusercontent.comtocdn.rawgit.com.
0.16.0 - 2016-08-22
- Added
csv_urlto Legislature class. Returns full url ofnames.csvfile. For example:https://cdn.rawgit.com/everypolitician/everypolitician-data/ba976cf/data/UK/Commons/names.csv
0.15.0 - 2016-08-23
- Calling
start_dateorend_dateon a Legislature which doesn’t have one now returnsnilrather than raising an Exception.
0.14.0 - 2016-08-22
- A Legislature now has
[]defined, for symmetry with Country and LegislativePeriod
0.13.0 - 2016-08-18
- There is now an
Everypolitician::Indexclass which can be instantiated with a url pointing to acountries.jsonfile. This replaces the need to globally set a url viaEverypolitician.countries_json=.- You can access a country via the
Everypolitician::Index#countrymethod, which takes a (case-insensitive) slug for the country. - You can get a list of all countries via the
Everypolitician::Index#countriesmethod.
- You can access a country via the
0.12.0 - 2016-08-16
- Trying to find a non-existent country or legislature now returns
nilrather than raising an exception.
0.11.0 - 2016-08-07
- Searches by slug for a Country or a Legislature are now case insensitive
0.10.0 - 2016-08-04
- The code now uses the
popolo_urlfield from the data, so the url host has changed fromraw.githubusercontent.comtocdn.rawgit.com.
0.9.0 - 2016-07-28
- The
Legislature#lastmodattribute now returns a Time object instead of just a string with the time in seconds.
0.8.0 - 2016-07-26
- There is now a
Legislature#statement_countmethod for returning the statement count of a legislature, which corresponds to thestatement_countfield in the legislatures of a country coming from the data incountries_json.
0.7.0 - 2016-06-21
- There is now a
Legislature.directorymethod for returning the directory path underdatawhere the raw data on everypolician data can be found
0.6.1 - 2016-05-23
start_dateandend_datefor a legislative period now work correctly for a partial date, e.g.2010.
0.6.0 - 2016-01-29
- There is now a
LegislativePeriodclass to represent each legislative period in a legislature. This has a#csvmethod to return a parsed version of the legislative periods CSV. - You can now call
Legislature#countryto get the country for a legislature. Similarly you can callLegislativePeriod#countryorLegislativePeriod#legislatureto get the related objects.
0.5.0 - 2016-01-27
Everypolitician.countriesmethod for returning an array of all countries.- Find countries and legislatures by arbitrary attributes, e.g.
Everypolitician.country(code: 'AU')
- We no longer use ruby metaprogramming to define the methods on
CountryandLegislature, they are now explicitly defined as properties and methods. Legislature#popolo_urlnow uses theLegislature#shamethod rather thanmasterin the raw url.countries.jsonis only loaded once, when it’s first accessed. If you want to force a refetch then you can callEverypolitician.countries = nil.
0.4.0 - 2016-01-26
Everypolitician::Legislature#popolonow returns an instance ofEverypolitician::Popolo::JSONfrom everypolitician-popolo instead of a string representing the path.
Everypolitician::Legislature#popolo_urlnow returns a GitHub raw url to the popolo for the legislature.
0.3.0 - 2015-12-22
- You can now use
EveryPoliticianas the constant name as well asEverypolitician - You can change the
countries.jsonthe library uses viaEverypolitician.countries_json=
0.2.0 - 2015-12-22
countries.jsonis now represented by a separate class allowing users to access the raw underlying data.
- Initial release