Skip to content

PB-3743: 0-9: Update restpack_serializer fork for kaminari 1.x#4

Open
Lalo (carlos-perez-wl) wants to merge 2 commits intodevelopfrom
feature/PB-3743-0-9-update-restpack-serializer-fork-for-kaminari-1-x
Open

PB-3743: 0-9: Update restpack_serializer fork for kaminari 1.x#4
Lalo (carlos-perez-wl) wants to merge 2 commits intodevelopfrom
feature/PB-3743-0-9-update-restpack-serializer-fork-for-kaminari-1-x

Conversation

@carlos-perez-wl
Copy link
Copy Markdown

@carlos-perez-wl Lalo (carlos-perez-wl) commented Mar 17, 2026

This PR updates the restpack_serializer fork to support Kaminari 1.x, which is required for Rails 7 compatibility and unblocks Phase 4 of the Rails upgrade.

Changes

  • Upgrade Kaminari dependency to >= 1.0, < 2.0
  • Remove deprecated Kaminari::Hooks.init
  • Bump gem version to 0.6.0
  • No changes to pagination behavior or serialized output

Why

Kaminari 0.16.x is incompatible with modern Rails. This upgrade resolves the dependency blocker with minimal, low‑risk changes.

Risk

Low — only public, stable Kaminari APIs are used; no API or contract changes.

Copy link
Copy Markdown

@Loubz Guillaume Loubier (Loubz) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know what you think Lalo (@carlos-perez-wl)

gem.add_dependency 'activesupport', ['>= 4.0.3']
gem.add_dependency 'activerecord', ['>= 4.0.3']
gem.add_dependency 'kaminari', '~> 0.16.1'
gem.add_dependency 'kaminari', '>= 1.0', '< 2.0'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be safer for the upgrade, to still allow the a version before the 1.0 jump to still work (I based my suggestion on this PR where they updated it for Kaminari 1).

Suggested change
gem.add_dependency 'kaminari', '>= 1.0', '< 2.0'
gem.add_dependency 'kaminari', ['>= 0.17.0', '< 2.0']

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