fitting 4.0.1 → 4.0.3
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/lib/fitting/doc/json_schema.rb +1 -1
- data/lib/fitting/version.rb +1 -1
- data/lib/fitting.rb +10 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eab6dd66aacca19bfae2a27052780730304752c7cb89bdb5e3063b85a3c3efe
|
4
|
+
data.tar.gz: 419d352cfdba3499d0e6425e5e6e76fdbfe5e1f2c289eac98d3833e84d77e57e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2270a49a1598c714b43717386a7ebc9ce26f69a35e6e868288089c6154f7d170c6c2c35a676fef91f2e6e38ee1e084b383d0a2f49136c9602f48dfa48aee56e
|
7
|
+
data.tar.gz: d93156db45a6f7c3be71543ee2315aae12e4a440266aeefea22aaf4ec9d15713fa94d4dbb9b2fbc731672d30afa4cbecd917483bc6b1e9f5ffd13fa98e7aa865
|
data/CHANGELOG.md
CHANGED
@@ -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
data/lib/fitting.rb
CHANGED
@@ -29,13 +29,19 @@ module Fitting
|
|
29
29
|
end
|
30
30
|
|
31
31
|
config.after(:each, type: :request) do |example|
|
32
|
-
|
33
|
-
|
32
|
+
begin
|
33
|
+
request = Fitting::Records::Tested::Request.new(response, example)
|
34
|
+
responses += "FITTING incoming request #{request.to_spherical.to_json}\n"
|
35
|
+
rescue NoMethodError
|
36
|
+
end
|
34
37
|
end
|
35
38
|
|
36
39
|
config.after(:each, type: :controller) do |example|
|
37
|
-
|
38
|
-
|
40
|
+
begin
|
41
|
+
request = Fitting::Records::Tested::Request.new(response, example)
|
42
|
+
responses += "FITTING incoming request #{request.to_spherical.to_json}\n"
|
43
|
+
rescue NoMethodError
|
44
|
+
end
|
39
45
|
end
|
40
46
|
|
41
47
|
config.after(:each) do
|
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.3
|
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-02-
|
11
|
+
date: 2023-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|