-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix additional Ruby 2.7 keyword warnings #1586
Conversation
If you hope eliminating the warnings, why didn't you fix other points such as "send_file"? |
Also, AFAIK, the "opt = {}" with keyword args will be kept as compatibility layer as per https://blog.saeloun.com/2019/10/07/ruby-2-7-keyword-arguments-redesign#compatibility-layer So I guess we don't have to merge this for v2.7, right? |
I got the warnings from I don't know why the other methods with And like that other PR that is already merged, this isn't strictly required, it just prints an annoying warning when the files are included with |
@stefansundin Thanks. @jkowens Could you check in term of other things. |
@jkowens Could you take a look at this? I think we can merge it. Thanks! |
@stefansundin I found two more locations that are throwing warnings when I run the tests. Can you fix those as well? 🙏 Line 1526 in 2527f46
|
Hi @jkowens. I'm having issues installing libv8 on my machine, so I can't test it unfortunately. Could you tell me exactly what to change those two lines to? I think you can also propose the exact changes in a review: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/reviewing-proposed-changes-in-a-pull-request And since you are a member of the Sinatra org, I think you have write access already to this branch. Feel free to push to it yourself. |
Ok, I ended up only updating one other location. The warning at |
These were missed in #1581.