Skip to content

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.

2 participants