Skip to content

Conversation

@mssola
Copy link
Contributor

@mssola mssola commented Feb 20, 2025

Description

This PR does not just upgrade to Ruby 3.4.1, but it also upgrades a lot of gems underneath. This has been accidental by the way I needed to manage bundler. Anyways, I have split the Gemfile into both versions, and the Gemfile and Gemfile.lock files are merely a symlink.

There are still tests to be worked on, and the building surely needs a rebump (e.g. picking the right symlink?). Hence the wip label.

This PR also brings some improvements to the sqlite3 setup, which I was only able to reproduce while performing the upgrade.

@mssola mssola added the WIP Work in progress, do not merge. label Feb 20, 2025
Before this commit, if you tried to spin up a new RMT with sqlite3 as an
adapter you would be facing several issues. The first would be to
manually set the adapter on `config/rmt.yml`, whereas an environment
variable would suffice, as it's done for other database-related configuration.

Migrations were also quite mysql-centric, and they are mostly not
relevant since sqlite3 deployments are not even supported. Hence, we can
safely skip most of the data migration paths.

Signed-off-by: Miquel Sabaté Solà <[email protected]>
The upgrade to Rails 7.2 (as upgrades for many other gems) has been
accidental, as Ruby 3.4.1 caused problems with old Rails (and other
gems). Since the whole ruby upgrade also brought many changes
bundler-wise, I decided to upgrade everything in one stroke.

Signed-off-by: Miquel Sabaté Solà <[email protected]>
@mssola mssola changed the title Upgrade to ruby 3.4.1 and Rails 7.1 Upgrade to ruby 3.4.1 and Rails 7.2 Feb 20, 2025
@mssola
Copy link
Contributor Author

mssola commented Jul 3, 2025

I believe this is being handled somewhere else. Closing it...

@mssola mssola closed this Jul 3, 2025
@mssola mssola deleted the to-ruby-3.4.1 branch July 3, 2025 06:46
@ngetahun ngetahun restored the to-ruby-3.4.1 branch October 17, 2025 13:25
@ngetahun ngetahun reopened this Oct 17, 2025
@ngetahun
Copy link
Contributor

Re-opening this PR to extract changes and make a task list

- Created Gemfile-3.4.1 with essential gems for the application including Rails, Puma, MySQL, and development/testing tools.
- Generated Gemfile.lock to lock the gem versions for consistent environment setup.
- Added mise.toml to specify Ruby version and environment settings.
- Created a new Gemfile-3.4 that dynamically loads the appropriate version-specific Gemfile based on the Ruby version.
- Added Gemfile-3.4.lock with dependencies for Ruby 3.4, including actionpack, activerecord, and various testing and development tools.
…rmt-cli loading paths and require statements; modify schema for database consistency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP Work in progress, do not merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants