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

[WIP] Updated plug. Refactor Router/Controller. #56

Merged
merged 3 commits into from
Dec 24, 2014

Conversation

slogsdon
Copy link
Member

Fixes #54.

First part of a major refactor in order to allow Sugar to track Plug's latest versions easier. Leveraging the Placid way of handling Routers and Handlers (Controllers) so that they are more Plug-oriented and can use plugs in a more idiomatic way.

Remaining bits include ensuring older functionality continues (even if under a different name), including hooks and filters (which both should be good to go with the internal Plug stacks brought over from Placid's implementations).

When complete, this should easily pave the way for the completion of #16, #17, #41, and #55.

Comments welcome and encouraged.

fixes #54.
first part of a major refactor in order to allow
sugar to track plug's latest versions easier.
leveraging the placid way of handling routers
and controllers (handlers) so that they are more
plug-oriented and can use plugs in a more
idiomatic way.
@slogsdon slogsdon self-assigned this Dec 23, 2014
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.86%) when pulling 7bcbed3 on feature/plug-refactor into 16fc410 on master.

strip out hooks and filters in favor of plugs. plug stack in
controllers allows for before/after functionality, but router
stack doesn't. not sure that it needs it.
add functionality/tests for matched controller/action in
conn.private.
improved test coverage.
fix copy_req_content_type router plug.
add HttpsOnly and XML parser
@coveralls
Copy link

Coverage Status

Coverage increased (+0.29%) when pulling 4d57f29 on feature/plug-refactor into 16fc410 on master.

slogsdon added a commit that referenced this pull request Dec 24, 2014
Updated plug. Refactor Router/Controller.
@slogsdon slogsdon merged commit 625392f into master Dec 24, 2014
@slogsdon slogsdon deleted the feature/plug-refactor branch December 24, 2014 17:00
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.

Update Plug to latest
2 participants