Skip to content

Allow ruby version 4.0#1003

Merged
AlfonsoUceda merged 2 commits intotoptal:masterfrom
mjankowski:ruby-4-0
Mar 12, 2026
Merged

Allow ruby version 4.0#1003
AlfonsoUceda merged 2 commits intotoptal:masterfrom
mjankowski:ruby-4-0

Conversation

@mjankowski
Copy link
Copy Markdown
Contributor

Added to CI matrix and relaxed gemspec requirement.

Based on local test this seems ok ... will watch CI.

Separately, I chose to leave the gemspec range open ended to allow future rubies to not need this change, but let me know if you'd prefer to lock an upper range instead (or if there was a reason to NOT yet allow 4.0)

@mjankowski mjankowski requested a review from a team as a code owner February 27, 2026 19:08
@bbatsov
Copy link
Copy Markdown
Member

bbatsov commented Mar 4, 2026

The changes look good, but your branch has to be rebased on top of the current master branch due to merge conflicts.

@mjankowski
Copy link
Copy Markdown
Contributor Author

Rebased, repushed.

@AlfonsoUceda AlfonsoUceda merged commit f6e3bff into toptal:master Mar 12, 2026
13 checks passed
@mjankowski mjankowski deleted the ruby-4-0 branch March 12, 2026 12:40
mattmenefee added a commit to mattmenefee/chewy that referenced this pull request Mar 18, 2026
PR toptal#1003 added Ruby 4.0 support but the README still listed
3.2-3.4. Bump the documented range to 3.2-4.0 to match.
AlfonsoUceda added a commit that referenced this pull request Mar 25, 2026
* Update Elasticsearch client references for v8 gem namespaces

The elasticsearch-ruby v8 gem reorganized its module hierarchy:
- The transport client moved from Elasticsearch::Transport::Client
  to Elasticsearch::Client
- Transport errors moved from Elasticsearch::Transport::Transport::Errors
  to Elastic::Transport::Transport::Errors

Update documentation and YARD annotations to reflect these changes.

* Add Chewy 7→8 / Elasticsearch 7→8 migration guide

The migration guide previously only covered up to the Chewy 6→7
upgrade path. This adds a comprehensive section for users upgrading
to Chewy 8 / Elasticsearch 8, covering:

- Minimum Ruby (3.2) and Rails (7.2) version requirements
- elasticsearch gem version bump (>= 8.14, < 9.0)
- Namespace changes from elasticsearch-transport to elastic-transport
- Transport logger/tracer configuration changes
- Chewy.massacre / delete_all restriction due to ES 8 defaults
- Elasticsearch 8 security-by-default considerations
- Recommended rolling upgrade procedure

Closes #1004

* Update documented Ruby compatibility to include 4.0

PR #1003 added Ruby 4.0 support but the README still listed
3.2-3.4. Bump the documented range to 3.2-4.0 to match.

---------

Co-authored-by: Alfonso Uceda <alfonso.uceda@toptal.com>
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.

3 participants