Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for rails 8 #46

Merged
merged 8 commits into from
Dec 29, 2024

Conversation

PedroAugustoRamalhoDuarte
Copy link
Member

This pull request includes several updates to the codebase, focusing on upgrading dependencies, adding support for multiple Rails versions, and refactoring controller parameter handling. The most important changes include updating Ruby and Rails versions, refactoring parameter handling into a concern, and modifying test cases to ensure compatibility with new validations.

Dependency Updates:

  • .github/workflows/ci.yml: Updated Ruby version from 3.3.4 to 3.3.6 and added a matrix strategy to test against Rails versions 7.2 and 8.0. [1] [2]
  • Gemfile: Added conditional logic to use different versions of panko_serializer based on the Rails version. [1] [2]
  • .rubocop.yml: Updated TargetRubyVersion from 2.6 to 3.3.

Refactoring:

  • app/controllers/rest_api_generator/child_resource_controller.rb and app/controllers/rest_api_generator/resource_controller.rb: Moved parameter handling methods to a new concern ResourceParams. [1] [2] [3] [4]
  • lib/rest_api_generator/resource_params.rb: Introduced a new concern ResourceParams to handle parameter filtering and strong parameters.

Test Updates:

Other Changes:

@PedroAugustoRamalhoDuarte PedroAugustoRamalhoDuarte merged commit 205f5eb into main Dec 29, 2024
3 checks passed
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