-
Notifications
You must be signed in to change notification settings - Fork 298
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
0.9.7 #161
Conversation
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.
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 |
Also, since we're not really using Coveralls, can just remove it from - SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
+ SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter] |
No activities for code review/approval for more than a year. Closing this PR. |
@smaeda-ks review is happening now - thank you so much for this. Re-opening. |
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. |
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 |
This PR includes:
https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/
--no-ssl
option as all endpoints are now forced to use TLS anyway-v
option to include Ruby runtime version-d
option twurl posting tweet errors with '&' escape #157--raw-data
option behaviorBreaking Changes
impact:
low
changing
--raw-data
option behaviorAlthough the description says
Sends the specified data as it is...
it's actually parsing input data usingCGI.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 thecontent-type
request header using-A
option. For backword-compatibility, we still allow-d
option to send JSON data as long ascontent-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.