Sha256: fecb170101a0af0af177ed0d05b5f41c922f1053d7b1cc8b58e19d4aee72a401

Contents?: true

Size: 509 Bytes

Versions: 18

Compression:

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

18 entries across 18 versions & 1 rubygems

Version Path
avo-1.2.5 lib/avo.rb
avo-1.2.4 lib/avo.rb
avo-1.2.3 lib/avo.rb
avo-1.3.0.pre.1 lib/avo.rb
avo-1.2.2 lib/avo.rb
avo-1.1.0 lib/avo.rb
avo-1.1.0.pre.1 lib/avo.rb
avo-1.0.5 lib/avo.rb
avo-1.0.4 lib/avo.rb
avo-1.0.2 lib/avo.rb
avo-1.0.1 lib/avo.rb
avo-1.0.0 lib/avo.rb
avo-0.5.0.beta15 lib/avo.rb
avo-0.5.0.beta14 lib/avo.rb
avo-0.5.0.beta13 lib/avo.rb
avo-0.5.0.beta12 lib/avo.rb
avo-0.5.0.beta11 lib/avo.rb
avo-0.5.0.beta10 lib/avo.rb