From 150723641c1904a7ff7918374ef3a6cc305a68b1 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:48:43 +0200 Subject: [PATCH] Add CI for Ruby 3.3 Requires an uri require in the spec since this raises on access to `URI` otherwise --- .github/workflows/7.17.yml | 2 +- elasticsearch/spec/integration/characters_escaping_spec.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/7.17.yml b/.github/workflows/7.17.yml index e24a85e97d..7cf04c4930 100644 --- a/.github/workflows/7.17.yml +++ b/.github/workflows/7.17.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ '3.0', '3.1', '3.2', 'jruby-9.3', 'jruby-9.4' ] + ruby: [ '3.0', '3.1', '3.2', '3.3', 'jruby-9.3', 'jruby-9.4' ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/elasticsearch/spec/integration/characters_escaping_spec.rb b/elasticsearch/spec/integration/characters_escaping_spec.rb index c53c258bfb..c58e1addf3 100644 --- a/elasticsearch/spec/integration/characters_escaping_spec.rb +++ b/elasticsearch/spec/integration/characters_escaping_spec.rb @@ -14,6 +14,9 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. + +require 'uri' + ELASTICSEARCH_URL = ENV['TEST_ES_SERVER'] || "http://localhost:#{(ENV['PORT'] || 9200)}" raise URI::InvalidURIError unless ELASTICSEARCH_URL =~ /\A#{URI::DEFAULT_PARSER.make_regexp}\z/