se3000/ruby-eth

Support for ruby 3?

rwehresmann opened this issue · 9 comments

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

I have the same problem.

The problem is this dependency: https://github.com/se3000/ruby-eth/blob/develop/eth.gemspec#L22

digest-sha3-patched is requiring ruby ~> 2.2.

I've modified the dependency, then it works, considering this change:

#47 (comment)

Thanks @bleedr and @rwehresmann. Between the two of you I got the package running on ruby3.

  1. https://github.com/sydneyitguy/digest-sha3-ruby/tree/patch-1
    gem 'digest-sha3-patched', github: 'sydneyitguy/digest-sha3-ruby', ref: '517f1941bd6be6a28f8cc16e3dd72e4171fec6fa'
    gem 'eth'
    
  2. 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
    

Any chance we could merge this in?

q9f commented

@se3000 🥺

q9f commented

@se3000 I'm happy to step up as co-maintainer, I just don't know the best way to reach you.

https://twitter.com/q9fmz/status/1443586096705593352