parliament-utils 0.2.0 → 0.2.1

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: 301abf7210069915eb2c686a16886e5ac4bfa890
4
- data.tar.gz: f89dcca624ea06800bdb2677874226976634b13d
3
+ metadata.gz: 6181b19123e8c926e216c7c38712043242e829af
4
+ data.tar.gz: 0e0089c083752bb47e7a23fe819492e1522908a3
5
5
  SHA512:
6
- metadata.gz: 7738ea2e1b5fbf25dc797045e884a263390e4ed55f9bda6d22a528e9cbdedc19f0f944569391591bcab5d5a62e79a3334a5b843b23b13844480b7f835f4ddc1f
7
- data.tar.gz: 796d19b7ac4168f9599cd7a0d3ece5893cf1c1f1e4e95831ff7dd061f683ff4aea9be7071c112e3d937da99fd8c763e34d51070e7cfb174f8e549d6f5aee11ef
6
+ metadata.gz: 736ffc1bd11ad2e49db8bc20e07849e5b7dd922490b24dd0a87f53fc48f6d9c238960265e8ec79675e3674d3856c594c2c371d71f78eb263f024b4e54a19e7ba
7
+ data.tar.gz: 1c3bb9dc1999fedefb3662621aa4c145d077e149e75cbcb3ec7340cfa060155ba56909eee7e28e6089b19a4f9452d464fa8315192280e3e0168b64d0ce590479
@@ -69,7 +69,7 @@ module Parliament
69
69
 
70
70
  def self.set_ids
71
71
  return if @commons_id && @lords_id
72
- houses = Parliament::Utils::Helpers::ParliamentHelper.parliament_request.houses.get.filter('http://id.ukpds.org/schema/House').sort_by(:name)
72
+ houses = Parliament::Utils::Helpers::ParliamentHelper.parliament_request.house_index.get.filter('http://id.ukpds.org/schema/House').sort_by(:name)
73
73
 
74
74
  @commons_id = houses.first.graph_id
75
75
  @lords_id = houses.last.graph_id
@@ -18,7 +18,7 @@ module Parliament
18
18
  postcode = clean_input(raw_input)
19
19
 
20
20
  begin
21
- Parliament::Utils::Helpers::ParliamentHelper.parliament_request.constituencies.postcode_lookup(postcode).get
21
+ Parliament::Utils::Helpers::ParliamentHelper.parliament_request.constituency_lookup_by_postcode.get(params: { postcode: postcode })
22
22
  rescue Parliament::ClientError
23
23
  raise(PostcodeError, I18n.t('error.no_constituency').capitalize)
24
24
  rescue Parliament::ServerError
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Utils
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.2.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-08-01 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parliament-ruby