$ rbenv versions
=> * 3.4.4 (set by /home/me/dev/protobuf/.ruby-version)
3.5.0-preview1
$ git clone git@github.com:ruby-protobuf/protobuf.git
$ cd protobuf
$ bundle install
$ bundle exec rake
=> rake aborted!
NameError: undefined method '=~' for class 'Pry::Code' (NameError)
Looks like this was fixed in Pry 0.14.2, but in the Gemfile Pry is pessimistically locked to 0.13.
Changing the Gemfile to read as follows for recent Rubies got the tests running.
gem 'pry', '~> 0.15.0'
gem 'pry-byebug', '~> 3.11.0'
Also, FWIW there was a deprecation warning re ostruct having been removed when using Ruby 3.5.0-preview1.
Looks like this was fixed in Pry 0.14.2, but in the
GemfilePry is pessimistically locked to 0.13.Changing the Gemfile to read as follows for recent Rubies got the tests running.
Also, FWIW there was a deprecation warning re
ostructhaving been removed when using Ruby 3.5.0-preview1.