require "zeitwerk" module RSpec module Terraspace class Autoloader class Inflector < Zeitwerk::Inflector def camelize(basename, _abspath) map = { cli: "CLI", rspec: "RSpec", version: "VERSION" } map[basename.to_sym] || super end end class << self def setup loader = Zeitwerk::Loader.new loader.inflector = Inflector.new lib = File.expand_path("../..", __dir__) loader.push_dir(lib) # lib loader.setup end end end end end