Introducing anonymous_loader
AnonymousLoader evaluates Ruby files inside a fresh anonymous module. Constants declared by the loaded code stay under that returned namespace, reducing collisions with the host process. It can resolve files through RubyGems metadata and fall back to the load path for environments such as standalone Bundler.
Read the upstream README for installation and usage, or browse the project repository.