split icon indicating copy to clipboard operation
split copied to clipboard

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

Open tferrerm opened this issue 2 years ago • 1 comments

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.

tferrerm avatar Mar 27 '23 14:03 tferrerm

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.

andrehjr avatar Mar 28 '23 01:03 andrehjr