Skip to content

Commit 7342396

Browse files
authored
Merge pull request #390 from ahx/2.11.1
2.11.1
2 parents f4e382d + 1d13b2d commit 7342396

File tree

5 files changed

+69
-65
lines changed

5 files changed

+69
-65
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
## 2.11.1
6+
7+
- OpenapiFirst can now route requests correctly for paths like `/stuffs` and `/stuffs{format}` (https://github.com/ahx/openapi_first/issues/386)
8+
59
## 2.11.0
610

711
- OpenapiFirst::Test.observe now works with `Rack::URLMap` (returned by `Rack::Builder.app`) and probably all objects that respond to `.call`

Gemfile.lock

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
openapi_first (2.11.0)
4+
openapi_first (2.11.1)
55
hana (~> 1.3)
66
json_schemer (>= 2.1, < 3.0)
77
openapi_parameters (>= 0.6.1, < 2.0)
@@ -10,65 +10,65 @@ PATH
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
actioncable (8.0.2)
14-
actionpack (= 8.0.2)
15-
activesupport (= 8.0.2)
13+
actioncable (8.0.2.1)
14+
actionpack (= 8.0.2.1)
15+
activesupport (= 8.0.2.1)
1616
nio4r (~> 2.0)
1717
websocket-driver (>= 0.6.1)
1818
zeitwerk (~> 2.6)
19-
actionmailbox (8.0.2)
20-
actionpack (= 8.0.2)
21-
activejob (= 8.0.2)
22-
activerecord (= 8.0.2)
23-
activestorage (= 8.0.2)
24-
activesupport (= 8.0.2)
19+
actionmailbox (8.0.2.1)
20+
actionpack (= 8.0.2.1)
21+
activejob (= 8.0.2.1)
22+
activerecord (= 8.0.2.1)
23+
activestorage (= 8.0.2.1)
24+
activesupport (= 8.0.2.1)
2525
mail (>= 2.8.0)
26-
actionmailer (8.0.2)
27-
actionpack (= 8.0.2)
28-
actionview (= 8.0.2)
29-
activejob (= 8.0.2)
30-
activesupport (= 8.0.2)
26+
actionmailer (8.0.2.1)
27+
actionpack (= 8.0.2.1)
28+
actionview (= 8.0.2.1)
29+
activejob (= 8.0.2.1)
30+
activesupport (= 8.0.2.1)
3131
mail (>= 2.8.0)
3232
rails-dom-testing (~> 2.2)
33-
actionpack (8.0.2)
34-
actionview (= 8.0.2)
35-
activesupport (= 8.0.2)
33+
actionpack (8.0.2.1)
34+
actionview (= 8.0.2.1)
35+
activesupport (= 8.0.2.1)
3636
nokogiri (>= 1.8.5)
3737
rack (>= 2.2.4)
3838
rack-session (>= 1.0.1)
3939
rack-test (>= 0.6.3)
4040
rails-dom-testing (~> 2.2)
4141
rails-html-sanitizer (~> 1.6)
4242
useragent (~> 0.16)
43-
actiontext (8.0.2)
44-
actionpack (= 8.0.2)
45-
activerecord (= 8.0.2)
46-
activestorage (= 8.0.2)
47-
activesupport (= 8.0.2)
43+
actiontext (8.0.2.1)
44+
actionpack (= 8.0.2.1)
45+
activerecord (= 8.0.2.1)
46+
activestorage (= 8.0.2.1)
47+
activesupport (= 8.0.2.1)
4848
globalid (>= 0.6.0)
4949
nokogiri (>= 1.8.5)
50-
actionview (8.0.2)
51-
activesupport (= 8.0.2)
50+
actionview (8.0.2.1)
51+
activesupport (= 8.0.2.1)
5252
builder (~> 3.1)
5353
erubi (~> 1.11)
5454
rails-dom-testing (~> 2.2)
5555
rails-html-sanitizer (~> 1.6)
56-
activejob (8.0.2)
57-
activesupport (= 8.0.2)
56+
activejob (8.0.2.1)
57+
activesupport (= 8.0.2.1)
5858
globalid (>= 0.3.6)
59-
activemodel (8.0.2)
60-
activesupport (= 8.0.2)
61-
activerecord (8.0.2)
62-
activemodel (= 8.0.2)
63-
activesupport (= 8.0.2)
59+
activemodel (8.0.2.1)
60+
activesupport (= 8.0.2.1)
61+
activerecord (8.0.2.1)
62+
activemodel (= 8.0.2.1)
63+
activesupport (= 8.0.2.1)
6464
timeout (>= 0.4.0)
65-
activestorage (8.0.2)
66-
actionpack (= 8.0.2)
67-
activejob (= 8.0.2)
68-
activerecord (= 8.0.2)
69-
activesupport (= 8.0.2)
65+
activestorage (8.0.2.1)
66+
actionpack (= 8.0.2.1)
67+
activejob (= 8.0.2.1)
68+
activerecord (= 8.0.2.1)
69+
activesupport (= 8.0.2.1)
7070
marcel (~> 1.0)
71-
activesupport (8.0.2)
71+
activesupport (8.0.2.1)
7272
base64
7373
benchmark (>= 0.3)
7474
bigdecimal
@@ -179,30 +179,30 @@ GEM
179179
rack (>= 1.3)
180180
rackup (2.2.1)
181181
rack (>= 3)
182-
rails (8.0.2)
183-
actioncable (= 8.0.2)
184-
actionmailbox (= 8.0.2)
185-
actionmailer (= 8.0.2)
186-
actionpack (= 8.0.2)
187-
actiontext (= 8.0.2)
188-
actionview (= 8.0.2)
189-
activejob (= 8.0.2)
190-
activemodel (= 8.0.2)
191-
activerecord (= 8.0.2)
192-
activestorage (= 8.0.2)
193-
activesupport (= 8.0.2)
182+
rails (8.0.2.1)
183+
actioncable (= 8.0.2.1)
184+
actionmailbox (= 8.0.2.1)
185+
actionmailer (= 8.0.2.1)
186+
actionpack (= 8.0.2.1)
187+
actiontext (= 8.0.2.1)
188+
actionview (= 8.0.2.1)
189+
activejob (= 8.0.2.1)
190+
activemodel (= 8.0.2.1)
191+
activerecord (= 8.0.2.1)
192+
activestorage (= 8.0.2.1)
193+
activesupport (= 8.0.2.1)
194194
bundler (>= 1.15.0)
195-
railties (= 8.0.2)
195+
railties (= 8.0.2.1)
196196
rails-dom-testing (2.3.0)
197197
activesupport (>= 5.0.0)
198198
minitest
199199
nokogiri (>= 1.6)
200200
rails-html-sanitizer (1.6.2)
201201
loofah (~> 2.21)
202202
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
203-
railties (8.0.2)
204-
actionpack (= 8.0.2)
205-
activesupport (= 8.0.2)
203+
railties (8.0.2.1)
204+
actionpack (= 8.0.2.1)
205+
activesupport (= 8.0.2.1)
206206
irb (~> 1.13)
207207
rackup (>= 1.0.0)
208208
rake (>= 12.2)
@@ -213,7 +213,7 @@ GEM
213213
rdoc (6.14.2)
214214
erb
215215
psych (>= 4.0.0)
216-
regexp_parser (2.11.0)
216+
regexp_parser (2.11.2)
217217
reline (0.6.2)
218218
io-console (~> 0.5)
219219
rspec (3.13.1)
@@ -228,8 +228,8 @@ GEM
228228
rspec-mocks (3.13.5)
229229
diff-lcs (>= 1.2.0, < 2.0)
230230
rspec-support (~> 3.13.0)
231-
rspec-support (3.13.4)
232-
rubocop (1.79.1)
231+
rspec-support (3.13.5)
232+
rubocop (1.79.2)
233233
json (~> 2.3)
234234
language_server-protocol (~> 3.17.0.2)
235235
lint_roller (~> 1.1.0)
@@ -270,7 +270,7 @@ GEM
270270
timeout (0.4.3)
271271
tzinfo (2.0.6)
272272
concurrent-ruby (~> 1.0)
273-
unicode-display_width (3.1.4)
273+
unicode-display_width (3.1.5)
274274
unicode-emoji (~> 4.0, >= 4.0.4)
275275
unicode-emoji (4.0.4)
276276
uri (1.0.3)

benchmarks/Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
openapi_first (2.11.0)
4+
openapi_first (2.11.1)
55
hana (~> 1.3)
66
json_schemer (>= 2.1, < 3.0)
77
openapi_parameters (>= 0.6.1, < 2.0)
@@ -16,10 +16,10 @@ GEM
1616
benchmark-memory (0.2.0)
1717
memory_profiler (~> 1)
1818
bigdecimal (3.2.2)
19-
committee (5.5.4)
19+
committee (5.5.5)
2020
json_schema (~> 0.14, >= 0.14.3)
2121
openapi_parser (~> 2.0)
22-
rack (>= 1.5, < 3.2)
22+
rack (>= 1.5)
2323
hana (1.3.7)
2424
json_schema (0.21.0)
2525
json_schemer (2.4.0)
@@ -41,15 +41,15 @@ GEM
4141
webrick
4242
puma (6.6.1)
4343
nio4r (~> 2.0)
44-
rack (3.1.16)
44+
rack (3.2.0)
4545
rack-protection (4.1.1)
4646
base64 (>= 0.1.0)
4747
logger (>= 1.6.0)
4848
rack (>= 3.0.0, < 4)
4949
rack-session (2.1.1)
5050
base64 (>= 0.1.0)
5151
rack (>= 3.0.0)
52-
regexp_parser (2.11.0)
52+
regexp_parser (2.11.2)
5353
ruby2_keywords (0.0.5)
5454
simpleidn (0.2.3)
5555
sinatra (4.1.1)

lib/openapi_first/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize
1414
@request_validation_error_response = OpenapiFirst.find_error_response(:default)
1515
@request_validation_raise_error = false
1616
@response_validation_raise_error = true
17-
@hooks = (HOOKS.map { [_1, Set.new] }).to_h
17+
@hooks = HOOKS.to_h { [_1, Set.new] }
1818
@path = nil
1919
end
2020

lib/openapi_first/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module OpenapiFirst
4-
VERSION = '2.11.0'
4+
VERSION = '2.11.1'
55
end

0 commit comments

Comments
 (0)