Skip to content
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

Ruby 3.1 no longer includes prime in the stdlib #43

Open
rdlugosz opened this issue Jan 17, 2022 · 0 comments
Open

Ruby 3.1 no longer includes prime in the stdlib #43

rdlugosz opened this issue Jan 17, 2022 · 0 comments

Comments

@rdlugosz
Copy link

rdlugosz commented Jan 17, 2022

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

I believe the fix is straightforward: include prime 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 distribution gem can add prime 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 statsample gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant