SciRuby / statsample

A suite for basic and advanced statistics on Ruby.
https://github.com/sciruby/statsample
BSD 3-Clause "New" or "Revised" License
95 stars 29 forks source link

Ruby 3.1 no longer includes matrix in the stdlib #70

Open rdlugosz opened 2 years ago

rdlugosz commented 2 years ago

As of Ruby 3.1, the matrix gem is no longer distributed as a part of the standard library and must be bundled explicitly.

I believe the fix is straightforward: include matrix in the gemspec file. However, this should probably be tested on a couple of different Ruby versions in order to verify the change doesn't cause problems for older Rubies.

In the meantime, users of the statsample gem can add matrix to their Gemfile and you'll satisfy the missing dependency. For example:

# https://github.com/SciRuby/statsample
gem "distribution"
gem "prime" # No longer in stdlib as of Ruby 3.1

gem "statsample"
gem "matrix" # No longer in stdlib as of Ruby 3.1

Note: similar issue opened on the distribution gem

kojix2 commented 2 years ago

I think SciRuby needs more people with commit rights.