CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=0, private, must-revalidate
content-type: text/html; charset=utf-8
etag: W/"cd5b292b4b2af928ec5e47b2782fd5d6"
nel: {"report_to":"heroku-nel","response_headers":["Via"],"max_age":3600,"success_fraction":0.01,"failure_fraction":0.1}
referrer-policy: strict-origin-when-cross-origin
report-to: {"group":"heroku-nel","endpoints":[{"url":"https://nel.heroku.com/reports?s=Tfr54CLeKx0wi4cl671QAOimuxBoegcwffufoJ2yawg%3D\u0026sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d\u0026ts=1753279050"}],"max_age":3600}
reporting-endpoints: heroku-nel="https://nel.heroku.com/reports?s=Tfr54CLeKx0wi4cl671QAOimuxBoegcwffufoJ2yawg%3D&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&ts=1753279050"
server: Heroku
set-cookie: _redmine_session=czEvdjZxVk5XVDMrM3NzcmROWVlYRkZKbS90L042c1RaMlBzM1QrdXd3RE1CV2JSakdYZVBETkVraXVQaUNOd0J0L0s5ZVVQMzlpWXBJK1BPdG1GRzZabkxFTWVodE9CNzk3NGFhaWxxcmpUUG5JcnltR3c2NzdIVytqTEVwT0gyVWpLWXE5Rzl5UmVXdGpNQ24xWDVWSXpzOGdiUDQwS2JDSU9pTWk5THE3b0RMSlJWczl1UTl2aUM5MjVaWElWLS1jcUNNQ3VyY0YrUnpnTzZZcHdGTCtBPT0%3D--54d04c9c83a92283ca9988d20f33c428bd8481bf; path=/; secure; httponly; samesite=lax
strict-transport-security: max-age=63072000; includeSubDomains
vary: Accept
via: 2.0 heroku-router
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-request-id: c1b1deb2-c7cc-4802-ac7c-4eb4929e63ed
x-runtime: 0.107486
x-xss-protection: 1; mode=block
content-length: 24343
date: Wed, 23 Jul 2025 13:57:30 GMT
Bug #21402: ruby2_keywords affects methods/procs with post arguments - Ruby - Ruby Issue Tracking System
Project
General
Profile
Tags
Custom queries
Actions
Bug #21402
openruby2_keywords affects methods/procs with post arguments
Added by jeremyevans0 (Jeremy Evans) about 1 month ago.
Description
I believe this is an oversight. We forgot to consider post arguments during the development of ruby2_keywords
. I believe we should not allow ruby2_keywords
on methods/procs with post arguments. Example:
def a(*c, **kw) [c, kw] end
def b(*a, b) a(*a, b) end
ruby2_keywords(:b)
b({foo: 1}, bar: 1)
# Currently: [[{foo: 1}], {bar: 1}]
# Expected: [[{foo: 1}, {bar: 1}], {}]
I think the current behavior is unexpected and undesired, because instead of flagging the last element in the splat array, it flags a post argument.
I've submitted a pull request to fix this: https://github.com/ruby/ruby/pull/13475
No data to display
Actions
Like0
Powered by Redmine © 2006-2025 Jean-Philippe Lang
Loading...