From eefd02fc535b282a0e5392327fa4360e02d6c0b8 Mon Sep 17 00:00:00 2001 From: Marco Costa Date: Tue, 15 Oct 2024 09:53:01 -0700 Subject: [PATCH] Add lib injection support for Ruby 3.3 Support for Ruby 3.3 is present in the gem, the only thing needed for injection is to change the installation script to allow it to run with that version of Ruby. Because the Ruby API does not change in incompatible ways in between patch versions, we declare our compatibility with the API version "3.3.0", thus supporting all 3.3.x versions. --- lib-injection/host_inject.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-injection/host_inject.rb b/lib-injection/host_inject.rb index 6583f8c4536..1b014e824b3 100644 --- a/lib-injection/host_inject.rb +++ b/lib-injection/host_inject.rb @@ -87,7 +87,7 @@ def runtime_supported? major, minor, = RUBY_VERSION.split('.') ruby_api_version = "#{major}.#{minor}.0" - supported_ruby_api_versions = ['2.7.0', '3.0.0', '3.1.0', '3.2.0'].freeze + supported_ruby_api_versions = ['2.7.0', '3.0.0', '3.1.0', '3.2.0', '3.3.0'].freeze RUBY_ENGINE == 'ruby' && supported_ruby_api_versions.any? { |v| ruby_api_version == v } end