Skip to content

Conversation

@jamesds
Copy link
Contributor

@jamesds jamesds commented Oct 27, 2025

Rails 8.1 is raising a deprecation warning on a single line in lib/apipie/routing.rb, where get (and all other router methods) will be expected to use keyword arguments from Rails 8.2 onwards.

The initial fix failed in the CI tests for the oldest 2 ruby/rails versions, so I've amended the fix to only apply to Rails 5.2 and above, if the older versions still need to be supported.

@mathieujobin
Copy link
Collaborator

@copilot can you check whats wrong with Rubocop ?

get(options.reverse_merge("(:version)/(:resource)/(:method)" => "apipies#index", :as => :apipie))
get_args = options.reverse_merge("(:version)/(:resource)/(:method)" => "apipies#index", :as => :apipie)

Rails.version >= "5.2" ? get(**get_args) : get(get_args)
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets remove support for Rails 5.x and 6.x @copilot
and update CHANGELOG and bump the next minor version

@mathieujobin
Copy link
Collaborator

Thanks for working on this @jamesds

@jamesds
Copy link
Contributor Author

jamesds commented Nov 7, 2025

Thank you @mathieujobin!

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