/usr/local/bundle/gems/activesupport-7.1.1/lib/active_support/core_ext/array/conversions.rb:108:in `<class:Array>': undefined method `deprecator' for ActiveSupport:Module (NoMethodError)
deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator
^^^^^^^^^^^
Did you mean? deprecate_constant
from /usr/local/bundle/gems/activesupport-7.1.1/lib/active_support/core_ext/array/conversions.rb:8:in `<top (required)>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/bundle/gems/activesupport-7.1.1/lib/active_support/duration.rb:3:in `<top (required)>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/bundle/gems/activesupport-7.1.1/lib/active_support/core_ext/time/calculations.rb:3:in `<top (required)>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/bundle/gems/activesupport-7.1.1/lib/active_support/core_ext/time.rb:4:in `<top (required)>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/bundle/gems/activesupport-7.1.1/lib/active_support/time.rb:12:in `<top (required)>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/bundle/gems/clockwork-2.0.4/lib/clockwork.rb:2:in `<top (required)>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/bundle/gems/clockwork-2.0.4/bin/clockwork:5:in `<top (required)>'
from /usr/local/bundle/bin/clockwork:25:in `load'
from /usr/local/bundle/bin/clockwork:25:in `<main>'
An error is raised when trying to run the clockwork binary (from gem version 2.0.0) with the Rails 7.1.1 environment.
My understanding is that this is due to a change between Rails 7.0.8 and 7.1.0, as detailed here.
lib/clock.rb
Running
clockwork lib/clock.rb
results in: