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
Splitting sinatra/base.rb #1543
Conversation
7200c94
to
0271b32
Compare
✅ |
rebased. ❤️ Let's rock! |
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.
@halan What do you think about adding these error objects in a errors.rb
and centralize them there?
module Sinatra
module Errors
# Raised when the server was unable to process the request sent by the client due to invalid syntax
class BadRequest < TypeError
# Raised when a URL is no longer accessible
class NotFound < NameError
end
end
Sounds good. I'll take a look. |
Top-level constants living in |
I agree. |
I did rebase with master and accepted all good suggestions here! Thank you guys. |
Will this ever get accepted? |
This PR just splits
sinatra/base.rb
into files. The intent here is to do the first step of a refactoring. The next steps can be refactoring each piece separately.Related with #1531