swagalicious 0.4.1 → 0.4.2

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: a5c37b19faf98f5e71159ac6285f997cb4387f8e4647087f19d33546fee346a7
4
- data.tar.gz: fdab1f1246d2eb02a3d8279f6db96e5f3b067ebfef940c5e9cbb558525b60680
3
+ metadata.gz: fc2174d33212b6196c1cfa15e022cd1e3c9d6f2633b6f6ad6c56cc4506895b82
4
+ data.tar.gz: 3a67216c81d671a023969138a24fdf5f0a3dfc20ec468a07abf1ce4b4dbb3892
5
5
  SHA512:
6
- metadata.gz: 2197185fc859b4cc8912aeb8467c3dd3097df510b0ba790ee194d1a22317479be3e1a635e21eac7d27803d1e59a2ef6bb42c958eea555dbb8436389d19a67043
7
- data.tar.gz: 47d027e1184e3e7e74a6896b3d56f04a1ea096b287b964b5578489fe522b61cea4125380ae96f1f368e295b621fa98df6fddbc92bb9cc3306eb830dd0a9a8d35
6
+ metadata.gz: 51bc671599f979b41ef407a3b4d2936a3ec133efe6df7c2b6a51b1ad92a5c98850d5226908ed66cbac0ef183bbddbc542e1505f1777ed02c9153b4d7a90324fe
7
+ data.tar.gz: d3db035d1bc8e6d37fd934be9ed7cbd93809c469a761fa1133080b2ad4faf7be3016655f8f88453c5bbd7e34989bd29003901e5ee8aa5b09f8928e24ac194d5a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swagalicious (0.3.1)
4
+ swagalicious (0.4.2)
5
5
  faraday (~> 1.3.0)
6
6
  json-schema (~> 2.8.1)
7
7
  oj (~> 3.11.0)
@@ -125,7 +125,7 @@ class Swagalicious
125
125
 
126
126
  def upgrade_response_produces!(swagger_doc, metadata)
127
127
  # Accept header
128
- mime_list = Array(metadata[:operation][:produces] || swagger_doc[:produces])
128
+ mime_list = Array(metadata[:operation].delete(:produces) || swagger_doc[:produces])
129
129
  target_node = metadata[:response]
130
130
  upgrade_content!(mime_list, target_node)
131
131
  metadata[:response].delete(:schema)
@@ -1,3 +1,3 @@
1
1
  class Swagalicious
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagalicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Howe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-22 00:00:00.000000000 Z
11
+ date: 2021-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday