tomograph 3.1.4 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a6059c535fdbd1fff30f3199819041bb0644bff1c4f929838a3437aafbb41f9
4
- data.tar.gz: a9f11fbdef09295dc5c608ee17bd53361565690f1833e2becb4adeaf3072fc55
3
+ metadata.gz: d88459cb0a4d0984ea96d9c6b7b8aa79e8d4b439e2d6a40e5740d5d79eb0c22f
4
+ data.tar.gz: 197ee0ba20b19fc0e1b9c68249dfd3c6eaa29fd4cbf79d9145cefe81b7d31abd
5
5
  SHA512:
6
- metadata.gz: '094e3770c8886e01a84a6bdacee39c2f4a89717aaf6ba5de6d39957d1a3f6218a65b0855c27761038d1a31f4030d0b97fb650fa01a605e4400dd48afca86e826'
7
- data.tar.gz: 9a91a2874c9a3fc4c925d9b9f184e475d2ccb50b44f41aee1d99dfbb68f3414e69fa3657c705fd602f08209b691974e1ed7c5505a776881c572edc571a612862
6
+ metadata.gz: d60ffb7db5c6a0741796d75622ba2384cb4207f73c47d67c2e698fc8fde130efc9cc69c3df33338d650ee157e856d348558978d41f071e17fc90a08161ebb3ec
7
+ data.tar.gz: fcc104d8016d2cbabcc0ee4873f85503873b6ad8f79a2c23231287df1cc002d45b3c932cb7eb863fb7f5eb3a08bc798cd5b4b14c761f251f45648be1fad8e0ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ### 3.1.5 - 2023-02-02
4
+
5
+ * bug fixes
6
+ * fix keys for openapi 2 and 3 version
7
+
3
8
  ### 3.1.4 - 2023-02-01
4
9
 
5
10
  * bug fixes
@@ -28,15 +28,15 @@ module Tomograph
28
28
  resp.inject([]) do |result, reponse|
29
29
  if reponse[1]['schema']
30
30
  result.push(
31
- status: reponse[0],
32
- body: schema(reponse[1]['schema'], defi),
33
- 'content-type': ''
31
+ 'status' => reponse[0],
32
+ 'body' => schema(reponse[1]['schema'], defi),
33
+ 'content-type' => 'application/json'
34
34
  )
35
35
  else
36
36
  result.push(
37
- status: reponse[0],
38
- body: {},
39
- 'content-type': ''
37
+ 'status' => reponse[0],
38
+ 'body' => {},
39
+ 'content-type' => 'application/json'
40
40
  )
41
41
  end
42
42
  end
@@ -28,15 +28,15 @@ module Tomograph
28
28
  if response[1]['content'].nil?
29
29
  # TODO: 403Forbidden
30
30
  result.push(
31
- status: response[0],
32
- body: {},
33
- 'content-type': ''
31
+ 'status' => response[0],
32
+ 'body' => {},
33
+ 'content-type' => 'application/json'
34
34
  )
35
35
  elsif response[1]['content'].values[0]['schema']
36
36
  result.push(
37
- status: response[0],
38
- body: schema(response[1]['content'].values[0]['schema'], defi),
39
- 'content-type': ''
37
+ 'status' => response[0],
38
+ 'body' => schema(response[1]['content'].values[0]['schema'], defi),
39
+ 'content-type' => 'application/json'
40
40
  )
41
41
  else
42
42
  result.push(
@@ -1,3 +1,3 @@
1
1
  module Tomograph
2
- VERSION = '3.1.4'.freeze
2
+ VERSION = '3.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomograph
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.1.5
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-01 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: methadone