taskjuggler/TaskJuggler — Issue #42: -o and --output broken with Ruby 1.8
Author: andras
Created: 2012-01-31 12:31:29+00:00
State: open

Hello,

it appears to me that with taskjuggler 3.1.0, installed on a Debian
"testing" distribution (wheezy) using gem for ruby1.8.7, the -o and
--output options don't work. It also appears that this is due to the
use of Dir::exists?, which (I guess) was introduced in Ruby 1.9 and
isn't available in Ruby 1.8.

Since Debian currently doesn't ship a full Ruby 1.9 environment other
than 1.9.1, I'd appreciate if this issue could be fixed.

Cheers,

András

Here is the output:

# tj3 -o /tmp/tjp a.tjp
TaskJuggler v3.1.0 - A Project Management Software

Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012
by Chris Schlaeger

This program is free software; you can redistribute it and/or modify it under
the terms of version 2 of the GNU General Public License as published by the
Free Software Foundation.

ERROR: Ups, you have triggered a bug in TaskJuggler!
undefined method `exists?' for Dir:Class
/var/lib/gems/1.8/gems/taskjuggler-3.1.0/bin/../lib/taskjuggler/apps/Tj3.rb:140:in `appMain'
/var/lib/gems/1.8/gems/taskjuggler-3.1.0/bin/../lib/taskjuggler/Tj3AppBase.rb:135:in `main'
/var/lib/gems/1.8/gems/taskjuggler-3.1.0/bin/../lib/tj3.rb:16
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/lib/gems/1.8/gems/taskjuggler-3.1.0/bin/tj3:4
/usr/local/bin/tj3:19:in `load'
/usr/local/bin/tj3:19Please see the user manual on how to get this bug fixed!