Sha256: 7abd9fbdb3470593b1bdaa0a99e9940d3536beccd5af4b19ae6d253ed0fa1ab5
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
# frozen_string_literal: true require "zeitwerk" require "dry/core/extensions" require "dry/core/constants" 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") 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.1 | lib/dry/monitor.rb |