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

Add stream method to InsideRoute to leverage Rack::Chunked #1079

Merged
merged 1 commit into from
Jul 30, 2015

Conversation

zbelzer
Copy link
Contributor

@zbelzer zbelzer commented Jul 30, 2015

Also necessary was the introduction of an object (FileResponse) so the formatting middleware would leave files and other enumerables alone. Seemed better than relying on methods on the object as enumerables have each defined. I've been writing scala recently so I think I have case classes on the brain.

@dblock
Copy link
Member

dblock commented Jul 30, 2015

Very good @zbelzer! Will merge.

@dblock
Copy link
Member

dblock commented Jul 30, 2015

The build is failing on Rubocop you have some fixes to do, please (via --amend).

@zbelzer
Copy link
Contributor Author

zbelzer commented Jul 30, 2015

Oh rubocop...

… Rack::Chunked.

Also necessary was the introduction of an object (`FileResponse`) so the formatting middleware would leave files and
other enumerables alone.
@zbelzer
Copy link
Contributor Author

zbelzer commented Jul 30, 2015

There a preferable way to update that Module length?

@dblock
Copy link
Member

dblock commented Jul 30, 2015

I run rubocop --auto-gen-config.

dblock added a commit that referenced this pull request Jul 30, 2015
Add `stream` method to InsideRoute to leverage Rack::Chunked
@dblock dblock merged commit 0dfc1cc into ruby-grape:master Jul 30, 2015
@dblock
Copy link
Member

dblock commented Jul 30, 2015

Merged

@zbelzer
Copy link
Contributor Author

zbelzer commented Jul 30, 2015

Thanks!

I ran that but it looked like it threw a fit. Maybe if I had run again it would have been happy.

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