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

Rack < 3 #2302

Merged
merged 2 commits into from
Jan 5, 2023
Merged

Rack < 3 #2302

merged 2 commits into from
Jan 5, 2023

Conversation

ericproulx
Copy link
Contributor

Following the discussion #2298, this PR is intended to limit Grape to Rack < 3 until the issue is resolved.

Also rack-test has been updated to its latest version 2.0.2. This PR changes the way multipart is processed and spec/grape/endpoint_spec.rb#427 has been updated to reflect that.

Fixes #2278
Closes #2279

Update rack-test and limit rack < 3
Update multiple gemfiles
@grape-bot
Copy link

grape-bot commented Jan 4, 2023

1 Message
📖 We really appreciate pull requests that demonstrate issues, even without a fix. That said, the next step is to try and fix the failing tests!

Generated by 🚫 Danger

@ericproulx
Copy link
Contributor Author

@dblock by updating rack-test, I had to change all the gemfiles. I was wondering if it would possible to use add_development_dependency in gemspec instead. I know the gem appraisal does the work but we could shorten all the gemfiles by leveraging the gemspec.

@dblock
Copy link
Member

dblock commented Jan 5, 2023

@dblock by updating rack-test, I had to change all the gemfiles. I was wondering if it would possible to use add_development_dependency in gemspec instead. I know the gem appraisal does the work but we could shorten all the gemfiles by leveraging the gemspec.

We sure can, but mind that some of the appraisals may want to lock a development dependency at a different version explicitly in Gemfile - we are just getting lucky with rack-test that can be "anything compatible". This means that in the future you might need to undo that change. I'd just leave it alone and let appraisal do its job.

@dblock dblock merged commit 0ec1788 into ruby-grape:master Jan 5, 2023
@dblock
Copy link
Member

dblock commented Jan 5, 2023

Thank you for doing this @ericproulx !

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.

test failure with rack-test 2.0
3 participants