Skip to content

Commit cd4de96

Browse files
authored
Merge pull request #466 from ahx/3.3.0
3.3.0
2 parents c407b46 + 83f492c commit cd4de96

6 files changed

Lines changed: 35 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Unreleased
44

5+
## 3.3.0
6+
57
- OpenapiFirst will now cache the contents of files that have been loaded. If you need to reload your OpenAPI definition for tests or server hot reloading, you can call `OpenapiFirst.clear_cache!`.
68
- Optimized `OpenapiFirst::Router#match` for faster path matching and reduced memory allocation.
7-
-
9+
810
## 3.2.1
911

1012
- Don't raise `UnknownQueryParameterError` if request is ignored in tests. Fixes [#441](https://github.com/ahx/openapi_first/issues/441).

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
openapi_first (3.2.1)
4+
openapi_first (3.3.0)
55
drb (~> 2.0)
66
hana (~> 1.3)
77
json_schemer (>= 2.1, < 3.0)
@@ -88,7 +88,7 @@ GEM
8888
ast (2.4.3)
8989
base64 (0.3.0)
9090
benchmark (0.5.0)
91-
bigdecimal (4.1.0)
91+
bigdecimal (4.1.1)
9292
builder (3.3.0)
9393
concurrent-ruby (1.3.6)
9494
connection_pool (3.0.2)
@@ -151,7 +151,7 @@ GEM
151151
racc (~> 1.4)
152152
openapi_parameters (0.11.0)
153153
rack (>= 2.2)
154-
parallel (1.27.0)
154+
parallel (1.28.0)
155155
parser (3.3.11.1)
156156
ast (~> 2.4.1)
157157
racc
@@ -211,7 +211,7 @@ GEM
211211
erb
212212
psych (>= 4.0.0)
213213
tsort
214-
regexp_parser (2.11.3)
214+
regexp_parser (2.12.0)
215215
reline (0.6.3)
216216
io-console (~> 0.5)
217217
rspec (3.13.2)

benchmarks/Gemfile.lock

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
openapi_first (3.2.1)
4+
openapi_first (3.3.0)
55
drb (~> 2.0)
66
hana (~> 1.3)
77
json_schemer (>= 2.1, < 3.0)
@@ -16,8 +16,8 @@ GEM
1616
benchmark-ips (2.14.0)
1717
benchmark-memory (0.2.0)
1818
memory_profiler (~> 1)
19-
bigdecimal (4.0.1)
20-
committee (5.6.1)
19+
bigdecimal (4.1.1)
20+
committee (5.6.2)
2121
json_schema (~> 0.14, >= 0.14.3)
2222
openapi_parser (~> 2.0)
2323
rack (>= 1.5)
@@ -38,10 +38,11 @@ GEM
3838
rack (>= 2.2)
3939
openapi_parser (2.3.1)
4040
optparse (0.8.1)
41-
profile-viewer (0.0.5)
41+
profile-viewer (0.0.7)
4242
optparse
43+
uri
4344
webrick
44-
puma (7.1.0)
45+
puma (7.2.0)
4546
nio4r (~> 2.0)
4647
rack (3.2.6)
4748
rack-protection (4.2.1)
@@ -51,7 +52,7 @@ GEM
5152
rack-session (2.1.2)
5253
base64 (>= 0.1.0)
5354
rack (>= 3.0.0)
54-
regexp_parser (2.11.3)
55+
regexp_parser (2.12.0)
5556
ruby2_keywords (0.0.5)
5657
simpleidn (0.2.3)
5758
sinatra (4.2.1)
@@ -62,7 +63,8 @@ GEM
6263
rack-session (>= 2.0.0, < 3)
6364
tilt (~> 2.0)
6465
tilt (2.7.0)
65-
vernier (1.9.0)
66+
uri (1.1.1)
67+
vernier (1.10.0)
6668
webrick (1.9.2)
6769

6870
PLATFORMS

benchmarks/apps/large.ru

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
require 'json'
4+
require 'openapi_first'
5+
require_relative 'app'
6+
7+
OpenapiFirst.register File.absolute_path('../../spec/data/large.yaml', __dir__)
8+
9+
use OpenapiFirst::Middlewares::RequestValidation
10+
run App

benchmarks/large.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
require 'benchmark/memory'
4+
require 'openapi_first'
5+
6+
Benchmark.memory do |x|
7+
x.report { OpenapiFirst.load('../spec/data/large.yaml') }
8+
end

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 = '3.2.1'
4+
VERSION = '3.3.0'
55
end

0 commit comments

Comments
 (0)