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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6181b19123e8c926e216c7c38712043242e829af
|
4
|
+
data.tar.gz: 0e0089c083752bb47e7a23fe819492e1522908a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
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.
|
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-
|
11
|
+
date: 2017-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parliament-ruby
|