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

[Warning] Skipping set of ruby2_keywords flag for process (method accepts keywords or method does not accept argument splat) #753

Closed
jsantos opened this issue Apr 15, 2022 · 1 comment · Fixed by #756

Comments

@jsantos
Copy link
Contributor

jsantos commented Apr 15, 2022

After updating to 0.6.0, I keep getting the following warning:

.../.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/apipie-rails-0.7.1/lib/apipie/extractor/recorder.rb:163: warning: Skipping set of ruby2_keywords flag for process (method accepts keywords or method does not accept argument splat)

It seems to have been introduced on #716.

This seems to be the problem: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/.

I'm just not sure how to fix it. If anyone has advice on this, I can test it out and create a PR.

@jsantos jsantos changed the title [Warning] [Warning] Skipping set of ruby2_keywords flag for process (method accepts keywords or method does not accept argument splat) Apr 15, 2022
@mathieujobin
Copy link
Collaborator

Honestly, I also don't quite understand why or if it is at all required...
but removing it appears to not cause any problem on my end...

feel free to try out this branch if you want

#754

gem 'apipie-rails', github: 'Apipie/apipie-rails', branch: 'remove-ruby2_keywords'

jsantos added a commit to jsantos/apipie-rails that referenced this issue Apr 18, 2022
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 a pull request may close this issue.

2 participants