You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dentarg I was having problem keeping the compatibility with keywords / positional arguments. When implemented for one it broke another one 😄 . I was able to resolve this and will open a PR with a possible solution.
Hey Folks 👋
I'm trying to upgrade an app to test with Ruby 3 and I'm having a problem.
This is the minimal example to reproduce it:
The Class Foo extends from Sinatra::Base and I redefine the initializer to accept two named parameter and it fails with this error:
I think the problem is inside the
new
redefinition here https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb#L1525-L1528I tried to fork the sinatra code and change this method to be accepted as the new ruby 3 pattern https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/
but I failed without breaking the original behave.
any ideas on what to do here?
I'm thinking on redefine
new
instead of creating an initializer as a workaround for this.Thanks
The text was updated successfully, but these errors were encountered: