Sha256: 8396fdbf9eaf3a0adbf00f58fe75a96cb127392fb734faa2c69e91b7ef6bc51a

Contents?: true

Size: 518 Bytes

Versions: 10

Compression:

Stored size: 518 Bytes

Contents

require "zeitwerk"

module AwsLogs
  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__)}/aws-logs.rb")
        loader.setup
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
aws-logs-0.5.0 lib/aws_logs/autoloader.rb
aws-logs-0.4.1 lib/aws_logs/autoloader.rb
aws-logs-0.4.0 lib/aws_logs/autoloader.rb
aws-logs-0.3.4 lib/aws_logs/autoloader.rb
aws-logs-0.3.3 lib/aws_logs/autoloader.rb
aws-logs-0.3.2 lib/aws_logs/autoloader.rb
aws-logs-0.3.1 lib/aws_logs/autoloader.rb
aws-logs-0.3.0 lib/aws_logs/autoloader.rb
aws-logs-0.2.0 lib/aws_logs/autoloader.rb
aws-logs-0.1.0 lib/aws_logs/autoloader.rb