esplanade 1.8.2 → 1.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b02826c79f508f148767a4ac0179951a180e6f052096386a13c8e14016bd0100
4
- data.tar.gz: c0defe81a835016d2cf048c78a6da02be0ef96f530a3884d8728aac23e97fd66
3
+ metadata.gz: 9ab3184baaf02cc9322d85d7c70cdda617d0050d44737328bd645154cfc6e80d
4
+ data.tar.gz: c823268e5f9a2812753741f4fa26d2283e0d5d854bb599db7698676e90cf1b72
5
5
  SHA512:
6
- metadata.gz: a595b208dae18ed5bf8dc466a0ba6d75506d5513df77d1d689473d81fc94f3f66cb7f5eaa75b8151e12323e62fe6f010d765ee2587488d3a396fb020e1e40a3c
7
- data.tar.gz: 987386b628058494ed6340e2e7594578af5b23ed5849c74e9e6c207a87048bff47c45b4995ea36a6df90cedf3b315c1965153b0b7e93f424fde715d1faa2b1ef
6
+ metadata.gz: 7815ecf722557b4b09ca29cc7ce3a38ff07293810df71f90c21756b2d35d42db52004d505dd1b3ae58eec6b1697d118561bdb98587d6a01c25eda65fa1db21d4
7
+ data.tar.gz: 8ad7f9830f28ffcd34a2c3d67a8b29dae3e04964030eee41bda6cb6e888854d3cf4a98e7aa5e8a7d20a4e5a1d093748238318cf1f473cc1dde5bada9ca623ba3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change log
2
2
 
3
+ ### 1.8.4 - 2024-12-06
4
+
5
+ * patch
6
+ * fix email and author
7
+
8
+ ### 1.8.3 - 2024-12-06
9
+
10
+ * patch
11
+ * fix the non-json check of the request body if the schema is less than one
12
+ * delete homepage for fix
13
+
3
14
  ### 1.8.2 - 2024-04-03
4
15
 
5
16
  * patch
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Esplanade
2
2
 
3
3
  This gem helps you to validate and synchronize your API in strict accordance to the documentation in
4
- [API Blueprint](https://apiblueprint.org/) format.
4
+ [API Blueprint](https://apiblueprint.org/) and [OpenAPI](https://www.openapis.org/) formats.
5
5
  To do this it automatically searches received requests and responses in the documentation and run
6
6
  JSON-schemas validators.
7
7
 
@@ -217,10 +217,10 @@ Error message format:
217
217
 
218
218
  ## Middleware args
219
219
 
220
- Support any [tomograph constructor-params](https://github.com/funbox/tomograph/tree/master#constructor-params)
220
+ Support any [tomograph constructor-params](https://github.com/tuwilof/tomograph/tree/master#constructor-params)
221
221
 
222
222
  ## License
223
223
 
224
224
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
225
225
 
226
- [![Sponsored by FunBox](https://funbox.ru/badges/sponsored_by_funbox_centered.svg)](https://funbox.ru)
226
+ [Sponsored by FunBox](https://funbox.ru)
data/esplanade.gemspec CHANGED
@@ -5,11 +5,10 @@ require 'esplanade/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'esplanade'
7
7
  spec.version = Esplanade::VERSION
8
- spec.authors = ['d.efimov']
9
- spec.email = ['d.efimov@fun-box.ru']
8
+ spec.authors = ['tuwilof']
9
+ spec.email = ['tuwilof@gmail.com']
10
10
 
11
11
  spec.summary = 'Validate requests and responses against API Blueprint specifications'
12
- spec.homepage = 'https://github.com/tuwilof/esplanade'
13
12
  spec.license = 'MIT'
14
13
 
15
14
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -12,7 +12,7 @@ module Esplanade
12
12
  def valid!
13
13
  raise ContentTypeIsNotJson.new(**mini_message) unless @doc.content_type == 'application/json'
14
14
 
15
- @error ||= if @doc.json_schemas.size == 1
15
+ @error ||= if @doc.json_schemas.size <= 1
16
16
  one_json_schema
17
17
  else
18
18
  more_than_one_json_schema
@@ -1,3 +1,3 @@
1
1
  module Esplanade
2
- VERSION = '1.8.2'.freeze
2
+ VERSION = '1.8.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esplanade
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
- - d.efimov
7
+ - tuwilof
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-03 00:00:00.000000000 Z
11
+ date: 2024-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -134,7 +134,7 @@ dependencies:
134
134
  version: '0.21'
135
135
  description:
136
136
  email:
137
- - d.efimov@fun-box.ru
137
+ - tuwilof@gmail.com
138
138
  executables: []
139
139
  extensions: []
140
140
  extra_rdoc_files: []
@@ -173,7 +173,7 @@ files:
173
173
  - lib/esplanade/response/raw/body.rb
174
174
  - lib/esplanade/response/validation.rb
175
175
  - lib/esplanade/version.rb
176
- homepage: https://github.com/tuwilof/esplanade
176
+ homepage:
177
177
  licenses:
178
178
  - MIT
179
179
  metadata: {}