fitting 4.0.2 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +3 -4
- data/fitting.gemspec +1 -1
- data/lib/fitting/doc/json_schema.rb +1 -1
- data/lib/fitting/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92eb81d86fad0e91e7a8b05ba39a157158400f7002594cfc6232044249d70a16
|
4
|
+
data.tar.gz: 441412e6014c7a303771443862a1ac3e23858e994957bef162bfc4c23e202bcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dd67c0d5f0a783f70caada577f1501d70f070503e70c0af2bf7c9750bbfc8749fc98adf426931572bff447a8b733069723bffd39f127e34267dc997a734f0d8
|
7
|
+
data.tar.gz: e54ba08c80cbe3194ade774e9a142951fe759b757f9de61938605a6d77ba71298736457200d39c52634bd76a9fa61edd579403be1df092801ee806c73a7e123c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,10 +4,9 @@
|
|
4
4
|
alt="Fitting avatar: Documents with hangers"
|
5
5
|
src="./images/logo.png">
|
6
6
|
|
7
|
-
|
7
|
+
Library add improve test log, validate its according to your API documentation, show the documentation coverage with log.
|
8
8
|
|
9
|
-
Test
|
10
|
-
Swagger and OpenAPI.
|
9
|
+
Test log setting supports RSpec test and WebMock stubbing for Ruby On Rails application, API documentation supports API Blueprint and OpenAPI.
|
11
10
|
|
12
11
|
This reduces the costs of support, testers and analysts.
|
13
12
|
|
@@ -124,7 +123,7 @@ FITTING outgoing request {"method":"POST","path":"/v1/organizations/org_id/meeti
|
|
124
123
|
```
|
125
124
|
|
126
125
|
### Validation
|
127
|
-
Secondly, validate the
|
126
|
+
Secondly, validate the log to the documentation.
|
128
127
|
|
129
128
|
Add this to your `.fitting.yml`:
|
130
129
|
|
data/fitting.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = 'Coverage API Blueprint, Swagger and OpenAPI with RSpec'
|
12
12
|
spec.description = 'Coverage API Blueprint, Swagger and OpenAPI with RSpec for easily make high-quality API and documenatiton'
|
13
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.homepage = 'https://github.com/matchtechnologies/fitting'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -51,7 +51,7 @@ module Fitting
|
|
51
51
|
else
|
52
52
|
raise Fitting::Doc::JsonSchema::NotFound.new "json-schema: #{::JSON.pretty_generate(@step_key)}\n\n"\
|
53
53
|
"body: #{::JSON.pretty_generate(log.body)}\n\n"\
|
54
|
-
"error #{
|
54
|
+
"error #{JSON::Validator.fully_validate(@step_key, log.body).first}"
|
55
55
|
end
|
56
56
|
rescue JSON::Schema::SchemaError => e
|
57
57
|
raise Fitting::Doc::JsonSchema::NotFound.new "json-schema: #{::JSON.pretty_generate(@step_key)}\n\n"\
|
data/lib/fitting/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fitting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- d.efimov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|
@@ -244,7 +244,7 @@ files:
|
|
244
244
|
- lib/templates/htmlcss/darkmode.min.js
|
245
245
|
- lib/templates/htmlcss/fitting.html
|
246
246
|
- lib/templates/htmlcss/jquery-3.6.0.min.js
|
247
|
-
homepage: https://github.com/
|
247
|
+
homepage: https://github.com/matchtechnologies/fitting
|
248
248
|
licenses:
|
249
249
|
- MIT
|
250
250
|
metadata: {}
|