diff --git a/CHANGELOG-9.x.md b/CHANGELOG-9.x.md index 1b16cd0f77..226cd027fa 100644 --- a/CHANGELOG-9.x.md +++ b/CHANGELOG-9.x.md @@ -1,4 +1,9 @@ # CHANGELOG 9.x +## Ruby version + +Ruby 3.2 and up are tested and supported. At the time of release, we're testingb + +We follow Ruby’s own maintenance policy and officially support all currently maintained versions per [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/). ## Gem diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb index 12ee1dbeb5..c28dd90c99 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb @@ -50,11 +50,19 @@ def delete_ruleset(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_query_rules/#{Utils.listify(_ruleset_id)}" - params = {} + params = Utils.process_params(arguments) - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) + if Array(arguments[:ignore]).include?(404) + Utils.rescue_from_not_found do + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + else + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end end end end diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 923b050cec..e1d69fc8ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze - ES_SPECIFICATION_COMMIT = '55d1444f19ce33e5a7a318e51ccc638a7901959c'.freeze + ES_SPECIFICATION_COMMIT = '1403bac9354d232024184bd992ecc76aaa9e68fa'.freeze end end