Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Puma/Sinatra app fails to start: classname is not a class #3787
Rubunius seems to think that a class of mine is not a class, at least that is how I interpret the stacktrace. The class in question is this, which
I expected my sinatra application to be started
This stacktrace of a TypeError.
My distribution is funtoo, a fork of gentoo.
@onli can you share your new version? If you just switched from
As for your suggestion, it's better to organize one's code so that it doesn't conflict with other's, and this is a perfect example.
The issue here is that Benchmark is provided by the stdlib and Rubinius is currently preferring the stdlib over
I'll revisit the load order resolution shortly. I do think @jc00ke has good advice about properly namespacing your own app's classes and not assuming that the global namespace under Object won't have a conflict. But in this case, I think fixing the load order resolution will be better overall, but it does impose an extra cost for resolving stdlib files.