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

support for sinatra namespaces #11

Merged
merged 2 commits into from
Sep 4, 2013
Merged

support for sinatra namespaces #11

merged 2 commits into from
Sep 4, 2013

Conversation

brianphillips
Copy link
Contributor

This add simple parsing/processing of namespaced routes for sinatra docs (as noted in issue #1). It only manages the URL path of the nested routes and does nothing with any documentation placed on the namespace keyword (docs would still need to be placed on each route declaration).

@@ -100,17 +109,22 @@ class RouteHandler < Ruby::Base
handles method_call(:get)
handles method_call(:post)
handles method_call(:put)
handles method_call(:patch)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did this get removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally inadvertant. Let me fix that up and re-push

@rkh
Copy link
Owner

rkh commented Sep 4, 2013

❤️

@brianphillips
Copy link
Contributor Author

I've added back the (mistakenly) removed "patch" keyword as well as fixing a bug with nesting namespaces more than one level. This is in a "works for me" and "unit tests pass" state. I'd love any more feedback you might have.

@rkh
Copy link
Owner

rkh commented Sep 4, 2013

I don't know to much about YARD internals, tbh, but from what I can tell it seems good. Are you using yard-sinatra actively? I use it in one project and am desperately looking for someone to take over maintenance.

@brianphillips
Copy link
Contributor Author

I only just started using it in the past couple of weeks but I anticipate that we might be using it more at work to provide API docs for internal services.

rkh added a commit that referenced this pull request Sep 4, 2013
support for sinatra namespaces
@rkh rkh merged commit cebeb4f into rkh:master Sep 4, 2013
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.

None yet

2 participants