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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2ee2d75d894fdf2bba32957175322c532007e0ac56afcd1e35f6f2787c63c9c
4
- data.tar.gz: 551bc32b2c060397915283b26d970d360954eb3dae25c0e15f26992fe3393e1e
3
+ metadata.gz: 3eab6dd66aacca19bfae2a27052780730304752c7cb89bdb5e3063b85a3c3efe
4
+ data.tar.gz: 419d352cfdba3499d0e6425e5e6e76fdbfe5e1f2c289eac98d3833e84d77e57e
5
5
  SHA512:
6
- metadata.gz: 06e9c8a1fa3062cb34a9ecb655393691cf856ed28a7605949284b7fb6acb3c0efa9d3d7e7eafc6c7a41ffd7923659816dc8b985b1934e8cf353ae8603365d1ae
7
- data.tar.gz: b99972509015910ae7d70a10d65f316e96ac2556230e2b3ed0d6ca33311c68cbb95c7f80c0c59c82eef6f470fcc66e4e0bd247efd811555bfe6091e953c55b95
6
+ metadata.gz: b2270a49a1598c714b43717386a7ebc9ce26f69a35e6e868288089c6154f7d170c6c2c35a676fef91f2e6e38ee1e084b383d0a2f49136c9602f48dfa48aee56e
7
+ data.tar.gz: d93156db45a6f7c3be71543ee2315aae12e4a440266aeefea22aaf4ec9d15713fa94d4dbb9b2fbc731672d30afa4cbecd917483bc6b1e9f5ffd13fa98e7aa865
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change log
2
2
 
3
+ ### 4.0.3 - 2023-02-20
4
+
5
+ * patch
6
+ * improve error message
7
+
8
+ ### 4.0.2 - 2023-02-17
9
+
10
+ * patch
11
+ * skip error if not request in request test
12
+
3
13
  ### 4.0.1 - 2023-02-16
4
14
 
5
15
  * patch
@@ -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 #{::JSON.pretty_generate(JSON::Validator.fully_validate(@step_key, log.body))}"
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"\
@@ -1,3 +1,3 @@
1
1
  module Fitting
2
- VERSION = '4.0.1'.freeze
2
+ VERSION = '4.0.3'.freeze
3
3
  end
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
- request = Fitting::Records::Tested::Request.new(response, example)
33
- responses += "FITTING incoming request #{request.to_spherical.to_json}\n"
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
- request = Fitting::Records::Tested::Request.new(response, example)
38
- responses += "FITTING incoming request #{request.to_spherical.to_json}\n"
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema