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

0.9.7 #161

Merged
merged 17 commits into from
Apr 26, 2023
Merged

0.9.7 #161

merged 17 commits into from
Apr 26, 2023

Conversation

smaeda-ks
Copy link
Collaborator

@smaeda-ks smaeda-ks commented Jan 20, 2021

This PR includes:

Breaking Changes

impact: low

changing --raw-data option behavior

Although the description says Sends the specified data as it is... it's actually parsing input data using CGI.parse() method. This isn't ideal, especially when it comes to JSON data, for instance. We shouldn't touch the specified raw data at all.

This commit changes this behavior and makes this option a real thing, so users can also send JSON data using -r option by properly setting the content-type request header using -A option. For backword-compatibility, we still allow -d option to send JSON data as long as content-type: application/json request header is set along with it.

Also, since -r takes input data as-is, it doesn't make sense to allow combine use with -d option or adding -r option more than once, so we treat them as an error going forward.

ERROR: can't specify '-r' option more than once
ERROR: can't use '-r' and '-d' options together

Use docker-compose and mount volume between host and container properly
and now we require spec.required_ruby_version = '>= 2.5.0' so no need to have this condition anymore
Although the description says "Sends the specified data as it is..." it's actually parsing input data using CGI.parse() method. This isn't ideal, especially when sending JSON data, for instance. This commit changes this behavior and makes that option a real thing, so users can also send JSON data using -r option by setting the content-type request header using -A option.

For backword-compatibility, we still allow -d option to send JSON data as long as "content-type: application/json" request header is set.

Also, since -r takes input data as-is, it doesn't really make sense to allow combine use with -d option or adding -r option more than once, so we treat them as an error going forward.
This commit can be reverted once new Ruby 3 patch/minor version has released.
@smaeda-ks
Copy link
Collaborator Author

Hi @andypiper, let me know if you have any questions. Not sure why Travis CI is stuck with "received" status but once it's started this should pass tests on all versions. Thanks

@smaeda-ks
Copy link
Collaborator Author

@smaeda-ks
Copy link
Collaborator Author

Also, since we're not really using Coveralls, can just remove it from test_helper.rb:

- SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
+ SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter]

lemurheavy/coveralls-ruby#161

@smaeda-ks
Copy link
Collaborator Author

No activities for code review/approval for more than a year. Closing this PR.

@smaeda-ks smaeda-ks closed this Feb 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2022
@andypiper
Copy link
Contributor

@smaeda-ks review is happening now - thank you so much for this. Re-opening.

@andypiper andypiper reopened this Feb 3, 2022
@smaeda-ks
Copy link
Collaborator Author

ok, then I'll have to revisit and make sure this works on more recent Ruby versions. With that said, this PR is not ready for an immediate review anyhow.

@smaeda-ks smaeda-ks closed this Apr 16, 2022
@smaeda-ks smaeda-ks reopened this Apr 16, 2022
@smaeda-ks
Copy link
Collaborator Author

Hi @andypiper, this PR should be ready for merging. Added a few comments due to #173 but should be all set.

Could you please merge this so we can release 0.9.7? Thanks

@smaeda-ks smaeda-ks changed the title 0.9.7 candidate 0.9.7 May 2, 2022
@smaeda-ks smaeda-ks merged commit 3d8a490 into twitter:master Apr 26, 2023
@smaeda-ks smaeda-ks deleted the develop/2020-jan-patch1 branch April 26, 2023 07:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants