infreemation 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ac0ba437d15456f90a07b1d593e7cd27b59b189a5fb341fc36a8f429c61478d6
4
+ data.tar.gz: 0beb6bb42829673ed8b7e174b20798d57d6552f3a79ccd0c38f5e9ae957d9332
5
+ SHA512:
6
+ metadata.gz: 19cd8059ea1197f3772c200cb92bf6eff2f2109c3e1a9fd70af63195ab385effed9e83b6179fd1210735fe3e4f1d56f1c01698bd6c6b64f313a23b190de51346
7
+ data.tar.gz: 88dc1e807c9fd4604188510cc12ad53f3f8b181b6e47e627fc7605d33f72bc2a14406b34eecf04865dc51d173cd9003f01405a173e655203ee3daf2a0b110c4a
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
@@ -0,0 +1,17 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+
4
+ Metrics/BlockLength:
5
+ Exclude:
6
+ - '*.gemspec'
7
+ - 'spec/**/*_spec.rb'
8
+
9
+ Layout/DotPosition:
10
+ EnforcedStyle: trailing
11
+
12
+ Style/ClassAndModuleChildren:
13
+ EnforcedStyle: nested
14
+
15
+ Style/MixinUsage:
16
+ Exclude:
17
+ - 'spec/spec_helper.rb'
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.1
5
+ before_install: gem install bundler -v 1.16.1
@@ -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 hello@mysociety.org. 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
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in infreemation.gemspec
8
+ gemspec
@@ -0,0 +1,81 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ infreemation (0.1.0)
5
+ json (~> 2.1.0)
6
+ rest-client (~> 2.0.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.5.2)
12
+ public_suffix (>= 2.0.2, < 4.0)
13
+ ast (2.4.0)
14
+ crack (0.4.3)
15
+ safe_yaml (~> 1.0.0)
16
+ diff-lcs (1.3)
17
+ domain_name (0.5.20180417)
18
+ unf (>= 0.0.5, < 1.0.0)
19
+ hashdiff (0.3.7)
20
+ http-cookie (1.0.3)
21
+ domain_name (~> 0.5)
22
+ json (2.1.0)
23
+ mime-types (3.1)
24
+ mime-types-data (~> 3.2015)
25
+ mime-types-data (3.2016.0521)
26
+ netrc (0.11.0)
27
+ parallel (1.12.1)
28
+ parser (2.5.0.5)
29
+ ast (~> 2.4.0)
30
+ powerpack (0.1.1)
31
+ public_suffix (3.0.2)
32
+ rainbow (3.0.0)
33
+ rake (10.5.0)
34
+ rest-client (2.0.2)
35
+ http-cookie (>= 1.0.2, < 2.0)
36
+ mime-types (>= 1.16, < 4.0)
37
+ netrc (~> 0.8)
38
+ rspec (3.7.0)
39
+ rspec-core (~> 3.7.0)
40
+ rspec-expectations (~> 3.7.0)
41
+ rspec-mocks (~> 3.7.0)
42
+ rspec-core (3.7.1)
43
+ rspec-support (~> 3.7.0)
44
+ rspec-expectations (3.7.0)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.7.0)
47
+ rspec-mocks (3.7.0)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.7.0)
50
+ rspec-support (3.7.1)
51
+ rubocop (0.54.0)
52
+ parallel (~> 1.10)
53
+ parser (>= 2.5)
54
+ powerpack (~> 0.1)
55
+ rainbow (>= 2.2.2, < 4.0)
56
+ ruby-progressbar (~> 1.7)
57
+ unicode-display_width (~> 1.0, >= 1.0.1)
58
+ ruby-progressbar (1.9.0)
59
+ safe_yaml (1.0.4)
60
+ unf (0.1.4)
61
+ unf_ext
62
+ unf_ext (0.0.7.5)
63
+ unicode-display_width (1.3.0)
64
+ webmock (3.3.0)
65
+ addressable (>= 2.3.6)
66
+ crack (>= 0.3.2)
67
+ hashdiff
68
+
69
+ PLATFORMS
70
+ ruby
71
+
72
+ DEPENDENCIES
73
+ bundler (~> 1.16)
74
+ infreemation!
75
+ rake (~> 10.0)
76
+ rspec (~> 3.0)
77
+ rubocop (~> 0.54.0)
78
+ webmock (~> 3.3.0)
79
+
80
+ BUNDLED WITH
81
+ 1.16.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 UK Citizens Online Democracy (UKCOD)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,75 @@
1
+ # Infreemation
2
+
3
+ A Ruby client library for the [Infreemation](http://www.digital-interactive.com/products/infreemation) API from [Digital Interactive](http://www.digital-interactive.com). Infreemation is a eCase management software system built specifically to manage FOI, EIR and SAR requests. Currently this library only supports FOI requests.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'infreemation'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install infreemation
20
+
21
+ ## Configuration
22
+
23
+ If you're using Rails, add the following to `config/initializers/infreemation.rb`:
24
+
25
+ ``` ruby
26
+ Infreemation.logger = Rails.logger
27
+ Infreemation.url = ENV['INFREEMATION_URL']
28
+ Infreemation.api_key = ENV['INFREEMATION_API_KEY']
29
+ Infreemation.username = ENV['INFREEMATION_USERNAME']
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ### Creating requests
35
+
36
+ ```ruby
37
+ Infreemation::Request.create!(
38
+ rt: 'create',
39
+ type: 'FOI',
40
+ requester: 'Fred Smith',
41
+ contact: 'fred@example.com',
42
+ contacttype: 'email',
43
+ subject: 'Missed Bins',
44
+ category: 'Waste',
45
+ body: 'Dear FOI team/nPlease treat this as a request under the FOI act etc'
46
+ )
47
+ ```
48
+
49
+ ### Retrieving published requests
50
+
51
+ ```ruby
52
+ Infreemation::Request.where(
53
+ rt: 'published',
54
+ startdate: '2018-01-01',
55
+ enddate: '2019-01-01'
56
+ )
57
+ ```
58
+
59
+ ## Development
60
+
61
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
62
+
63
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
64
+
65
+ ## Contributing
66
+
67
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mysociety/infreemation-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
68
+
69
+ ## License
70
+
71
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
72
+
73
+ ## Code of Conduct
74
+
75
+ Everyone interacting in the Infreemation project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mysociety/infreemation-ruby/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+ RuboCop::RakeTask.new
9
+
10
+ task default: %i[spec rubocop]
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'infreemation'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,45 @@
1
+
2
+ # frozen_string_literal: true
3
+
4
+ lib = File.expand_path('lib', __dir__)
5
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
+ require 'infreemation/version'
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = 'infreemation'
10
+ spec.version = Infreemation::VERSION
11
+ spec.authors = ['mySociety']
12
+ spec.email = ['hello@mysociety.org']
13
+
14
+ spec.summary = 'Ruby library for the Infreemation API.'
15
+ spec.description = 'Infreemation is a eCase management software system ' \
16
+ 'built specifically to manage FOI, EIR and SAR requests.'
17
+ spec.homepage = 'https://github.com/mysociety/infreemation'
18
+ spec.license = 'MIT'
19
+
20
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the
21
+ # "allowed_push_host" to allow pushing to a single host or delete this section
22
+ # to allow pushing to any host.
23
+ if spec.respond_to?(:metadata)
24
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
25
+ else
26
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
27
+ 'public gem pushes.'
28
+ end
29
+
30
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
31
+ f.match(%r{^(test|spec|features)/})
32
+ end
33
+ spec.bindir = 'exe'
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ['lib']
36
+
37
+ spec.add_dependency 'json', '~> 2.1.0'
38
+ spec.add_dependency 'rest-client', '~> 2.0.2'
39
+
40
+ spec.add_development_dependency 'bundler', '~> 1.16'
41
+ spec.add_development_dependency 'rake', '~> 10.0'
42
+ spec.add_development_dependency 'rspec', '~> 3.0'
43
+ spec.add_development_dependency 'rubocop', '~> 0.54.0'
44
+ spec.add_development_dependency 'webmock', '~> 3.3.0'
45
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'infreemation/version'
4
+
5
+ ##
6
+ # This module is the main entry point of the Gem
7
+ #
8
+ module Infreemation
9
+ require 'infreemation/api'
10
+ require 'infreemation/errors'
11
+ require 'infreemation/request'
12
+
13
+ ConfigurationError = Class.new(StandardError)
14
+
15
+ class << self
16
+ attr_accessor :logger
17
+ attr_writer :url, :api_key, :username
18
+
19
+ def url
20
+ @url || raise(
21
+ ConfigurationError, 'Infreemation.url not configured'
22
+ )
23
+ end
24
+
25
+ def api_key
26
+ @api_key || raise(
27
+ ConfigurationError, 'Infreemation.api_key not configured'
28
+ )
29
+ end
30
+
31
+ def username
32
+ @username || raise(
33
+ ConfigurationError, 'Infreemation.username not configured'
34
+ )
35
+ end
36
+
37
+ def log(level, message)
38
+ logger&.send(level, name) { message }
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'json'
4
+ require 'rest_client'
5
+
6
+ module Infreemation
7
+ ##
8
+ # This class is responsible for communicating with the remote API server
9
+ #
10
+ class API
11
+ class << self
12
+ # The #get method is doing a POST request. This is because the
13
+ # Infreemation API is expecting raw POST data and the Ruby net/http core
14
+ # library understandably does not support this.
15
+ def get(path, params)
16
+ Infreemation.log :debug, "GET #{path} with #{params.inspect}"
17
+ resource[path].post(with_auth(params), &parser)
18
+ rescue RestClient::Exception => e
19
+ raise RequestError, e.message
20
+ end
21
+
22
+ def post(path, body)
23
+ Infreemation.log :debug, "POST #{path} with #{body.inspect}"
24
+ resource[path].post(with_auth(body), &parser)
25
+ rescue RestClient::Exception => e
26
+ raise RequestError, e.message
27
+ end
28
+
29
+ private
30
+
31
+ def with_auth(options)
32
+ options.merge(
33
+ key: Infreemation.api_key,
34
+ username: Infreemation.username
35
+ ).to_json
36
+ end
37
+
38
+ def resource
39
+ RestClient::Resource.new(Infreemation.url)
40
+ end
41
+
42
+ def parser
43
+ lambda do |response, _request, _result|
44
+ Infreemation.log :debug, response.body
45
+ begin
46
+ JSON.parse(response.body, symbolize_names: true).tap do |data|
47
+ raise Errors[data[:ref]], data[:error] if data[:status] == 'ERROR'
48
+ end
49
+ rescue JSON::ParserError
50
+ raise ResponseError, 'JSON invalid'
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Infreemation
4
+ ##
5
+ # A base error
6
+ #
7
+ Exception = Class.new(StandardError)
8
+
9
+ ##
10
+ # A generic error
11
+ #
12
+ GenericError = Class.new(Exception)
13
+
14
+ ##
15
+ # An API authenication error
16
+ #
17
+ AuthenticationError = Class.new(Exception)
18
+
19
+ ##
20
+ # A request error
21
+ #
22
+ RequestError = Class.new(Exception)
23
+
24
+ ##
25
+ # A response error
26
+ #
27
+ ResponseError = Class.new(Exception)
28
+
29
+ ##
30
+ # A missing parameter error
31
+ #
32
+ MissingParameterError = Class.new(Exception)
33
+
34
+ ERROR_MAPPINGS = {
35
+ 2 => AuthenticationError,
36
+ 3 => RequestError,
37
+ 5 => MissingParameterError, # requester
38
+ 6 => MissingParameterError, # contact
39
+ 7 => MissingParameterError, # contacttype
40
+ 8 => MissingParameterError # body
41
+ }.freeze
42
+
43
+ ##
44
+ # This module is resposible for mapping error codes into the correct type to
45
+ # exception class
46
+ #
47
+ module Errors
48
+ def self.[](code)
49
+ ERROR_MAPPINGS[code.to_i] || GenericError
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Infreemation
4
+ ##
5
+ # This class represents a FOI or EIR request
6
+ #
7
+ class Request
8
+ class << self
9
+ def path
10
+ '/foi/'
11
+ end
12
+
13
+ def create!(attributes = {})
14
+ new(attributes, &:save!)
15
+ end
16
+
17
+ def where(options = {})
18
+ type = options.fetch(:rt).downcase.to_sym
19
+ requests_data = API.get(path, options).dig(type, :request) || []
20
+ requests_data.map { |attributes| new(attributes) }
21
+ end
22
+ end
23
+
24
+ attr_reader :attributes
25
+
26
+ def initialize(attributes = {})
27
+ @attributes = attributes
28
+ yield self if block_given?
29
+ end
30
+
31
+ def save!
32
+ @attributes.merge!(API.post(self.class.path, attributes))
33
+ true
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Infreemation
4
+ VERSION = '0.1.0'
5
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: infreemation
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - mySociety
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rest-client
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.54.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.54.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: webmock
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 3.3.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 3.3.0
111
+ description: Infreemation is a eCase management software system built specifically
112
+ to manage FOI, EIR and SAR requests.
113
+ email:
114
+ - hello@mysociety.org
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".rubocop.yml"
121
+ - ".travis.yml"
122
+ - CODE_OF_CONDUCT.md
123
+ - Gemfile
124
+ - Gemfile.lock
125
+ - LICENSE.txt
126
+ - README.md
127
+ - Rakefile
128
+ - bin/console
129
+ - bin/setup
130
+ - infreemation.gemspec
131
+ - lib/infreemation.rb
132
+ - lib/infreemation/api.rb
133
+ - lib/infreemation/errors.rb
134
+ - lib/infreemation/request.rb
135
+ - lib/infreemation/version.rb
136
+ homepage: https://github.com/mysociety/infreemation
137
+ licenses:
138
+ - MIT
139
+ metadata:
140
+ allowed_push_host: https://rubygems.org
141
+ post_install_message:
142
+ rdoc_options: []
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 2.7.3
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: Ruby library for the Infreemation API.
161
+ test_files: []