Skip to content

Support Ruby 3.x through 4.0 - #104

Merged
parndt merged 22 commits into
refinery:masterfrom
anitagraham:ruby3
Jan 2, 2026
Merged

Support Ruby 3.x through 4.0#104
parndt merged 22 commits into
refinery:masterfrom
anitagraham:ruby3

Conversation

@anitagraham

@anitagraham anitagraham commented Jul 18, 2022

Copy link
Copy Markdown
Contributor

Updates refinerycms-i18n to Ruby 3, to match refinery/refinerycms#3518.

Using Mobility 1.3.x

Apart from that most changes are extremely minor.

Comment thread refinerycms-i18n.gemspec Outdated
@parndt

parndt commented May 12, 2023

Copy link
Copy Markdown
Member

Got CI running. Strangely, only Ruby 3.1 works and not 3.0 or 3.2 🤔

@halteren

halteren commented Jun 29, 2023

Copy link
Copy Markdown

Shouldn't line 29 of /lib/refinery/i18n-filter.rb be changed to

result.url !~ %r{^/(#{Refinery::Core.backend_route}|wymiframe)}

@anitagraham anitagraham reopened this Feb 14, 2024
@anitagraham

Copy link
Copy Markdown
Contributor Author

Closed and reopened to trigger new set of checks

anitagraham and others added 10 commits February 18, 2025 12:10
update version to 5.0.2

override the routing-filter/find_routes as recommended in svenfuchs/routing-filter#87

move complex conditions to methods in i18n-filter

clarify logic in find_or_set_local

remove flag icons as they are no longer used
Refactor routing filter overrides for Rails compatibility.
Refactor routing filter for Rails compatibility.
Updated routing filter compatibility for Rails versions 7.1 and 8.0.
Refactor routing filter overrides for Rails compatibility.
Comment thread refinerycms-i18n.gemspec Outdated
@parndt parndt changed the title Ruby3 Support Ruby 3.x through 4.0 Jan 2, 2026
@parndt

parndt commented Jan 2, 2026

Copy link
Copy Markdown
Member

Thanks so much @anitagraham

@parndt
parndt merged commit 26953e5 into refinery:master Jan 2, 2026
15 checks passed
parndt added a commit to refinery/refinerycms that referenced this pull request Jan 16, 2026
This PR and its matching PR refinery/refinerycms-i18n#104 allow
`refinerycms` to run with Ruby 3 / Ruby 4.

It has been tested with Ruby 3.2 through 4.0, and with Rails 6.1 through
8.1.

We've removed `coffee-rails` as a dependency and converted those to JS.

---------

Co-authored-by: Philip Arndt <git@p.arndt.io>
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.

4 participants