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

Warning on Ruby 3.3 #241

Closed
frederikspang opened this issue Dec 29, 2023 · 5 comments · Fixed by #242
Closed

Warning on Ruby 3.3 #241

frederikspang opened this issue Dec 29, 2023 · 5 comments · Fixed by #242

Comments

@frederikspang
Copy link
Contributor

Running on Ruby 3.3, the following error is emitted from httpi gem.
We should add this to gemspec, and release a version as soon as possible, to ensure as many people as possible, upgrade to this new version before Ruby 3.4.0 release (estimated for Dec. 25th 2024).

/gems/httpi-3.0.1/lib/httpi/adapter/net_http.rb:5: warning: kconv is found in nkf, which will no longer be part of the default gems since Ruby 3.4.0. Add nkf to your Gemfile or gemspec. Also contact author of httpi-3.0.1 to add nkf into its gemspec.
@olleolleolle
Copy link
Contributor

Would you mind making a PR adding the gem to the gemspec? No trouble if not.

@frederikspang
Copy link
Contributor Author

I can! I’ll try either later today, or tomorrow.

@frederikspang
Copy link
Contributor Author

@olleolleolle I have created a PR with nkf, however, my local specs are failing, due to OpenSSL error. Maybe because I'm running with OpenSSL 3.2.0?

Furthermore, I am actually unable to find the usage of any nkf module - in this instance kconv as in the warning.

The question is, do we want to do any effort to validate this, given the potential outcome of #238?

For reference - Failing spec on local PC:

  1) HTTPI::Adapter::HTTPClient supports NTLM authentication
     Failure/Error: respond_with @client.request(method, @request.url, nil, @request.body, @request.headers, &@request.on_body)

     OpenSSL::Digest::DigestError:
       Digest initialization failed: initialization error
     # ./lib/httpi/adapter/httpclient.rb:26:in `request'
     # ./lib/httpi.rb:162:in `request'
     # ./lib/httpi.rb:127:in `get'
     # ./spec/httpi/adapter/httpclient_spec.rb:222:in `block (2 levels) in <top (required)>'

@frederikspang
Copy link
Contributor Author

Found the culprint WinRb/rubyntlm#57

@pcai pcai closed this as completed in #242 Feb 11, 2024
@pcai
Copy link
Member

pcai commented Feb 11, 2024

I pinged that thread in rubyntlm to help, but I merged the contribution in the meanwhile. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants