-
Notifications
You must be signed in to change notification settings - Fork 473
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
Remove unused kconv require #533
Conversation
The CI seems to reveal that mechanize doesn't seem to use the kconv library itself, but ntlm-http 0.1.1 does:
That seems a pretty old gem, and I can't find the source repository easily. The source from the unpacked gem looks like: def encode_utf16le(str)
swap16(Kconv.kconv(str, Kconv::UTF16, Kconv::ASCII))
end
def swap16(str)
str.unpack("v*").pack("n*")
end That might maybe be simplified by using On the mechanize side, it looks like the mechanize/lib/mechanize/http/agent.rb Line 781 in b959fb1
Which would avoid requiring both ntlm-http and kconv eagerly. What do the But at this point I of course realize Ruby implementations should just support |
@eregon https://rubygems.org/gems/ntlm-http the last version (and only one) was released almost 10 years ago, and it seems it won't be fixed. Alternatively, |
Related: #565 |
8ec71cc
to
4dd56a3
Compare
I've rebased this off |
Possibly related: #574 removed the dependency on |
4dd56a3
to
1b1b227
Compare
@flavorjones it looks good! :) |
Will be in the next release, v2.8.0 |
It seems to be
require 'kconv'
(Kanji converter in the standard Ruby libraries) is not used anywhere at all.This found in truffle-ruby which hasn't been
kconv
yet in this issue oracle/truffleruby#1439This thing was introduced in this commit 5c8e802