esplanade 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: b0682d7613229adb081ec4a064b247e46c9be269
4
+ data.tar.gz: c073b32fbb358e9628942e2bcf3948948f0ae554
5
+ SHA512:
6
+ metadata.gz: 876e8d7fbe6c903bcde139ca4c194994d8975e84fbd0ec05d54a9d03fdde1c95d8e2f8ee762f634424e5ac1312cedb45f23c269ac85de717ed2793f65120f942
7
+ data.tar.gz: 6f5910dd3c251ef09b428eb3fe433c1c0cf4f92762ab4bc5e78cf5f21c5550141589c2a3beef37eba62830e5f00a469ee10747edc360ce77c3e1a050e9db2121
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ .idea/
2
+ .byebug_history
3
+ *.gem
4
+ *.log
5
+ spec/integration/apps/rails_app/log
6
+ Gemfile.lock
7
+ coverage
data/.rubocop.yml ADDED
@@ -0,0 +1,11 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+
4
+ Metrics/LineLength:
5
+ Max: 120
6
+
7
+ Style/Documentation:
8
+ Enabled: false
9
+
10
+ Style/FrozenStringLiteralComment:
11
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.1
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at d.efimov@fun-box.ru. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 d.efimov
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.
data/README.md ADDED
@@ -0,0 +1,83 @@
1
+ # Esplanade
2
+
3
+ This gem helps you validate the request and response documentation API Blueprint.
4
+
5
+
6
+ If the request to the server will be invalid tomogram, it will return a response with a 400 status and the body of the error.
7
+ If the server's response will be invalid tomogram, it will return a response with 500 status and the body of the error.
8
+
9
+ An example of an error body
10
+
11
+ ```ruby
12
+ {
13
+ "error": [
14
+ "The property '#/' did not contain a required property of 'login' in schema deee53ed-f917-5f2f-bccf-0b8af3b749c7",
15
+ "The property '#/' did not contain a required property of 'password' in schema deee53ed-f917-5f2f-bccf-0b8af3b749c7"
16
+ ]
17
+ }
18
+ ```
19
+
20
+ ## Installation
21
+
22
+ Add this line to your application's Gemfile:
23
+
24
+ ```ruby
25
+ gem 'esplanade'
26
+ ```
27
+
28
+ And then execute:
29
+
30
+ $ bundle
31
+
32
+ Or install it yourself as:
33
+
34
+ $ gem install esplanade
35
+
36
+ ## Usage
37
+
38
+ ### Rails
39
+
40
+ config/application.rb
41
+
42
+ ```ruby
43
+ require 'esplanade'
44
+ ```
45
+
46
+ ### Rake
47
+
48
+ config/application.rb
49
+
50
+ ```ruby
51
+ require 'esplanade'
52
+ config.middleware.use Esplanade::Middleware
53
+ ```
54
+
55
+ ## Config
56
+
57
+ ### tomogram
58
+
59
+ This gem takes a simplified format json convert from API Blueprint which we have called API Tomogram.
60
+
61
+ If in your project you are using the gem tomograph, then define the configuration you are not required.
62
+
63
+ ```ruby
64
+ Esplanade.configure do |config|
65
+ config.tomogram = 'tomogram.json'
66
+ end
67
+ ```
68
+
69
+ ### skip_not_documented
70
+
71
+ Default true.
72
+
73
+ ### validation_requests
74
+
75
+ Default true.
76
+
77
+ ### validation_response
78
+
79
+ Default true.
80
+
81
+ ## License
82
+
83
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
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 'esplanade'
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
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
data/esplanade.gemspec ADDED
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'esplanade/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'esplanade'
8
+ spec.version = Esplanade::VERSION
9
+ spec.authors = ['d.efimov']
10
+ spec.email = ['d.efimov@fun-box.ru']
11
+
12
+ spec.summary = 'Validate requests and responses against API Blueprint specifications'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
+ spec.bindir = 'exe'
17
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_runtime_dependency 'multi_json', '~> 1.11', '>= 1.11.1'
21
+ spec.add_runtime_dependency 'json-schema', '~> 2.6', '>= 2.6.2'
22
+ spec.add_runtime_dependency 'tomogram_routing', '~> 0.1', '>= 0.1.0'
23
+ spec.add_development_dependency 'bundler', '~> 1.12'
24
+ spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'byebug', '~> 8.2', '>= 8.2.1'
26
+ spec.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
27
+ spec.add_development_dependency 'rubocop', '~> 0.42', '>= 0.42.0'
28
+ spec.add_development_dependency 'simplecov', '~> 0.11', '>= 0.11.2'
29
+ end
data/lib/esplanade.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'esplanade/middleware'
2
+ require 'esplanade/configuration'
3
+ require 'esplanade/request'
4
+ require 'esplanade/request/body'
5
+ require 'esplanade/request/error'
6
+ require 'esplanade/response'
7
+ require 'esplanade/response/body'
8
+ require 'esplanade/response/error'
9
+ require 'esplanade/railtie' if defined?(Rails)
10
+ require 'tomogram_routing'
11
+
12
+ module Esplanade
13
+ class << self
14
+ def configure
15
+ yield configuration
16
+ end
17
+
18
+ def configuration
19
+ @configuration ||= Configuration.new
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,14 @@
1
+ module Esplanade
2
+ class Configuration
3
+ attr_accessor :tomogram,
4
+ :skip_not_documented,
5
+ :validation_requests,
6
+ :validation_response
7
+
8
+ def initialize
9
+ @skip_not_documented = true
10
+ @validation_requests = true
11
+ @validation_response = true
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,34 @@
1
+ require 'yaml'
2
+
3
+ module Esplanade
4
+ class Middleware
5
+ class Exit < RuntimeError; end
6
+ class ResponseNotDoc < RuntimeError; end
7
+
8
+ def initialize(app)
9
+ @app = app
10
+ @tomogram = TomogramRouting::Tomogram.craft(Esplanade.configuration.tomogram)
11
+ end
12
+
13
+ def call(env)
14
+ valid!(env)
15
+ rescue Request::NotDocumented
16
+ Request::Error.not_documented
17
+ rescue Response::NotDocumented
18
+ Response::Error.not_documented
19
+ rescue Request::Unsuitable => e
20
+ Request::Error.unsuitable(e.message)
21
+ rescue Response::Unsuitable => e
22
+ Response::Error.unsuitable(e.message)
23
+ end
24
+
25
+ def valid!(env)
26
+ request = Request.new(env, @tomogram)
27
+ request.valid! if request.validate?
28
+ status, headers, body = @app.call(env)
29
+ response = Response.new(status, body, request.schema)
30
+ response.valid! if response.validate?
31
+ [status, headers, body]
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,7 @@
1
+ module Esplanade
2
+ class Railtie < Rails::Railtie
3
+ initializer 'esplanade.insert_middleware' do |app|
4
+ app.config.middleware.use Esplanade::Middleware
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,31 @@
1
+ require 'json-schema'
2
+
3
+ module Esplanade
4
+ class Request
5
+ attr_accessor :path, :method, :body, :schema
6
+
7
+ class Unsuitable < RuntimeError; end
8
+ class NotDocumented < RuntimeError; end
9
+
10
+ def initialize(env, tomogram)
11
+ @method = env['REQUEST_METHOD']
12
+ @path = env['PATH_INFO']
13
+ @body = Body.craft(env)
14
+ @schema = tomogram.find_request(method: @method, path: @path)
15
+ raise NotDocumented unless schema || Esplanade.configuration.skip_not_documented
16
+ self
17
+ end
18
+
19
+ def error
20
+ JSON::Validator.fully_validate(@schema['request'], @body)
21
+ end
22
+
23
+ def valid!
24
+ raise Unsuitable, error unless error.empty?
25
+ end
26
+
27
+ def validate?
28
+ @schema && Esplanade.configuration.validation_requests
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,14 @@
1
+ module Esplanade
2
+ class Request
3
+ class Body < Hash
4
+ private_class_method :new
5
+
6
+ def self.craft(env)
7
+ params_string = env['rack.input'].read
8
+ params_hash = {}
9
+ params_hash = MultiJson.load(params_string) unless params_string == ''
10
+ new.merge(params_hash)
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,19 @@
1
+ module Esplanade
2
+ class Request
3
+ class Error
4
+ def self.unsuitable(message)
5
+ status = '400'
6
+ headers = { 'Content-Type' => 'application/json; charset=utf-8' }
7
+ body = [MultiJson.dump(error: [message[2..-3]])]
8
+ [status, headers, body]
9
+ end
10
+
11
+ def self.not_documented
12
+ status = '400'
13
+ headers = { 'Content-Type' => 'application/json; charset=utf-8' }
14
+ body = [MultiJson.dump(error: ['Not documented'])]
15
+ [status, headers, body]
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,38 @@
1
+ require 'json-schema'
2
+
3
+ module Esplanade
4
+ class Response
5
+ attr_accessor :status, :body, :schemas
6
+
7
+ class Unsuitable < RuntimeError; end
8
+ class NotDocumented < RuntimeError; end
9
+
10
+ def initialize(status, body, expect_request)
11
+ return unless Esplanade.configuration.validation_response && expect_request
12
+ @status = status
13
+ @body = Body.craft(body)
14
+ @schemas = expect_request.find_responses(status: @status)
15
+ raise NotDocumented unless (@schemas&.first) || Esplanade.configuration.skip_not_documented
16
+ self
17
+ end
18
+
19
+ def error
20
+ return JSON::Validator.fully_validate(@schemas.first['body'], @body) if @schemas.size == 1
21
+
22
+ @schemas.each do |action|
23
+ res = JSON::Validator.fully_validate(action['body'], @body)
24
+ return res if res == []
25
+ end
26
+
27
+ ['invalid']
28
+ end
29
+
30
+ def valid!
31
+ raise Unsuitable, error unless error.empty?
32
+ end
33
+
34
+ def validate?
35
+ @schemas&.first && Esplanade.configuration.validation_response
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,32 @@
1
+ module Esplanade
2
+ class Response
3
+ class Body < Hash
4
+ class << self
5
+ private_class_method :new
6
+
7
+ def craft(body)
8
+ # According to specification Rack http://rack.github.io
9
+ # body can only answer each
10
+ lines = []
11
+ body.each { |line| lines.push(line) }
12
+ lines_to_json(lines)
13
+ end
14
+
15
+ private
16
+
17
+ def lines_to_json(lines)
18
+ if lines.join.empty?
19
+ {}
20
+ else
21
+ res = lines.join('\n')
22
+ begin
23
+ MultiJson.load(res)
24
+ rescue MultiJson::ParseError
25
+ res
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,19 @@
1
+ module Esplanade
2
+ class Response
3
+ class Error
4
+ def self.unsuitable(message)
5
+ status = '500'
6
+ headers = { 'Content-Type' => 'application/json; charset=utf-8' }
7
+ body = [MultiJson.dump(error: [message[2..-3]])]
8
+ [status, headers, body]
9
+ end
10
+
11
+ def self.not_documented
12
+ status = '500'
13
+ headers = { 'Content-Type' => 'application/json; charset=utf-8' }
14
+ body = [MultiJson.dump(error: ['Not documented'])]
15
+ [status, headers, body]
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ module Esplanade
2
+ VERSION = '0.1.0'.freeze
3
+ end
metadata ADDED
@@ -0,0 +1,234 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: esplanade
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - d.efimov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: multi_json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.11.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.11'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.11.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: json-schema
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.6'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.6.2
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '2.6'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.6.2
53
+ - !ruby/object:Gem::Dependency
54
+ name: tomogram_routing
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.1'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 0.1.0
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.1'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 0.1.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: bundler
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '1.12'
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '1.12'
87
+ - !ruby/object:Gem::Dependency
88
+ name: rake
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - "~>"
92
+ - !ruby/object:Gem::Version
93
+ version: '10.0'
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - "~>"
99
+ - !ruby/object:Gem::Version
100
+ version: '10.0'
101
+ - !ruby/object:Gem::Dependency
102
+ name: byebug
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '8.2'
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 8.2.1
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '8.2'
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: 8.2.1
121
+ - !ruby/object:Gem::Dependency
122
+ name: rspec
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: '3.4'
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: 3.4.0
131
+ type: :development
132
+ prerelease: false
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '3.4'
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: 3.4.0
141
+ - !ruby/object:Gem::Dependency
142
+ name: rubocop
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '0.42'
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 0.42.0
151
+ type: :development
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: '0.42'
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: 0.42.0
161
+ - !ruby/object:Gem::Dependency
162
+ name: simplecov
163
+ requirement: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '0.11'
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 0.11.2
171
+ type: :development
172
+ prerelease: false
173
+ version_requirements: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '0.11'
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 0.11.2
181
+ description:
182
+ email:
183
+ - d.efimov@fun-box.ru
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - ".gitignore"
189
+ - ".rubocop.yml"
190
+ - ".ruby-version"
191
+ - CODE_OF_CONDUCT.md
192
+ - Gemfile
193
+ - LICENSE.txt
194
+ - README.md
195
+ - Rakefile
196
+ - bin/console
197
+ - bin/setup
198
+ - esplanade.gemspec
199
+ - lib/esplanade.rb
200
+ - lib/esplanade/configuration.rb
201
+ - lib/esplanade/middleware.rb
202
+ - lib/esplanade/railtie.rb
203
+ - lib/esplanade/request.rb
204
+ - lib/esplanade/request/body.rb
205
+ - lib/esplanade/request/error.rb
206
+ - lib/esplanade/response.rb
207
+ - lib/esplanade/response/body.rb
208
+ - lib/esplanade/response/error.rb
209
+ - lib/esplanade/version.rb
210
+ homepage:
211
+ licenses:
212
+ - MIT
213
+ metadata: {}
214
+ post_install_message:
215
+ rdoc_options: []
216
+ require_paths:
217
+ - lib
218
+ required_ruby_version: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ required_rubygems_version: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ">="
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ requirements: []
229
+ rubyforge_project:
230
+ rubygems_version: 2.5.1
231
+ signing_key:
232
+ specification_version: 4
233
+ summary: Validate requests and responses against API Blueprint specifications
234
+ test_files: []