From 3395f1b07622853b305f94222a412d856cbbd644 Mon Sep 17 00:00:00 2001 From: Thibault Lacroux Date: Wed, 18 Feb 2026 16:08:03 +0100 Subject: [PATCH 1/7] fix StringIO calls --- test/manager_test.rb | 3 ++- test/samples/signal_test.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/manager_test.rb b/test/manager_test.rb index 2bb5d79..c63040a 100644 --- a/test/manager_test.rb +++ b/test/manager_test.rb @@ -3,6 +3,7 @@ require 'mocha/minitest' require 'time' require 'active_support/time' +require 'stringio' describe Clockwork::Manager do before do @@ -117,7 +118,7 @@ def assert_wont_run(t) @manager.handler { raise 'boom' } @manager.every(1.minute, 'myjob') - mocked_logger = MiniTest::Mock.new + mocked_logger = Minitest::Mock.new mocked_logger.expect :error, true, [RuntimeError] @manager.configure { |c| c[:logger] = mocked_logger } @manager.tick(Time.now) diff --git a/test/samples/signal_test.rb b/test/samples/signal_test.rb index 98def4d..1a420a0 100644 --- a/test/samples/signal_test.rb +++ b/test/samples/signal_test.rb @@ -1,5 +1,6 @@ require 'clockwork' require 'active_support/time' +require 'stringio' module Clockwork LOGFILE = File.expand_path('../../tmp/signal_test.log', __FILE__) From 676889c4a6b5bc24c9d19f16526558b75d082a5e Mon Sep 17 00:00:00 2001 From: Thibault Lacroux Date: Wed, 18 Feb 2026 16:20:34 +0100 Subject: [PATCH 2/7] fix jruby & activesupport requirement --- clockwork.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/clockwork.gemspec b/clockwork.gemspec index 9f5c420..c0bcee4 100644 --- a/clockwork.gemspec +++ b/clockwork.gemspec @@ -19,6 +19,7 @@ Gem::Specification.new do |s| s.add_dependency(%q) s.add_dependency(%q) + s.add_dependency(%q) s.add_development_dependency "rake" s.add_development_dependency "daemons" From b428d7a2a80522947dc02402b22c49e1a0168a4c Mon Sep 17 00:00:00 2001 From: Thibault Lacroux Date: Wed, 18 Feb 2026 16:22:19 +0100 Subject: [PATCH 3/7] fix bigdecimal on jruby --- clockwork.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/clockwork.gemspec b/clockwork.gemspec index c0bcee4..53a18f1 100644 --- a/clockwork.gemspec +++ b/clockwork.gemspec @@ -20,6 +20,7 @@ Gem::Specification.new do |s| 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" From c5d6ae60c0b988193c1ae1a5517d5e4dad4c5be0 Mon Sep 17 00:00:00 2001 From: Thibault Lacroux Date: Wed, 18 Feb 2026 16:28:41 +0100 Subject: [PATCH 4/7] droping jruby --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6c47383..fb86caa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ "2.7", "3.0", "3.1", "3.2", jruby ] + ruby: [ "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0" ] active_support: [ "6.0", "7.0" ] exclude: - ruby: "3.0" From 289234546d97e1a5d244285dd8acc80bdea3f074 Mon Sep 17 00:00:00 2001 From: Thibault Lacroux Date: Wed, 18 Feb 2026 16:32:19 +0100 Subject: [PATCH 5/7] dropping active_support 6 --- .github/workflows/tests.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fb86caa..1d7a639 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,14 +12,7 @@ jobs: strategy: matrix: ruby: [ "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0" ] - active_support: [ "6.0", "7.0" ] - exclude: - - ruby: "3.0" - active_support: "6.0" - - ruby: "3.1" - active_support: "6.0" - - ruby: "3.2" - active_support: "6.0" + active_support: [ "7.0", "8.0", "8.1" ] name: Ruby ${{ matrix.ruby }} - ActiveSupport ${{ matrix.active_support }} env: ACTIVE_SUPPORT_VERSION: ${{ matrix.active_support }} From 30f79c3dd4d1a6739485bf79fbb8170854b93662 Mon Sep 17 00:00:00 2001 From: Thibault Lacroux Date: Wed, 18 Feb 2026 16:40:02 +0100 Subject: [PATCH 6/7] dropping support of EOL versions --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1d7a639..7f4e42f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0" ] - active_support: [ "7.0", "8.0", "8.1" ] + ruby: [ "3.2", "3.3", "3.4", "4.0" ] + active_support: [ "8.0", "8.1" ] name: Ruby ${{ matrix.ruby }} - ActiveSupport ${{ matrix.active_support }} env: ACTIVE_SUPPORT_VERSION: ${{ matrix.active_support }} From 39c9ba9c6c24c5e16bd5d32657fcd61256cb7574 Mon Sep 17 00:00:00 2001 From: Thibault Lacroux Date: Wed, 18 Feb 2026 16:41:22 +0100 Subject: [PATCH 7/7] add missing ostruct dependecy for ruby 4 --- clockwork.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/clockwork.gemspec b/clockwork.gemspec index 53a18f1..3b46b7f 100644 --- a/clockwork.gemspec +++ b/clockwork.gemspec @@ -21,6 +21,7 @@ Gem::Specification.new do |s| 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"