Sha256: 90d12d311c2b87f59cb20174fe38f6fc098bc94712fd522476c25c7c74442c89

Contents?: true

Size: 540 Bytes

Versions: 10

Compression:

Stored size: 540 Bytes

Contents

require "zeitwerk"

module Jets::Gems
  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
        lib = File.expand_path('../..', __dir__)
        loader.push_dir(lib) # lib
        loader.ignore("#{lib}/serverlessgems.rb")
        loader.setup
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
serverlessgems-0.3.0 lib/jets/gems/autoloader.rb
serverlessgems-0.2.1 lib/jets/gems/autoloader.rb
serverlessgems-0.2.0 lib/jets/gems/autoloader.rb
serverlessgems-0.1.6 lib/jets/gems/autoloader.rb
serverlessgems-0.1.5 lib/jets/gems/autoloader.rb
serverlessgems-0.1.4 lib/jets/gems/autoloader.rb
serverlessgems-0.1.3 lib/jets/gems/autoloader.rb
serverlessgems-0.1.2 lib/jets/gems/autoloader.rb
serverlessgems-0.1.1 lib/jets/gems/autoloader.rb
serverlessgems-0.1.0 lib/jets/gems/autoloader.rb