Skip to content
Merged

3.3.0 #466

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

## Unreleased

## 3.3.0

- 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!`.
- Optimized `OpenapiFirst::Router#match` for faster path matching and reduced memory allocation.
-

## 3.2.1

- Don't raise `UnknownQueryParameterError` if request is ignored in tests. Fixes [#441](https://github.com/ahx/openapi_first/issues/441).
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
openapi_first (3.2.1)
openapi_first (3.3.0)
drb (~> 2.0)
hana (~> 1.3)
json_schemer (>= 2.1, < 3.0)
Expand Down Expand Up @@ -88,7 +88,7 @@ GEM
ast (2.4.3)
base64 (0.3.0)
benchmark (0.5.0)
bigdecimal (4.1.0)
bigdecimal (4.1.1)
builder (3.3.0)
concurrent-ruby (1.3.6)
connection_pool (3.0.2)
Expand Down Expand Up @@ -151,7 +151,7 @@ GEM
racc (~> 1.4)
openapi_parameters (0.11.0)
rack (>= 2.2)
parallel (1.27.0)
parallel (1.28.0)
parser (3.3.11.1)
ast (~> 2.4.1)
racc
Expand Down Expand Up @@ -211,7 +211,7 @@ GEM
erb
psych (>= 4.0.0)
tsort
regexp_parser (2.11.3)
regexp_parser (2.12.0)
reline (0.6.3)
io-console (~> 0.5)
rspec (3.13.2)
Expand Down
18 changes: 10 additions & 8 deletions benchmarks/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
openapi_first (3.2.1)
openapi_first (3.3.0)
drb (~> 2.0)
hana (~> 1.3)
json_schemer (>= 2.1, < 3.0)
Expand All @@ -16,8 +16,8 @@ GEM
benchmark-ips (2.14.0)
benchmark-memory (0.2.0)
memory_profiler (~> 1)
bigdecimal (4.0.1)
committee (5.6.1)
bigdecimal (4.1.1)
committee (5.6.2)
json_schema (~> 0.14, >= 0.14.3)
openapi_parser (~> 2.0)
rack (>= 1.5)
Expand All @@ -38,20 +38,21 @@ GEM
rack (>= 2.2)
openapi_parser (2.3.1)
optparse (0.8.1)
profile-viewer (0.0.5)
profile-viewer (0.0.7)
optparse
uri
webrick
puma (7.1.0)
puma (7.2.0)
nio4r (~> 2.0)
rack (3.2.6)
rack-protection (4.2.1)
base64 (>= 0.1.0)
logger (>= 1.6.0)
rack (>= 3.0.0, < 4)
rack-session (2.1.1)
rack-session (2.1.2)
base64 (>= 0.1.0)
rack (>= 3.0.0)
regexp_parser (2.11.3)
regexp_parser (2.12.0)
ruby2_keywords (0.0.5)
simpleidn (0.2.3)
sinatra (4.2.1)
Expand All @@ -62,7 +63,8 @@ GEM
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
tilt (2.7.0)
vernier (1.9.0)
uri (1.1.1)
vernier (1.10.0)
webrick (1.9.2)

PLATFORMS
Expand Down
10 changes: 10 additions & 0 deletions benchmarks/apps/large.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

require 'json'
require 'openapi_first'
require_relative 'app'

OpenapiFirst.register File.absolute_path('../../spec/data/large.yaml', __dir__)

use OpenapiFirst::Middlewares::RequestValidation
run App
8 changes: 8 additions & 0 deletions benchmarks/large.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

require 'benchmark/memory'
require 'openapi_first'

Benchmark.memory do |x|
x.report { OpenapiFirst.load('../spec/data/large.yaml') }
end
2 changes: 1 addition & 1 deletion lib/openapi_first/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module OpenapiFirst
VERSION = '3.2.1'
VERSION = '3.3.0'
end
Loading