Upgrading from 2.1.9, I get these errors trying to create an engine,
after I already initialized an engine:

--
/home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/ruote/
worker.rb:132:in `step': undefined method `utc' for "now":String
(NoMethodError)
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/worker.rb:70:in `run'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/worker.rb:81:in `run_in_thread'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/worker.rb:81:in `initialize'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/worker.rb:81:in `new'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/worker.rb:81:in `run_in_thread'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/engine.rb:55:in `initialize'
--

trying to debug it in the console, my first engine works:

--
Ruote::StorageParticipant.new(engine).size # => 10
--

but when I try to create a second worker, it fails again:

--

ruby-1.8.7-p249 > hs = Ruote::HashStorage.new('s_logger' => ['ruote/
log/test_logger', 'Ruote::TestLogger'])
 => #<Ruote::HashStorage:0xb6edfe34 @mon_waiting_queue=[],
@h={"variables"=>{}, "errors"=>{}, "workitems"=>{}, "msgs"=>{},
"schedules"=>{}, "configurations"=>{"engine"=>{"_rev"=>0,
"put_at"=>"2010-06-15 22:51:02.289941 UTC", "_id"=>"engine",
"type"=>"configurations", "s_logger"=>["ruote/log/test_logger",
"Ruote::TestLogger"]}}, "expressions"=>{}}, @mon_entering_queue=[],
@mon_count=0, @mon_owner=nil>
ruby-1.8.7-p249 > w = Ruote::Worker.new(hs)
NameError: uninitialized constant Rufus::TreeChecker::RubyParser
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus-
treechecker-1.0.3/lib/rufus/treechecker.rb:545:in `parse'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus-
treechecker-1.0.3/lib/rufus/treechecker.rb:345:in `expand_class'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus-
treechecker-1.0.3/lib/rufus/treechecker.rb:411:in `exclude_rebinding'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus-
treechecker-1.0.3/lib/rufus/treechecker.rb:410:in `each'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus-
treechecker-1.0.3/lib/rufus/treechecker.rb:410:in `exclude_rebinding'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/util/treechecker.rb:63:in `initialize'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus-
treechecker-1.0.3/lib/rufus/treechecker.rb:198:in `instance_eval'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus-
treechecker-1.0.3/lib/rufus/treechecker.rb:198:in `add_rules'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus-
treechecker-1.0.3/lib/rufus/treechecker.rb:154:in `initialize'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/util/treechecker.rb:47:in `new'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/util/treechecker.rb:47:in `initialize'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/context.rb:121:in `new'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/context.rb:121:in `add_service'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/context.rb:155:in `initialize_services'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/context.rb:151:in `each'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/context.rb:151:in `initialize_services'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/context.rb:53:in `initialize'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/worker.rb:56:in `new'
        from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/
ruote/worker.rb:56:in `initialize'
        from (irb):3:in `new'
--

I'm still debugging, but if anyone has any guidance, I'd be very
grateful.

Thanks,
Ian

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to