-
Notifications
You must be signed in to change notification settings - Fork 63
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
Remove extension for Sinatra #116
Conversation
I'm wondering what will be the experience if this code is simply removed, would it be better if we provided the same interface but raise an exception to the user telling them to add the extension gem? |
Right! The joy of deleting code blinded me and I didn't think about that 😄 I can restore the |
@epergo Thanks for your contribution. I think you can simply put an exceptional message in |
@@ -120,7 +120,6 @@ def self.normalized_type(type) | |||
def self.extend_object(object) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this code called from anywhere? It seems we want to remove the require
in this method 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken, Sinatra's register method calls extend, which calls extend_object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct it is used here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zzak Do you want me to do any change? Maybe I missed the point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@epergo Sorry, I was just wondering out loud nothing actionable -- but I think it'd be good to test this out a bit before we release anything
@epergo Hi 👋 ! This is awesome, and shows a way forward for mustermann + 3.0. Does it still work? (GitHub Actions' logs are purged, swept away.) |
I've updated the PR with master, ruby 3.0 job still fails because of 1 test and the coverage report |
Contributes to #114
After the Sinatra extension has been extracted to its own gem/repository now we can remove the extension code from Mustermann itself.