Sha256: 8b8a34c8c90155def845250c1bae20a6d0f9a9aca54db3bc20cb340b4274833e
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
# frozen_string_literal: true require "zeitwerk" require "dry/core/extensions" require "dry/core/constants" require "dry/monitor/version" module Dry module Monitor extend Dry::Core::Extensions include Dry::Core::Constants register_extension(:rack) do require "rack/utils" Dry::Monitor::Rack::Logger end register_extension(:sql) do Dry::Monitor::SQL::Logger end def self.loader @loader ||= Zeitwerk::Loader.new.tap do |loader| root = File.expand_path("..", __dir__) loader.tag = "dry-monitor" loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry-monitor.rb") loader.push_dir(root) loader.ignore("#{root}/dry-monitor.rb", "#{root}/dry/monitor/version.rb") loader.inflector.inflect "sql" => "SQL" end end end end Dry::Monitor.loader.setup
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-monitor-0.6.2 | lib/dry/monitor.rb |