Sha256: ec235424159ff3f6b0b39e69943e2e0fa02a8190eb7cc01e1552c6e09766b11d

Contents?: true

Size: 622 Bytes

Versions: 5

Compression:

Stored size: 622 Bytes

Contents

require "zeitwerk"
require_relative "avo/version"
require_relative "avo/engine" if defined?(Rails)

loader = Zeitwerk::Loader.for_gem
loader.setup

module Avo
  ROOT_PATH = Pathname.new(File.join(__dir__, ".."))
  IN_DEVELOPMENT = ENV["AVO_IN_DEVELOPMENT"] == "1"
  PACKED = !IN_DEVELOPMENT

  class LicenseVerificationTemperedError < StandardError; end

  class LicenseInvalidError < StandardError; end

  class << self
    def webpacker
      @webpacker ||= ::Webpacker::Instance.new(
        root_path: ROOT_PATH,
        config_path: ROOT_PATH.join("config/webpacker.yml")
      )
    end
  end
end

loader.eager_load

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
avo-1.2.10 lib/avo.rb
avo-1.2.9 lib/avo.rb
avo-1.2.8 lib/avo.rb
avo-1.2.7 lib/avo.rb
avo-1.2.6 lib/avo.rb