Skip to content

Proposal: extract dsl methods into modules#714

Merged
dblock merged 1 commit into
ruby-grape:masterfrom
dspaeth-faber:extract_dsl_from_api_class
Aug 12, 2014
Merged

Proposal: extract dsl methods into modules#714
dblock merged 1 commit into
ruby-grape:masterfrom
dspaeth-faber:extract_dsl_from_api_class

Conversation

@dspaeth-faber
Copy link
Copy Markdown
Contributor

I would like to suggest that DSL methods are extracted to seperate modules. This way it is easier to lookup DSL methods and see what I can use for my API definition.

@dblock
Copy link
Copy Markdown
Member

dblock commented Aug 11, 2014

This is great. Before I merge this, I think we should have corresponding specs, even if very basic for each DSL module. This would serve as a placeholder at least for future changes.

@dspaeth-faber
Copy link
Copy Markdown
Contributor Author

@dblock I did at some placeholder specs. I couldn't fill all blanks.

@dblock
Copy link
Copy Markdown
Member

dblock commented Aug 12, 2014

I'll merge and contribute some (got some airplane time next week :)).

dblock added a commit that referenced this pull request Aug 12, 2014
Proposal: extract dsl methods into modules
@dblock dblock merged commit a1419e1 into ruby-grape:master Aug 12, 2014
@dspaeth-faber
Copy link
Copy Markdown
Contributor Author

Nice :) I will see what I can do too. The good thing is it show's the dependencies of the DSL. The bad thing some PR will now need some refactoring.

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.

2 participants