Introduction of Ruby 3.1+ Support and Pre-commit Configuration #293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update introduces significant changes aimed at modernizing the codebase and enhancing code quality. The primary enhancement is the transition to Ruby 3.1+, indicated by the update in the README.md and Gemfile, where the Ruby version is explicitly set to '3.2.0'. This shift signifies a major update in the project's underlying technology, moving away from the previously supported Ruby versions up to 2.6.6.
More detail
Alongside the Ruby upgrade, the Gemfile has been simplified by removing version constraints on dependencies. This change suggests a move towards leveraging the latest versions of these gems, which could bring in improvements and new features from the gem updates. The introduction of the 'bundler-graph' plugin in the Gemfile is a minor but notable addition for visualizing the project's gem dependencies.
A significant new addition is the .pre-commit-config.yaml file, which introduces a pre-commit framework to the project. This framework is designed to improve code quality and consistency by automatically running checks before commits are finalized. The configuration includes hooks for trailing whitespace, end-of-file fixers, YAML syntax checks, private key detection, and more. This setup indicates a proactive approach to maintaining code quality and security.
The README.md file has been updated to reflect the new Ruby version support and removes detailed installation instructions, which are marked as "to be determined" (tbd). This change suggests an ongoing transition and adaptation to the new Ruby version's requirements.
In the Dockerfile, the base image has been updated from Ruby 2.6 to Ruby 3.1, aligning with the project's move to Ruby 3.1+ support. This change is crucial for ensuring that the Docker environment matches the project's updated Ruby version requirements.
Lastly, the deletion of migration files indicates a cleanup or restructuring of the database migration strategy. This could be part of the project's efforts to streamline or update its database schema management in line with the other updates.