Sha256: 45438d59b3ac66cafe2b687c61da98ccc3cf42eb5a22c7fb84e93a6917bc724c

Contents?: true

Size: 1.46 KB

Versions: 4

Compression:

Stored size: 1.46 KB

Contents

# External libraries
require "active_support/version"
require "version_gem"

# This library's version
require_relative "activesupport/tagged_logging/version"

# Loads supporting features from Rails v5, 6, 7, or 8
require "active_support/core_ext/module/delegation"
require "active_support/core_ext/object/blank"

# Require the extracted-from-Rails-8 ActiveSupport::BroadcastLogger
# It will handle properly loading the extracted-from-Rails-8 ActiveSupport::Logger
require "activesupport-broadcast_logger"

# !!ORDER MATTERS!!
#
# Extracted from:
# https://github.com/rails/rails/blob/592a52b9370df79787d74b1bac9b201891c45054/activesupport/lib/active_support/tagged_logging.rb
# which at the time was the latest version of the file on `main` branch.
# Compare SHA with latest commit to the same file on `main` to check for changes:
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/tagged_logging.rb
#
# All this reloading might print warnings about redefined methods, and this is expected.
# Technically it might even break things, but we don't expect it to, and YMMV.
require_relative "activesupport/tagged_logging"

# If you want to use the fix in the PR, run:
#   Activesupport::FixPr53105.init
# See: https://github.com/rails/rails/pull/53105/files
require_relative "activesupport/fix_pr_53105"

# Namespace for the Version of this gem (and nothing else)
module Activesupport
end

Activesupport::TaggedLogging::Version.class_eval do
  extend VersionGem::Basic
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activesupport-tagged_logging-2.0.3 lib/activesupport-tagged_logging.rb
activesupport-tagged_logging-2.0.2 lib/activesupport-tagged_logging.rb
activesupport-tagged_logging-2.0.1 lib/activesupport-tagged_logging.rb
activesupport-tagged_logging-2.0.0 lib/activesupport-tagged_logging.rb