Skip to content

Conversation

@neumerance
Copy link
Collaborator

Summary

This PR upgrades the application to use Ruby 3.2.0 and resolves various compatibility issues with gems and configurations. Below is a detailed list of changes made during the upgrade process.


Changes Made

1. Ruby Version Upgrade

  • Updated the Ruby version to 3.2.0 in the Gemfile.
  • Ensured the system is running Ruby 3.2.0 using asdf.

2. Gem Updates

  • pg:
    • Upgraded to a version compatible with Ruby 3.2.0.
  • pry:
    • Updated to ~> 0.14.1 to resolve compatibility issues.
  • nokogumbo:
    • Updated to a compatible version to fix native extension build errors.
  • paper_trail:
    • Upgraded to ~> 12.0 for compatibility with ActiveRecord 7.
  • Other Gems:
    • Verified and updated as needed to ensure compatibility with Ruby 3.2.0 and Rails 7.

3. Configuration Changes

  • ActiveRecord Connection Handling:
    • Addressed deprecation warnings by adding the necessary configuration in application.rb.
  • Logger Compatibility:
    • Replaced ActiveSupport::LoggerThreadSafeLevel references with ActiveSupport::Logger.

4. Resolved Deprecation Warnings

  • Fixed warnings related to:
    • DidYouMean::SPELL_CHECKERS
    • CSRF token defaults
  • Updated configurations to align with Rails 7 and Ruby 3.2.0 defaults.

5. Testing

  • Ran the full test suite using RSpec.
  • Resolved any test failures caused by gem or configuration changes.

❌ All tests pass and the app is stable under Ruby 3.2.0.

There is still work needed to fix failing tests.
245 examples, 23 failures, 1 pending

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