Sha256: ffbd9c9cfcce972b4c1b5519e95c62f9b1b7b592026f58cc2ca70bcde13b50c8

Contents?: true

Size: 1.13 KB

Versions: 13

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

require 'active_support'
require 'active_support/concern'
require 'active_support/configurable'
require 'active_support/cache'
require 'active_support/core_ext/hash'
require 'active_support/time'
require 'active_support/time_with_zone'
require 'retries'

require 'factory_bot'
require 'factory_bot/instrumentation/configuration'
require 'factory_bot/instrumentation/engine'

module FactoryBot
  # The top level namespace for the factory_bot_instrumentation gem.
  module Instrumentation
    class << self
      attr_writer :configuration
    end

    # Retrieve the current configuration object.
    #
    # @return [Configuration]
    def self.configuration
      @configuration ||= Configuration.new
    end

    # Configure the concern by providing a block which takes
    # care of this task. Example:
    #
    #   FactoryBot::Instrumentation.configure do |conf|
    #     # conf.xyz = [..]
    #   end
    def self.configure
      yield(configuration)
    end

    # Reset the current configuration with the default one.
    def self.reset_configuration!
      self.configuration = Configuration.new
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
factory_bot_instrumentation-1.2.4 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.2.3 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.2.2 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.2.1 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.2.0 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.1.5 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.1.4 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.1.3 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.1.2 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.1.1 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.1.0 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.0.2 lib/factory_bot_instrumentation.rb
factory_bot_instrumentation-1.0.1 lib/factory_bot_instrumentation.rb