parliament-opensearch 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d49d1bbb5b87d8f73c34291fdfd5e3c90911a04e
4
+ data.tar.gz: 447fd872f92e50945605ee74a0cb258086a75b23
5
+ SHA512:
6
+ metadata.gz: ebd0b3516e486030af48bf02f8fec009825ee295bb6e39768b079f2d64652f4dd4f8e2c5106e34b1fe4d479a32499e5ebdc231deb2e5844172085d9090baa7d6
7
+ data.tar.gz: 1e9b8ba24c639d2d682ff66bdbffce1698adbdd2c81920b1613ef7b516dc77d67504720ff62e7c4e21f34f0b614c3dd1bd1c46a106e05b3155c36405dafe269e
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gem
11
+
12
+ .idea
13
+
14
+ # rspec failure tracking
15
+ .rspec_status
data/.hound.yml ADDED
@@ -0,0 +1,4 @@
1
+ ruby:
2
+ config_file: .rubocop.yml
3
+
4
+ fail_on_violations: true
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,55 @@
1
+ Metrics/LineLength:
2
+ Description: 'Limit lines to 120 characters.'
3
+ Max: 120
4
+ IgnoredPatterns: ['\A#', '\A([ ]{2}|[ ]{4})#']
5
+
6
+ Style/SpaceBeforeFirstArg:
7
+ Enabled: false
8
+
9
+ Style/BracesAroundHashParameters:
10
+ Enabled: false
11
+
12
+ Style/IndentHash:
13
+ EnforcedStyle: consistent
14
+
15
+ Style/AlignHash:
16
+ Severity: fatal
17
+ Enabled: true
18
+ EnforcedHashRocketStyle: table
19
+ EnforcedColonStyle: table
20
+
21
+ Style/AlignParameters:
22
+ EnforcedStyle: with_fixed_indentation
23
+
24
+ Style/StringLiterals:
25
+ EnforcedStyle: single_quotes
26
+
27
+ Style/CollectionMethods:
28
+ PreferredMethods:
29
+ collect: 'map'
30
+ collect!: 'map!'
31
+ inject: 'reduce'
32
+ detect: 'find'
33
+ find_all: 'select'
34
+
35
+ Style/DotPosition:
36
+ EnforcedStyle: leading
37
+
38
+ Style/DoubleNegation:
39
+ Enabled: false
40
+
41
+ Style/SpaceAroundOperators:
42
+ # When true, allows most uses of extra spacing if the intent is to align
43
+ # with an operator on the previous or next line, not counting empty lines
44
+ # or comment lines.
45
+ AllowForAlignment: true
46
+
47
+ Style/FrozenStringLiteralComment:
48
+ Enabled: false
49
+
50
+ AllCops:
51
+ Exclude:
52
+ - '*.gemspec'
53
+ - 'vendor/**/*'
54
+ - 'spec/**/*'
55
+ - 'tmp/**/*'
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.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 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
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in parliament-open_search.gemspec
4
+ gemspec
5
+
6
+ # Include coveralls for CI coverage reports
7
+ gem 'coveralls', require: false
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,51 @@
1
+ # Parliament::Opensearch
2
+ [parliament-opensearch](http://github.com/ukparliament/opensearch) is a gem created by the [Parliamentary Digital Service](https://www.parliament.uk/mps-lords-and-offices/offices/bicameral/parliamentary-digital-service/) to allow connections to and the processing of data from OpenSearch APIs.
3
+
4
+ > **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.
5
+
6
+ ## Requirements
7
+ [parliament-opensearch](http://github.com/ukparliament/opensearch) requires the following:
8
+ * [Ruby](https://www.ruby-lang.org/en/)
9
+ * [Bundler](http://http://bundler.io/)
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ This gem is currently not available on RubyGems. To use it in an application, install it directly from GitHub via your Gemfile
16
+ ```bash
17
+ gem 'parliament-opensearch', git: 'https://github.com/ukparliament/parliament-open-search.git', branch: 'master'
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ This gem's main function is fetching data from an OpenSearch API and parsing it.
23
+
24
+ > **Note:** Comprehensive class documentation can be found on [rubydocs](http://www.rubydoc.info/github/ukparliament/parliament-opensearch/master/file/README.md).
25
+
26
+
27
+ ## Getting Started with Development
28
+ To clone the repository and set up the dependencies, run the following:
29
+ ```bash
30
+ git clone https://github.com/ukparliament/parliament-opensearch.git
31
+ cd parliament-opensearch
32
+ bundle install
33
+ ```
34
+
35
+ ### Running the tests
36
+ We use [RSpec](http://rspec.info/) as our testing framework and tests can be run using:
37
+ ```bash
38
+ bundle exec rake
39
+ ```
40
+
41
+ ## Contributing
42
+ 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.
43
+
44
+ 1. Fork the repository
45
+ 1. Create your feature branch (`git checkout -b my-new-feature`)
46
+ 1. Commit your changes (`git commit -am 'Add some feature'`)
47
+ 1. Push to the branch (`git push origin my-new-feature`)
48
+ 1. Ensure your changes are tested using [Rspec](http://rspec.info/)
49
+ 1. Create a new Pull Request
50
+
51
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "parliament/open_search"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -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,23 @@
1
+ require 'feedjira'
2
+
3
+ module Parliament
4
+ module OpenSearch
5
+ module Builder
6
+ # OpenSearch response builder using Feedjira to parse the response.
7
+ #
8
+ # @since 0.1.0
9
+ class OpenSearchResponseBuilder < Parliament::Builder::BaseResponseBuilder
10
+ OPEN_SEARCH_ELEMENTS = %w(totalResults Query startIndex itemsPerPage).freeze
11
+
12
+ # Builds a Feedjira::Feed response. It adds the extra OpenSearch feed elements, then parses the HTTP Response.
13
+ def build
14
+ OPEN_SEARCH_ELEMENTS.each do |element|
15
+ Feedjira::Feed.add_common_feed_element(element)
16
+ end
17
+
18
+ Feedjira::Feed.parse(@response.body)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,11 @@
1
+ require 'parliament/open_search/builder/open_search_response_builder'
2
+
3
+ # Namespace for classes and modules that processes data from OpenSearch APIs.
4
+ # @since 0.1.0
5
+ module Parliament
6
+ module OpenSearch
7
+ module Builder
8
+ # Currently just a namespace definition
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,95 @@
1
+ module Parliament
2
+ module OpenSearch
3
+ module Request
4
+ # API request object, allowing the user to build a request to an OpenSearch API and build a response.
5
+ #
6
+ # @since 0.1.0
7
+ class OpenSearchRequest < Parliament::Request::BaseRequest
8
+ OPEN_SEARCH_PARAMETERS = {
9
+ count: 10,
10
+ start_index: 1,
11
+ start_page: 1,
12
+ language: '*',
13
+ output_encoding: 'UTF-8',
14
+ input_encoding: 'UTF-8'
15
+ }.freeze
16
+
17
+ # Creates a new instance of Parliament::OpenSearch::Request.
18
+ #
19
+ # An interesting note for #initialize is that setting base_url on the class, or using the environment variable
20
+ # OPENSEARCH_DESCRIPTION_URL means you don't need to pass in a base_url. You can pass one anyway to override the
21
+ # environment variable or class parameter. Similarly, headers can be set by either settings the headers on the class, or passing headers in.
22
+ #
23
+ # @see Parliament::BaseRequest#initialize
24
+ # @param [String] base_url the base url for the OpenSearch API description. (expected: http://example.com - without the trailing slash).
25
+ # @param [Hash] headers the headers being sent in the request.
26
+ # @param [Parliament::OpenSearch::Builder] builder the builder required to create the response.
27
+ def initialize(base_url: nil, headers: nil, builder: nil)
28
+ @base_url = Parliament::Request::OpenSearchRequest.get_description(base_url) || self.class.base_url || ENV['OPENSEARCH_DESCRIPTION_URL']
29
+ @open_search_parameters = self.class.open_search_parameters
30
+
31
+ super(base_url: @base_url, headers: headers, builder: builder)
32
+ end
33
+
34
+ # Sets up the query url using the base_url and parameters, then make an HTTP GET request and process results.
35
+ #
36
+ # @see Parliament::BaseRequest#get
37
+ # @params [Hash] search_params the search parameters to be passed to the OpenSearch API. This is the search term and/or any of the keys from OPEN_SEARCH_PARAMETERS, depending on the parameters allowed in the API.
38
+ # @params [Hash] params any extra parameters.
39
+ def get(search_params, params: nil)
40
+ setup_query_url(search_params)
41
+
42
+ super(params: params)
43
+ end
44
+
45
+ private
46
+
47
+ # @attr [String] base_url the base url for the OpenSearch API description. (expected: http://example.com - without the trailing slash).
48
+ # @attr [Hash] open_search_parameters the possible parameters to use in the query url.
49
+ class << self
50
+ attr_reader :base_url, :open_search_parameters
51
+
52
+ def base_url=(base_url)
53
+ @base_url = get_description(base_url)
54
+ end
55
+
56
+ def open_search_parameters
57
+ OPEN_SEARCH_PARAMETERS.dup
58
+ end
59
+
60
+ def get_description(url)
61
+ return if url.nil?
62
+
63
+ request = Parliament::Request::BaseRequest.new(base_url: url,
64
+ headers: {'Accept' => 'application/opensearchdescription+xml'})
65
+ xml_response = request.get
66
+
67
+ xml_root = REXML::Document.new(xml_response.body).root
68
+ xml_root.elements['Url'].attributes['template']
69
+ end
70
+ end
71
+
72
+ def query_url
73
+ @query_url
74
+ end
75
+
76
+ def setup_query_url(search_params)
77
+ search_terms = search_params[:query]
78
+ query_url = @base_url.dup
79
+ query_url.gsub!('{searchTerms}', search_terms)
80
+
81
+ @open_search_parameters.each do |key, value|
82
+ camel_case_key = ActiveSupport::Inflector.camelize(key.to_s, false)
83
+ if search_params.keys.include?(key)
84
+ query_url.gsub!("{#{camel_case_key}?}", search_params[key].to_s)
85
+ else
86
+ query_url.gsub!("{#{camel_case_key}?}", value.to_s)
87
+ end
88
+ end
89
+
90
+ @query_url = query_url
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,11 @@
1
+ require 'parliament/open_search/request/open_search_request'
2
+
3
+ # Namespace for classes and modules that handle connections to OpenSearch APIs.
4
+ # @since 0.1.0
5
+ module Parliament
6
+ module OpenSearch
7
+ module Request
8
+ # Currently just a namespace definition
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Parliament
2
+ module OpenSearch
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ require 'parliament'
2
+
3
+ require 'parliament/open_search/version'
4
+ require 'parliament/open_search/builder'
5
+ require 'parliament/open_search/request'
6
+
7
+ # Namespace for classes and modules that handle connections to, and processing of data from OpenSearch APIs.
8
+ # @since 0.1.0
9
+ module Parliament
10
+ module OpenSearch
11
+ # Currently just a namespace definition
12
+ end
13
+ end
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'parliament/open_search/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'parliament-opensearch'
8
+ spec.version = Parliament::OpenSearch::VERSION
9
+ spec.authors = ['Rebecca Appleyard']
10
+ spec.email = ['rklappleyard@gmail.com']
11
+
12
+ spec.summary = %q{Parliamentary OpenSearch response builder }
13
+ spec.description = %q{Parliamentary OpenSearch response builder }
14
+ spec.homepage = 'http://github.com/ukparliament/parliament_opensearch'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_dependency 'feedjira', '~> 2.1', '>= 2.1.2'
24
+ spec.add_dependency 'parliament-ruby', '~> 0.7.2.pre'
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.14'
27
+ spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'rspec', '~> 3.0'
29
+ spec.add_development_dependency 'rubocop', '~> 0.47'
30
+ spec.add_development_dependency 'simplecov', '~> 0.12'
31
+ spec.add_development_dependency 'vcr', '~> 3.0'
32
+ spec.add_development_dependency 'webmock', '~> 2.3'
33
+ end
metadata ADDED
@@ -0,0 +1,194 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parliament-opensearch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Rebecca Appleyard
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: feedjira
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.1'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.1.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.1'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.1.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: parliament-ruby
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.7.2.pre
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.7.2.pre
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.14'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.14'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '10.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '10.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rspec
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rubocop
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '0.47'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.47'
103
+ - !ruby/object:Gem::Dependency
104
+ name: simplecov
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '0.12'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '0.12'
117
+ - !ruby/object:Gem::Dependency
118
+ name: vcr
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '3.0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '3.0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: webmock
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '2.3'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '2.3'
145
+ description: 'Parliamentary OpenSearch response builder '
146
+ email:
147
+ - rklappleyard@gmail.com
148
+ executables: []
149
+ extensions: []
150
+ extra_rdoc_files: []
151
+ files:
152
+ - ".gitignore"
153
+ - ".hound.yml"
154
+ - ".rspec"
155
+ - ".rubocop.yml"
156
+ - ".travis.yml"
157
+ - CODE_OF_CONDUCT.md
158
+ - Gemfile
159
+ - LICENSE
160
+ - README.md
161
+ - Rakefile
162
+ - bin/console
163
+ - bin/setup
164
+ - lib/parliament/open_search.rb
165
+ - lib/parliament/open_search/builder.rb
166
+ - lib/parliament/open_search/builder/open_search_response_builder.rb
167
+ - lib/parliament/open_search/request.rb
168
+ - lib/parliament/open_search/request/open_search_request.rb
169
+ - lib/parliament/open_search/version.rb
170
+ - parliament-opensearch.gemspec
171
+ homepage: http://github.com/ukparliament/parliament_opensearch
172
+ licenses: []
173
+ metadata: {}
174
+ post_install_message:
175
+ rdoc_options: []
176
+ require_paths:
177
+ - lib
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ requirements: []
189
+ rubyforge_project:
190
+ rubygems_version: 2.6.6
191
+ signing_key:
192
+ specification_version: 4
193
+ summary: Parliamentary OpenSearch response builder
194
+ test_files: []