From 1113298856d9b6930a11e305cecda894d2c3d9cd Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Fri, 27 Feb 2026 18:46:54 -0500 Subject: [PATCH 1/2] Install ostruct for gem dev/test only Running the test suite without the ostruct dependency triggers the following warning but its not a dependency for the gem, it's only needed in development or test. ``` /Users/j.julio/Projects/clockwork/test/database_events/event_store_test.rb:4: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 4.0.0. ``` Any app installing the clockwork gem should not be pulling ostruct for that matter. --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 70b12cc..27658c2 100644 --- a/Gemfile +++ b/Gemfile @@ -6,3 +6,4 @@ rails_version = ENV.fetch("ACTIVE_SUPPORT_VERSION", "7.0") gem "activesupport", "~> #{rails_version}" gem "minitest", "~> 5.0" +gem "ostruct" From 4741871b340c2ba5b8f7855dce62bc2732719328 Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Fri, 27 Feb 2026 18:48:17 -0500 Subject: [PATCH 2/2] Remove unnecessary dependencies These 3 dependencies were added in this commit https://github.com/Rykian/clockwork/commit/4f0d4a7c0f00fe0f64306a2844326c62c1a56b31#diff-c9a7ef3318660ff5cc0c9a572754eede8729f9b464e163638ff6f0c5366458c3 but they are not necessary for the gem to run. The only one that outputs a warning is ostruct but we only need to install that for gem development and test. An app that has a clockwork dependency should NOT be pulling any of these dependencies. --- clockwork.gemspec | 3 --- 1 file changed, 3 deletions(-) diff --git a/clockwork.gemspec b/clockwork.gemspec index db90de4..bd70a31 100644 --- a/clockwork.gemspec +++ b/clockwork.gemspec @@ -19,9 +19,6 @@ Gem::Specification.new do |s| s.add_dependency(%q) s.add_dependency(%q) - s.add_dependency(%q) - s.add_dependency(%q) - s.add_dependency(%q) s.add_development_dependency "rake" s.add_development_dependency "daemons"