From 29b3a37cdac6643235012ef53ca8aa4cf631e315 Mon Sep 17 00:00:00 2001 From: Hermann Mayer Date: Fri, 17 Jan 2025 11:02:02 +0100 Subject: [PATCH] Added the logger dependency. Signed-off-by: Hermann Mayer --- CHANGELOG.md | 2 +- lib/factory_bot/instrumentation.rb | 2 ++ spec/dummy/config/boot.rb | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06cf51b..05d405d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ### next -* TODO: Replace this bullet point with an actual description of a change. +* Added the logger dependency (#28) ### 1.6.0 (12 January 2025) diff --git a/lib/factory_bot/instrumentation.rb b/lib/factory_bot/instrumentation.rb index 82f6441..2cb1804 100644 --- a/lib/factory_bot/instrumentation.rb +++ b/lib/factory_bot/instrumentation.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'zeitwerk' +require 'logger' require 'active_support' require 'active_support/concern' require 'active_support/configurable' diff --git a/spec/dummy/config/boot.rb b/spec/dummy/config/boot.rb index 6d2cba0..9d13d81 100644 --- a/spec/dummy/config/boot.rb +++ b/spec/dummy/config/boot.rb @@ -3,5 +3,6 @@ # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__) +require 'logger' require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)