openapi_contracts 0.16.1 → 0.16.2
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 +4 -4
- data/lib/openapi_contracts/rspec.rb +3 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04f75eda460ed18d448950e07a369562fb8b6f8b93127f311d8a42756f7d3a3f
|
4
|
+
data.tar.gz: 92527099886fe57922ffbd87c9fff3fffdae96f1a56beb59a59a1a6e7362b1f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46eff36fa87371d04173b695fcf82f0f613685c0a1a87cd74988f72dde2d439c1b86c664fdc183f172f0b25c2bf7c0d196d7d9e3876f10bbb60c52ec6524fca1
|
7
|
+
data.tar.gz: a4e7e55983e3acdffbc2e18af27910792156396d5af7274cff178dba6386bd51e0250c27f510a33cf21063eae3cba17e1d2103f243c07296d538eb279be877c7
|
@@ -29,7 +29,9 @@ RSpec::Matchers.define :match_openapi_doc do |doc, options = {}| # rubocop:disab
|
|
29
29
|
|
30
30
|
def with_http_status(status)
|
31
31
|
if status.is_a? Symbol
|
32
|
-
@status = Rack::Utils::SYMBOL_TO_STATUS_CODE
|
32
|
+
@status = Rack::Utils::SYMBOL_TO_STATUS_CODE.fetch(status) do
|
33
|
+
raise ArgumentError, "Unknown status #{status.inspect}"
|
34
|
+
end
|
33
35
|
else
|
34
36
|
@status = status
|
35
37
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openapi_contracts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mkon
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activesupport
|
@@ -117,28 +117,28 @@ dependencies:
|
|
117
117
|
requirements:
|
118
118
|
- - '='
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 1.
|
120
|
+
version: 1.72.1
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
125
|
- - '='
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version: 1.
|
127
|
+
version: 1.72.1
|
128
128
|
- !ruby/object:Gem::Dependency
|
129
129
|
name: rubocop-rspec
|
130
130
|
requirement: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
132
|
- - '='
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
134
|
+
version: 3.7.0
|
135
135
|
type: :development
|
136
136
|
prerelease: false
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - '='
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: 3.7.0
|
142
142
|
- !ruby/object:Gem::Dependency
|
143
143
|
name: simplecov
|
144
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.6.
|
217
|
+
rubygems_version: 3.6.9
|
218
218
|
specification_version: 4
|
219
219
|
summary: Openapi schemas as API contracts
|
220
220
|
test_files: []
|