Sha256: 0a3b23901b5ad3c4accc3459dcaf886ab17f507ba545b9df4e30f1cc738edea6

Contents?: true

Size: 672 Bytes

Versions: 11

Compression:

Stored size: 672 Bytes

Contents

require "zeitwerk"

module S3Secure
  class Autoloader
    class Inflector < Zeitwerk::Inflector
      def camelize(basename, _abspath)
        map = {
          cli: "CLI",
          force_ssl_only_access: "ForceSSLOnlyAccess",
          force_ssl_only_access_remove: "ForceSSLOnlyAccessRemove",
          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__)}/s3-secure.rb")
        loader.setup
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
s3-secure-0.7.0 lib/s3_secure/autoloader.rb
s3-secure-0.6.1 lib/s3_secure/autoloader.rb
s3-secure-0.6.0 lib/s3_secure/autoloader.rb
s3-secure-0.5.1 lib/s3_secure/autoloader.rb
s3-secure-0.5.0 lib/s3_secure/autoloader.rb
s3-secure-0.4.2 lib/s3_secure/autoloader.rb
s3-secure-0.4.1 lib/s3_secure/autoloader.rb
s3-secure-0.4.0 lib/s3_secure/autoloader.rb
s3-secure-0.3.0 lib/s3_secure/autoloader.rb
s3-secure-0.2.0 lib/s3_secure/autoloader.rb
s3-secure-0.1.0 lib/s3_secure/autoloader.rb