Skip to content
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

Switch framework from Sinatra to Roda #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jeremyevans
Copy link

Considering Ginatra's name, I don't think acceptance of this
pull request is very likely, but I think using a routing tree will
DRY up pretty much all the routes (e.g.
@repo = RepoList.find(...) in only one place).

All specs pass with this, and it seems to work in some basic
testing. If switching the framework from Sinatra to Roda is
something you'll consider, but you have issues with this
implementation, I'll be happy to address any issues.

The diff is probably best viewed with -b due to indentation
changes related to the switch to a routing tree.

There is a lot of duplication in the Sinatra routes, and using a
routing tree DRYs things up.

Remove sinatra/partials.rb, replace with simpler partial method.

This currently comments out the Sinatra::Reloader use.  It's
fairly simple to switch to different reloading library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant