Ruby on Rails Friday, June 28, 2013

Luis Urraca <l.urraca@gmail.com> wrote:
> 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/ruby-1.9.3-p194@shop.pr/gems/activesupport-3.2.11/lib/active_support/duration.rb:107:in `method_missing': undefined method `public_instance_methods' for 604800:Fixnum (NoMethodError)
> from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/sinatra-1.4.3/lib/sinatra/base.rb:1903:in `block in register'
> from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/sinatra-1.4.3/lib/sinatra/base.rb:1903:in `map'
> from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/sinatra-1.4.3/lib/sinatra/base.rb:1903:in `register'
> from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/sinatra-1.4.3/lib/sinatra/base.rb:1917:in `block (2 levels) in delegate'
> from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/clockwork-0.5.2/lib/clockwork.rb:173:in `every'
> from /Users/lurraca/Desktop/projects/pixelpt/shop.pr-web.rails/clock.rb:12:in `<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/ruby-1.9.3-p194@shop.pr/gems/clockwork-0.5.2/bin/clockwork:12:in `<top (required)>'
> from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/bin/clockwork:23:in `load'
> from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/bin/clockwork:23:in `<main>'
>
> I find it weird that is mentioning sinatra (some conflict between rails and sinatra?). Here'a gist with my clock.rb https://gist.github.com/lurraca/5872705
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/
> 9360d099-b2c6-4046-a2e9-7a17552433f7%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/51ce4a22.aa2b320a.6ea0.5023%40mx.google.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment