davetron5000/gli — Issue #53: Load path problem
Author: btedev
Created: 2011-10-26 16:49:00+00:00
State: open

I installed gli to follow along with David Copeland's "Command-Line Apps" book. The example fails with "no such file to load -- todo_version.rb". It works when I change line 4 of bin/todo to...

```ruby
require File.expand_path(File.join(File.dirname(__FILE__),'/../lib/todo_version.rb'))
```

I verified this behavior on ruby 1.9.2p290 and 1.8.7. I also cloned the repo and did a hard reset to Oct. 5, "updated dep on simplecov", before the load path change and it worked without modification.

Thanks for the great library. I wanted to share in case this is useful.