Sha256: f6236a0643e750f82e5fdbf92e694d9200461c3f8979acd4fef4b3d0762b1191

Contents?: true

Size: 883 Bytes

Versions: 76

Compression:

Stored size: 883 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

    def manifester
      @manifester ||= ::Manifester::Instance.new(
        root_path: ROOT_PATH,
        public_output_dir: "avo-packs",
        cache_manifest: Rails.env.production?,
        fallback_to_webpacker: -> { Avo::IN_DEVELOPMENT }
      )
    end
  end
end

loader.eager_load

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
avo-1.19.1.pre.3 lib/avo.rb
avo-1.19.1.pre.2 lib/avo.rb
avo-1.19.1.pre.1 lib/avo.rb
avo-1.19.0 lib/avo.rb
avo-1.18.2 lib/avo.rb
avo-1.18.2.pre.0 lib/avo.rb
avo-1.18.1 lib/avo.rb
avo-1.18.0 lib/avo.rb
avo-1.18.0.pre.3 lib/avo.rb
avo-1.18.0.pre.2 lib/avo.rb
avo-1.18.0.pre.1 lib/avo.rb
avo-1.17.1 lib/avo.rb
avo-1.17.0 lib/avo.rb
avo-1.16.4 lib/avo.rb
avo-1.16.3 lib/avo.rb
avo-1.16.2 lib/avo.rb
avo-1.16.1 lib/avo.rb
avo-1.16.0 lib/avo.rb
avo-1.15.0 lib/avo.rb
avo-1.15.0.pre.1 lib/avo.rb