Issue with Clockwork to run scheduled sidekiq jobs.

I been using clockwork to schedule sidekiq background jobs, but now I’m having an issue when running Clockwork clock.rb. This is the error I’m getting:

$ clockwork clock.rb

/Users/lurraca/.rvm/gems/ `method_missing': undefined method `public_instance_methods' for 604800:Fixnum (NoMethodError)

from /Users/lurraca/.rvm/gems/ `block in register'

from /Users/lurraca/.rvm/gems/ `map'

from /Users/lurraca/.rvm/gems/ `register'

from /Users/lurraca/.rvm/gems/ `block (2 levels) in delegate'

from /Users/lurraca/.rvm/gems/ `every'

from /Users/lurraca/Desktop/projects/pixelpt/ `<top (required)>'

from /Users/lurraca/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'

from /Users/lurraca/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'

from /Users/lurraca/.rvm/gems/ `<top (required)>'

from /Users/lurraca/.rvm/gems/ `load'

from /Users/lurraca/.rvm/gems/ `<main>'

I find it weird that is mentioning sinatra (some conflict between rails and sinatra?). Here'a gist with my clock.rb [](

Sinatra is part of the development dependencies for Sidekiq. It's what
it uses to show a web interface to watch threads and such.

The issue, however, seems to be in activesupport and Fixnum, which seems
quite odd.