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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d6e3ce9cb153b579936aca384cbdb8f73d1c824
4
- data.tar.gz: 8ab2872d2a93301be8420d3ba7815ef809a855c4
3
+ metadata.gz: 79dee0fa7b028f585fbe8bbeb413806c63400aed
4
+ data.tar.gz: 1ff68c9ac00138ec4d9f9ed405ae4df0f7d3bd12
5
5
  SHA512:
6
- metadata.gz: a7ba819f59a91286db8a2dd132b1b61d590e057ba93347da04692c87d0d10da37f03b9beeeda90aed8b18adf19871ecae6052da1eec46b2696166fd989b5ca8f
7
- data.tar.gz: 18aa6d056e56843c7d08456d6b3a3b78dcdeeeac8ab2aecd78ded20b5ae785d80095755c607daa110663db61a9e0bab81ae9e2b65a16bdbbe67d379484af3f60
6
+ metadata.gz: 3ea6224ec86fca3206f3ba908f5d4618216150409539b28e6ade6d71ac1d547761bed8eaad44f8661263101f2a8cce84f9135a201e8998ef941fb117e0edad92
7
+ data.tar.gz: 4b26122ed6976cf7fd56a0eadc99a247d303fb3c6dcec97b6bd9b9d80ee7a21acadcfedeb15a1e15cef48740a4d51ae0ca17031ee263f515335ed0a4bfcbc2c7
@@ -1,5 +1,9 @@
1
1
  module Parliament
2
2
  module Builder
3
- Dir[File.join(File.dirname(__FILE__), '../parliament/builder', '*.rb')].each { |builder| require builder }
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
@@ -1,7 +1,27 @@
1
1
  module Parliament
2
2
  # Decorator namespace
3
3
  module Decorator
4
- # require all the decorators
5
- Dir[File.join(File.dirname(__FILE__), '../parliament/decorator', '*.rb')].each { |decorator| require decorator }
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
@@ -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
- Dir[File.join(File.dirname(__FILE__), '../parliament/request', '*.rb')].each { |request| require request }
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
@@ -1,3 +1,3 @@
1
1
  module Parliament
2
- VERSION = '0.7.0.pre'.freeze
2
+ VERSION = '0.7.1.pre'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.pre
4
+ version: 0.7.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner