parliament-ruby 0.7.0.pre → 0.7.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parliament/builder.rb +5 -1
- data/lib/parliament/decorator.rb +22 -2
- data/lib/parliament/request.rb +3 -1
- data/lib/parliament/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79dee0fa7b028f585fbe8bbeb413806c63400aed
|
4
|
+
data.tar.gz: 1ff68c9ac00138ec4d9f9ed405ae4df0f7d3bd12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ea6224ec86fca3206f3ba908f5d4618216150409539b28e6ade6d71ac1d547761bed8eaad44f8661263101f2a8cce84f9135a201e8998ef941fb117e0edad92
|
7
|
+
data.tar.gz: 4b26122ed6976cf7fd56a0eadc99a247d303fb3c6dcec97b6bd9b9d80ee7a21acadcfedeb15a1e15cef48740a4d51ae0ca17031ee263f515335ed0a4bfcbc2c7
|
data/lib/parliament/builder.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
module Parliament
|
2
2
|
module Builder
|
3
|
-
|
3
|
+
require_relative '../parliament/builder/base_response_builder'
|
4
|
+
|
5
|
+
require_relative '../parliament/builder/ntriple_response_builder'
|
6
|
+
|
7
|
+
require_relative '../parliament/builder/open_search_response_builder'
|
4
8
|
end
|
5
9
|
end
|
data/lib/parliament/decorator.rb
CHANGED
@@ -1,7 +1,27 @@
|
|
1
1
|
module Parliament
|
2
2
|
# Decorator namespace
|
3
3
|
module Decorator
|
4
|
-
|
5
|
-
|
4
|
+
require_relative '../parliament/decorator/constituency_area'
|
5
|
+
require_relative '../parliament/decorator/constituency_group'
|
6
|
+
|
7
|
+
require_relative '../parliament/decorator/contact_point'
|
8
|
+
|
9
|
+
require_relative '../parliament/decorator/gender'
|
10
|
+
require_relative '../parliament/decorator/gender_identity'
|
11
|
+
|
12
|
+
require_relative '../parliament/decorator/house'
|
13
|
+
require_relative '../parliament/decorator/house_incumbency'
|
14
|
+
require_relative '../parliament/decorator/house_seat'
|
15
|
+
|
16
|
+
require_relative '../parliament/decorator/incumbency'
|
17
|
+
|
18
|
+
require_relative '../parliament/decorator/party'
|
19
|
+
require_relative '../parliament/decorator/party_membership'
|
20
|
+
|
21
|
+
require_relative '../parliament/decorator/person'
|
22
|
+
|
23
|
+
require_relative '../parliament/decorator/postal_address'
|
24
|
+
|
25
|
+
require_relative '../parliament/decorator/seat_incumbency'
|
6
26
|
end
|
7
27
|
end
|
data/lib/parliament/request.rb
CHANGED
@@ -7,6 +7,8 @@ module Parliament
|
|
7
7
|
# @attr_reader [String] base_url the base url of our api. (expected: http://example.com - without the trailing slash).
|
8
8
|
# @attr_reader [Hash] headers the headers being sent in the request.
|
9
9
|
module Request
|
10
|
-
|
10
|
+
require_relative '../parliament/request/base_request'
|
11
|
+
require_relative '../parliament/request/open_search_request'
|
12
|
+
require_relative '../parliament/request/url_request'
|
11
13
|
end
|
12
14
|
end
|
data/lib/parliament/version.rb
CHANGED