parliament-ruby 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bash_profile +1 -0
- data/.gitignore +12 -0
- data/.hound.yml +4 -0
- data/.rspec +2 -0
- data/.rubocop.yml +57 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/LICENSE +7 -0
- data/README.md +138 -0
- data/Rakefile +6 -0
- data/bin/console +13 -0
- data/bin/setup +8 -0
- data/lib/parliament.rb +11 -0
- data/lib/parliament/request.rb +43 -0
- data/lib/parliament/response.rb +29 -0
- data/lib/parliament/version.rb +3 -0
- data/parliament-ruby.gemspec +35 -0
- metadata +203 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 723becb108a322e281da7b1caf864791ed4707ba
|
4
|
+
data.tar.gz: 26f7be8681949436953d83d45e4fddffb5044149
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bdcb1face1f18f79a9acf84c73673bde3aa7df4c1fa1fd279e253d2c891770fc97ddab9c75b4aa9c3c29c2cf92b35886bbfb196077be238cd527f2f06de3dda1
|
7
|
+
data.tar.gz: 2d86fbfdd19c45e0289900aa4381c89d983c11635ecf07ef0dba31640c6493dd4a3bb5b00b1cfd5812945975dd35cf2a3d67a1fb79541d2250474d1c6379d924
|
data/.bash_profile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
alias be='bundle exec'
|
data/.gitignore
ADDED
data/.hound.yml
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
Metrics/LineLength:
|
2
|
+
Description: 'Limit lines to 120 characters.'
|
3
|
+
Max: 120
|
4
|
+
|
5
|
+
Style/Documentation:
|
6
|
+
Enabled: false
|
7
|
+
|
8
|
+
Style/SpaceBeforeFirstArg:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Style/BracesAroundHashParameters:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Style/IndentHash:
|
15
|
+
EnforcedStyle: consistent
|
16
|
+
|
17
|
+
Style/AlignHash:
|
18
|
+
Severity: fatal
|
19
|
+
Enabled: true
|
20
|
+
EnforcedHashRocketStyle: table
|
21
|
+
EnforcedColonStyle: table
|
22
|
+
|
23
|
+
Style/AlignParameters:
|
24
|
+
EnforcedStyle: with_fixed_indentation
|
25
|
+
|
26
|
+
Style/StringLiterals:
|
27
|
+
EnforcedStyle: single_quotes
|
28
|
+
|
29
|
+
Style/CollectionMethods:
|
30
|
+
PreferredMethods:
|
31
|
+
collect: 'map'
|
32
|
+
collect!: 'map!'
|
33
|
+
inject: 'reduce'
|
34
|
+
detect: 'find'
|
35
|
+
find_all: 'select'
|
36
|
+
|
37
|
+
Style/DotPosition:
|
38
|
+
EnforcedStyle: leading
|
39
|
+
|
40
|
+
Style/DoubleNegation:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/SpaceAroundOperators:
|
44
|
+
# When true, allows most uses of extra spacing if the intent is to align
|
45
|
+
# with an operator on the previous or next line, not counting empty lines
|
46
|
+
# or comment lines.
|
47
|
+
AllowForAlignment: true
|
48
|
+
|
49
|
+
Style/FrozenStringLiteralComment:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
AllCops:
|
53
|
+
Exclude:
|
54
|
+
- '*.gemspec'
|
55
|
+
- 'vendor/**/*'
|
56
|
+
- 'spec/fixtures/**/*'
|
57
|
+
- 'tmp/**/*'
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at mattrayner1@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright (c) 2016-2017 United Kingdom Parliament
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
# Parliament Data API Wrapper (Ruby)
|
2
|
+
[parliament-ruby][parliament-ruby] is a gem created by the [Parliamentary Digital Service][pds] to allow easy communication with the internal parliament data api.
|
3
|
+
|
4
|
+
[![Build Status][shield-travis]][info-travis] [![Test Coverage][shield-coveralls]][info-coveralls] [![License][shield-license]][info-license]
|
5
|
+
|
6
|
+
> **NOTE:** This gem is in active development and is likely to change at short notice. It is not recommended that you use this in any production environment.
|
7
|
+
|
8
|
+
### Contents
|
9
|
+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
10
|
+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
11
|
+
|
12
|
+
|
13
|
+
- [Requirements](#requirements)
|
14
|
+
- [Installation](#installation)
|
15
|
+
- [Usage](#usage)
|
16
|
+
- [Setting up a connection](#setting-up-a-connection)
|
17
|
+
- [Setting a base URL 'globally'](#setting-a-base-url-globally)
|
18
|
+
- [Building an 'endpoint'](#building-an-endpoint)
|
19
|
+
- [What's #get?](#whats-get)
|
20
|
+
- [Getting Started with Development](#getting-started-with-development)
|
21
|
+
- [Running the tests](#running-the-tests)
|
22
|
+
- [Contributing](#contributing)
|
23
|
+
- [License](#license)
|
24
|
+
|
25
|
+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
26
|
+
|
27
|
+
|
28
|
+
## Requirements
|
29
|
+
[parliament-ruby][parliament-ruby] requires the following:
|
30
|
+
* [Ruby][ruby] - [click here][ruby-version] for the exact version
|
31
|
+
* [Bundler][bundler]
|
32
|
+
|
33
|
+
|
34
|
+
## Installation
|
35
|
+
This gem is currently not available on RubyGems. To use it in an application, install it directly from GitHub via your Gemfile
|
36
|
+
```bash
|
37
|
+
gem 'parliament', git: 'https://github.com/ukparliament/parliament-ruby.git', branch: 'master'
|
38
|
+
```
|
39
|
+
|
40
|
+
|
41
|
+
## Usage
|
42
|
+
This gem's main function is fetching an n-triple file from a remote server and converting it into linked ruby objects.
|
43
|
+
|
44
|
+
### Setting up a connection
|
45
|
+
In order to connect to a remote server, we first need to set a base_url value, from which we will build an 'endpoint'. The base_url should be the beginning of a url without the trailing slash. For example `http://example.com` instead of `http://example.com/`.
|
46
|
+
```ruby
|
47
|
+
parliament = Parliament::Request.new(base_url: 'http://test.com')
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Setting a base URL 'globally'
|
51
|
+
Within code you can set a global base URL using the following snippet.
|
52
|
+
```ruby
|
53
|
+
Parliament::Request.base_url = 'http://test.com'
|
54
|
+
|
55
|
+
# The base_url should be set for all new objects
|
56
|
+
Parliament::Request.new.base_url #=> 'http://test.com'
|
57
|
+
|
58
|
+
# You can still override the base_url on an instance by instance basis
|
59
|
+
Parliament::Request.new(base_url: 'http://example.com').base_url #=> 'http://example.com'
|
60
|
+
```
|
61
|
+
|
62
|
+
Alternatively, you can set the environment variable `PARLIAMENT_BASE_URL` on your machine and we will automatically use that.
|
63
|
+
```ruby
|
64
|
+
ENV['PARLIAMENT_BASE_URL'] #=> 'http://example.com'
|
65
|
+
|
66
|
+
Parliament::Request.base_url #=> nil
|
67
|
+
|
68
|
+
Parliament::Request.new.base_url #=> 'http://example.com'
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
### Building an 'endpoint'
|
73
|
+
Now that we have a `base_url` set, we will want to build an 'endpoint' such as: `http://test.com/parties/current.nt`.
|
74
|
+
|
75
|
+
An endpoint is effectively just a full URL to an n-triple file on a remote server.
|
76
|
+
|
77
|
+
Building an endpoint is simple, once you have a Parliament::Request object, you do something like this:
|
78
|
+
```ruby
|
79
|
+
parliament = Parliament::Request.new(base_url: 'http://test.com') #=> #<Parliament::Request>
|
80
|
+
|
81
|
+
# target endpoint: 'http://test.com/parties/current.nt'
|
82
|
+
parliament.parties.current.get
|
83
|
+
|
84
|
+
# target endpoint: 'http://test.com/parties/123/people/current.nt'
|
85
|
+
parliament.parties('123').people.current.get
|
86
|
+
|
87
|
+
# target endpoint: 'http://test.com/people/123/letters/456.nt'
|
88
|
+
parliament.people('123').letters('456').get
|
89
|
+
```
|
90
|
+
|
91
|
+
#### What's #get?
|
92
|
+
Once you've built your endpoint (`parliament.people.current`), we use the `#get` method to tell us you're finished building and ready to get the data.
|
93
|
+
|
94
|
+
|
95
|
+
## Getting Started with Development
|
96
|
+
To clone the repository and set up the dependencies, run the following:
|
97
|
+
```bash
|
98
|
+
git clone https://github.com/ukparliament/parliament-ruby.git
|
99
|
+
cd parliament-ruby
|
100
|
+
bundle install
|
101
|
+
```
|
102
|
+
|
103
|
+
### Running the tests
|
104
|
+
We use [RSpec][rspec] as our testing framework and tests can be run using:
|
105
|
+
```bash
|
106
|
+
bundle exec rake
|
107
|
+
```
|
108
|
+
|
109
|
+
|
110
|
+
## Contributing
|
111
|
+
If you wish to submit a bug fix or feature, you can create a pull request and it will be merged pending a code review.
|
112
|
+
|
113
|
+
1. Fork the repository
|
114
|
+
1. Create your feature branch (`git checkout -b my-new-feature`)
|
115
|
+
1. Commit your changes (`git commit -am 'Add some feature'`)
|
116
|
+
1. Push to the branch (`git push origin my-new-feature`)
|
117
|
+
1. Ensure your changes are tested using [Rspec][rspec]
|
118
|
+
1. Create a new Pull Request
|
119
|
+
|
120
|
+
|
121
|
+
## License
|
122
|
+
[parliament-ruby][parliament-ruby] is licensed under the [Open Parliament Licence][info-license].
|
123
|
+
|
124
|
+
[ruby]: https://www.ruby-lang.org/en/
|
125
|
+
[bundler]: http://bundler.io
|
126
|
+
[rspec]: http://rspec.info
|
127
|
+
[parliament-ruby]: https://github.com/ukparliament/parliament-ruby
|
128
|
+
[pds]: https://www.parliament.uk/mps-lords-and-offices/offices/bicameral/parliamentary-digital-service/
|
129
|
+
[ruby-version]: https://github.com/ukparliament/parliament-ruby/blob/master/.ruby-version
|
130
|
+
|
131
|
+
[info-travis]: https://travis-ci.org/ukparliament/parliament-ruby
|
132
|
+
[shield-travis]: https://img.shields.io/travis/ukparliament/parliament-ruby.svg
|
133
|
+
|
134
|
+
[info-coveralls]: https://coveralls.io/github/ukparliament/parliament-ruby
|
135
|
+
[shield-coveralls]: https://img.shields.io/coveralls/ukparliament/parliament-ruby.svg
|
136
|
+
|
137
|
+
[info-license]: http://www.parliament.uk/site-information/copyright/open-parliament-licence/
|
138
|
+
[shield-license]: https://img.shields.io/badge/license-Open%20Parliament%20Licence-blue.svg
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'bundler/setup'
|
3
|
+
require 'parliament'
|
4
|
+
|
5
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
6
|
+
# with your gem easier. You can also use a different console, if you like.
|
7
|
+
|
8
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
9
|
+
require 'pry'
|
10
|
+
Pry.start
|
11
|
+
|
12
|
+
require 'irb'
|
13
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/parliament.rb
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
module Parliament
|
2
|
+
class Request
|
3
|
+
attr_reader :base_url
|
4
|
+
|
5
|
+
def initialize(base_url: nil)
|
6
|
+
@endpoint_parts = []
|
7
|
+
@base_url = base_url || self.class.base_url || ENV['PARLIAMENT_BASE_URL']
|
8
|
+
end
|
9
|
+
|
10
|
+
def method_missing(method, *params, &block)
|
11
|
+
# TODO: Fix this smell
|
12
|
+
super if method == :base_url=
|
13
|
+
|
14
|
+
@endpoint_parts << method.to_s
|
15
|
+
@endpoint_parts << params
|
16
|
+
@endpoint_parts = @endpoint_parts.flatten!
|
17
|
+
self
|
18
|
+
end
|
19
|
+
|
20
|
+
def respond_to_missing?(method, include_private = false)
|
21
|
+
(method != :base_url=) || super
|
22
|
+
end
|
23
|
+
|
24
|
+
def get
|
25
|
+
response = Net::HTTP.get_response(URI(api_endpoint))
|
26
|
+
|
27
|
+
raise StandardError, 'This is a HTTPClientError' if response.is_a?(Net::HTTPClientError)
|
28
|
+
raise StandardError, 'This is a HTTPServerError' if response.is_a?(Net::HTTPServerError)
|
29
|
+
|
30
|
+
Parliament::Response.new(Grom::Reader.new(response.body).objects)
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
class << self
|
36
|
+
attr_accessor :base_url
|
37
|
+
end
|
38
|
+
|
39
|
+
def api_endpoint
|
40
|
+
[@base_url, @endpoint_parts].join('/') + '.nt'
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'forwardable'
|
2
|
+
|
3
|
+
module Parliament
|
4
|
+
class Response
|
5
|
+
include Enumerable
|
6
|
+
extend Forwardable
|
7
|
+
attr_reader :nodes
|
8
|
+
def_delegators :@nodes, :size, :each, :select, :map, :select!, :map!, :count, :length
|
9
|
+
|
10
|
+
def initialize(nodes)
|
11
|
+
@nodes = nodes
|
12
|
+
end
|
13
|
+
|
14
|
+
def filter(*types)
|
15
|
+
filtered_objects = Array.new(types.size) { [] }
|
16
|
+
|
17
|
+
unless types.empty?
|
18
|
+
@nodes.each do |node|
|
19
|
+
type_index = types.index(node.type)
|
20
|
+
filtered_objects[type_index] << node unless type_index.nil?
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
filtered_objects.each do |objects|
|
25
|
+
Parliament::Response.new(objects)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'parliament/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'parliament-ruby'
|
8
|
+
spec.version = Parliament::VERSION
|
9
|
+
spec.authors = ['Matt Rayner']
|
10
|
+
spec.email = ['mattrayner1@gmail.com']
|
11
|
+
spec.summary = %q{Internal parliamentary data API wrapper for ruby}
|
12
|
+
spec.description = %q{Internal parliamentary data API wrapper for ruby}
|
13
|
+
spec.homepage = 'http://github.com/ukparliament/parliament_ruby'
|
14
|
+
spec.license = 'Open Parliament License'
|
15
|
+
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = 'exe'
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
spec.add_dependency 'grom', '~> 0.2.0'
|
25
|
+
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.13'
|
27
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
|
+
spec.add_development_dependency 'rubocop', '~> 0.47.1'
|
30
|
+
spec.add_development_dependency 'pry', '~> 0.10.4'
|
31
|
+
spec.add_development_dependency 'pry-nav', '~> 0.2.4'
|
32
|
+
spec.add_development_dependency 'simplecov', '~> 0.12.0'
|
33
|
+
spec.add_development_dependency 'vcr', '~> 3.0.3'
|
34
|
+
spec.add_development_dependency 'webmock', '~> 2.3.2'
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: parliament-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matt Rayner
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: grom
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.13'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.13'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.47.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.47.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.10.4
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.10.4
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry-nav
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.2.4
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.2.4
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.12.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.12.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: vcr
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.0.3
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.0.3
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: webmock
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.3.2
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.3.2
|
153
|
+
description: Internal parliamentary data API wrapper for ruby
|
154
|
+
email:
|
155
|
+
- mattrayner1@gmail.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".bash_profile"
|
161
|
+
- ".gitignore"
|
162
|
+
- ".hound.yml"
|
163
|
+
- ".rspec"
|
164
|
+
- ".rubocop.yml"
|
165
|
+
- ".ruby-version"
|
166
|
+
- ".travis.yml"
|
167
|
+
- CODE_OF_CONDUCT.md
|
168
|
+
- Gemfile
|
169
|
+
- LICENSE
|
170
|
+
- README.md
|
171
|
+
- Rakefile
|
172
|
+
- bin/console
|
173
|
+
- bin/setup
|
174
|
+
- lib/parliament.rb
|
175
|
+
- lib/parliament/request.rb
|
176
|
+
- lib/parliament/response.rb
|
177
|
+
- lib/parliament/version.rb
|
178
|
+
- parliament-ruby.gemspec
|
179
|
+
homepage: http://github.com/ukparliament/parliament_ruby
|
180
|
+
licenses:
|
181
|
+
- Open Parliament License
|
182
|
+
metadata: {}
|
183
|
+
post_install_message:
|
184
|
+
rdoc_options: []
|
185
|
+
require_paths:
|
186
|
+
- lib
|
187
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
192
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
197
|
+
requirements: []
|
198
|
+
rubyforge_project:
|
199
|
+
rubygems_version: 2.6.6
|
200
|
+
signing_key:
|
201
|
+
specification_version: 4
|
202
|
+
summary: Internal parliamentary data API wrapper for ruby
|
203
|
+
test_files: []
|