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

Rubystats gem causes name conflict that won't allow Rails application to start properly #706

Open
tferrerm opened this issue Mar 27, 2023 · 1 comment
Assignees

Comments

@tferrerm
Copy link

tferrerm commented Mar 27, 2023

Describe the bug
I'm opening this issue here because the rubystats gem has no clear way of reporting issues :(
The gem rubystats causes an error that completely breaks my particular Rails application because it has a module named Beta.

This is the error:

Failure/Error: module Beta

     TypeError:
       Beta is not a module
       some-directory/vendor/bundle/ruby/3.2.0/gems/rubystats-0.3.0/lib/rubystats.rb:37: previous definition of Beta was here

To Reproduce
Create a Rails application with a module named Beta and add split >= 4.0 to the Gemfile.

Expected behavior
The application should work just fine; a subdependency shouldn't break the entire application, which worked just fine using split == 3.4.1.

Additional context
As a workaround, version 3.4.1 of this gem can be used.

@andrehjr
Copy link
Member

Thanks for opening this issue. We only use rubystats for the beta distribution math 🤔 we changed the older gem because of license issues...

But thinking again, maybe we can just bring the calculation over here or use another gem that implements. I'll dig into this.

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

2 participants