small medium large xlarge

Photo_42_pragsmall
26 Oct 2011, 16:56
Barry Ezell (2 posts)

Thanks for the great book. There may be a bug in GLI that was introduced in an Oct. 5 commit. The first ‘todo’ example fails with

no such file to load – todo_version.rb (LoadError)

I’ve verified this using 1.9.2p290 and 1.8.7 on two machines. When I revert to a pre-Oct. 5 commit of GLI, it works without error. This change to line 4 of bin/todo also patches it:

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

I submitted this as an issue: https://github.com/davetron5000/gli/issues/53

Dmfcb_pragsmall
26 Oct 2011, 18:45
David Copeland (487 posts)

I’ll look into it tonight. GLI had some revs during writing the book and things might be out of date.

Dmfcb_pragsmall
26 Oct 2011, 23:12
David Copeland (487 posts)

OK, I reverted the change in question, closing https://github.com/davetron5000/gli/issues/53

If you @gem update gli@ or otherwise make sure you are using 1.3.5 of GLI, you should be good to go.

You must be logged in to comment