Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ruby 3.x support #278

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tatethurston
Copy link

@tatethurston tatethurston commented May 1, 2024

Adds sorted_set dependency so the gem can run under Ruby 3.x and updates the CI to test against Ruby 3.0 and 3.1.

Fixes https://datastax-oss.atlassian.net/browse/RUBY-336.

@tatethurston tatethurston force-pushed the tatethurston/ruby-3-in-ci branch 2 times, most recently from 4034b30 to 0d4217e Compare May 1, 2024 20:25
@tatethurston tatethurston changed the title Add Ruby 3.x to CI testing Add Ruby 3.x support May 1, 2024
@tatethurston tatethurston force-pushed the tatethurston/ruby-3-in-ci branch 2 times, most recently from 15c622e to d4f5c91 Compare May 1, 2024 23:59
docile (~> 1.1.0)
json (~> 1.8)
set (1.1.0)
simplecov (0.17.1)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bumped simplecov because the underlying json version for the previous version is not compatible with ruby 3.x

@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = ['README.md']
s.rdoc_options << '--title' << 'Datastax Ruby Driver' << '--main' << 'README.md' << '--line-numbers'

s.required_ruby_version = '>= 2.2.0'
s.required_ruby_version = '>= 2.3.0'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorted_set requires ruby 2.3. I've seen libraries not consider bumps in minimum ruby versions breaking changes when the dropped ruby version(s) is passed EOL so I'll defer here to the maintainers w.r.t versioning.

@tatethurston tatethurston force-pushed the tatethurston/ruby-3-in-ci branch 6 times, most recently from fc391c6 to 450fddc Compare May 2, 2024 02:53
@tatethurston
Copy link
Author

Hey @absurdfarce all the specs here are passing but it looks like jruby-9.0.5.0 has been failing for awhile with:

ERROR:  Could not find a valid gem 'bundler' (< 2), here is why:
          Unable to download data from https://rubygems.org/ - Received fatal alert: handshake_failure (https://api.rubygems.org/specs.4.8.gz)

Do you want to update or drop testing this ruby version, or continue to ignore this failure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant