diff --git a/CHANGELOG.md b/CHANGELOG.md index 91e6f64b..cfd21a2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.11.0 + - OpenapiFirst::Test.observe now works with `Rack::URLMap` (returned by `Rack::Builder.app`) and probably all objects that respond to `.call` ## 2.10.1 diff --git a/Gemfile.lock b/Gemfile.lock index b521e46a..fce0c0c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - openapi_first (2.10.1) + openapi_first (2.11.0) hana (~> 1.3) json_schemer (>= 2.1, < 3.0) openapi_parameters (>= 0.6.1, < 2.0) @@ -93,19 +93,19 @@ GEM diff-lcs (1.6.2) docile (1.4.1) drb (2.2.3) - erb (5.0.1) + erb (5.0.2) erubi (1.13.1) globalid (1.2.1) activesupport (>= 6.1) hana (1.3.7) i18n (1.14.7) concurrent-ruby (~> 1.0) - io-console (0.8.0) + io-console (0.8.1) irb (1.15.2) pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.12.2) + json (2.13.2) json_schemer (2.4.0) bigdecimal hana (~> 1.3) @@ -125,7 +125,7 @@ GEM marcel (1.0.4) mini_mime (1.1.5) minitest (5.25.5) - mustermann (3.0.3) + mustermann (3.0.4) ruby2_keywords (~> 0.0.1) net-imap (0.5.9) date @@ -156,7 +156,7 @@ GEM openapi_parameters (0.6.1) rack (>= 2.2) parallel (1.27.0) - parser (3.3.8.0) + parser (3.3.9.0) ast (~> 2.4.1) racc pp (0.6.2) @@ -167,7 +167,7 @@ GEM date stringio racc (1.8.1) - rack (3.1.16) + rack (3.2.0) rack-protection (4.1.1) base64 (>= 0.1.0) logger (>= 1.6.0) @@ -210,11 +210,11 @@ GEM zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.3.0) - rdoc (6.14.1) + rdoc (6.14.2) erb psych (>= 4.0.0) - regexp_parser (2.10.0) - reline (0.6.1) + regexp_parser (2.11.0) + reline (0.6.2) io-console (~> 0.5) rspec (3.13.1) rspec-core (~> 3.13.0) @@ -229,7 +229,7 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.4) - rubocop (1.77.0) + rubocop (1.79.1) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -237,10 +237,10 @@ GEM parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.45.1, < 2.0) + rubocop-ast (>= 1.46.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.45.1) + rubocop-ast (1.46.0) parser (>= 3.3.7.2) prism (~> 1.4) rubocop-performance (1.25.0) @@ -254,7 +254,7 @@ GEM docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) - simplecov-html (0.13.1) + simplecov-html (0.13.2) simplecov_json_formatter (0.1.4) simpleidn (0.2.3) sinatra (4.1.1) @@ -265,8 +265,8 @@ GEM rack-session (>= 2.0.0, < 3) tilt (~> 2.0) stringio (3.1.7) - thor (1.3.2) - tilt (2.6.0) + thor (1.4.0) + tilt (2.6.1) timeout (0.4.3) tzinfo (2.0.6) concurrent-ruby (~> 1.0) diff --git a/benchmarks/Gemfile.lock b/benchmarks/Gemfile.lock index 40324888..1da3ae63 100644 --- a/benchmarks/Gemfile.lock +++ b/benchmarks/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - openapi_first (2.10.1) + openapi_first (2.11.0) hana (~> 1.3) json_schemer (>= 2.1, < 3.0) openapi_parameters (>= 0.6.1, < 2.0) @@ -29,7 +29,7 @@ GEM simpleidn (~> 0.2) logger (1.7.0) memory_profiler (1.1.0) - mustermann (3.0.3) + mustermann (3.0.4) ruby2_keywords (~> 0.0.1) nio4r (2.7.4) openapi_parameters (0.6.1) @@ -39,7 +39,7 @@ GEM profile-viewer (0.0.5) optparse webrick - puma (6.6.0) + puma (6.6.1) nio4r (~> 2.0) rack (3.1.16) rack-protection (4.1.1) @@ -49,7 +49,7 @@ GEM rack-session (2.1.1) base64 (>= 0.1.0) rack (>= 3.0.0) - regexp_parser (2.10.0) + regexp_parser (2.11.0) ruby2_keywords (0.0.5) simpleidn (0.2.3) sinatra (4.1.1) @@ -59,7 +59,7 @@ GEM rack-protection (= 4.1.1) rack-session (>= 2.0.0, < 3) tilt (~> 2.0) - tilt (2.6.0) + tilt (2.6.1) vernier (1.8.0) webrick (1.9.1) diff --git a/lib/openapi_first/error_responses/default.rb b/lib/openapi_first/error_responses/default.rb index e479fbf9..02ee5fd2 100644 --- a/lib/openapi_first/error_responses/default.rb +++ b/lib/openapi_first/error_responses/default.rb @@ -6,6 +6,7 @@ module ErrorResponses # See also https://www.rfc-editor.org/rfc/rfc9457.html class Default include OpenapiFirst::ErrorResponse + OpenapiFirst.register_error_response(:default, self) TITLES = { diff --git a/lib/openapi_first/error_responses/jsonapi.rb b/lib/openapi_first/error_responses/jsonapi.rb index 3b55fdef..8c512f33 100644 --- a/lib/openapi_first/error_responses/jsonapi.rb +++ b/lib/openapi_first/error_responses/jsonapi.rb @@ -5,6 +5,7 @@ module ErrorResponses # A JSON:API conform error response. See https://jsonapi.org/. class Jsonapi include OpenapiFirst::ErrorResponse + OpenapiFirst.register_error_response(:jsonapi, self) def body diff --git a/lib/openapi_first/version.rb b/lib/openapi_first/version.rb index cf8bea1e..c27b2ec2 100644 --- a/lib/openapi_first/version.rb +++ b/lib/openapi_first/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module OpenapiFirst - VERSION = '2.10.1' + VERSION = '2.11.0' end