Sha256: 23e0da1e0fd571ff8c1346bd4d6e7b2eb2ceb8464084625b39045cbc5b522f3e

Contents?: true

Size: 538 Bytes

Versions: 13

Compression:

Stored size: 538 Bytes

Contents

require "zeitwerk"

module TerraspaceBundler
  class Autoloader
    class Inflector < Zeitwerk::Inflector
      def camelize(basename, _abspath)
        map = { cli: "CLI", version: "VERSION" }
        map[basename.to_sym] || super
      end
    end

    class << self
      def setup
        loader = Zeitwerk::Loader.new
        loader.inflector = Inflector.new
        loader.push_dir(File.dirname(__dir__)) # lib
        loader.ignore("#{File.dirname(__dir__)}/terraspace-bundler.rb")
        loader.setup
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
terraspace-bundler-0.5.0 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.4.4 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.4.3 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.4.2 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.4.1 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.4.0 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.3.4 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.3.3 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.3.2 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.3.1 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.3.0 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.2.0 lib/terraspace_bundler/autoloader.rb
terraspace-bundler-0.1.0 lib/terraspace_bundler/autoloader.rb