diff --git a/Gemfile.lock b/Gemfile.lock index 5524ac93..0af025d9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,6 +3,7 @@ PATH specs: factory_bot (6.4.2) activesupport (>= 5.0.0) + observer GEM remote: https://rubygems.org/ @@ -73,6 +74,7 @@ GEM middleware (0.1.0) minitest (5.14.3) multi_test (0.1.2) + observer (0.1.2) parallel (1.22.1) parser (3.1.2.1) ast (~> 2.4.1) diff --git a/factory_bot.gemspec b/factory_bot.gemspec index aedc4f4b..e6123150 100644 --- a/factory_bot.gemspec +++ b/factory_bot.gemspec @@ -27,6 +27,7 @@ Gem::Specification.new do |s| } s.add_dependency("activesupport", ">= 5.0.0") + s.add_dependency("observer") if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.3') s.add_development_dependency("activerecord") s.add_development_dependency("appraisal")