Support for ruby 3?
rwehresmann opened this issue · 9 comments
rwehresmann commented
I'm using ruby 3.0.1, and gem install eth
is resulting in:
ERROR: While executing gem ... (NoMethodError)
undefined method `request' for nil:NilClass
giannadakis commented
I have the same problem.
rwehresmann commented
The problem is this dependency: https://github.com/se3000/ruby-eth/blob/develop/eth.gemspec#L22
digest-sha3-patched is requiring ruby ~> 2.2
.
bleedr commented
I've modified the dependency, then it works, considering this change:
nitsujri commented
Thanks @bleedr and @rwehresmann. Between the two of you I got the package running on ruby3.
- https://github.com/sydneyitguy/digest-sha3-ruby/tree/patch-1
gem 'digest-sha3-patched', github: 'sydneyitguy/digest-sha3-ruby', ref: '517f1941bd6be6a28f8cc16e3dd72e4171fec6fa' gem 'eth'
- From same thread, further down: #47 (comment)
sudo mkdir /usr/local/lib/ sudo ln -s $(brew --prefix openssl)/lib/libcrypto.dylib /usr/local/lib/ sudo ln -s $(brew --prefix openssl)/lib/libssl.dylib /usr/local/lib
briansoule commented
Any chance we could merge this in?
q9f commented
Edit: I published https://github.com/q9f/keccak.rb as keccak
q9f commented
published https://github.com/q9f/ruby-eth/releases/tag/v0.4.14
as eth-patched https://rubygems.org/gems/eth-patched