I just released GLI version 2 tonight and while it is almost entirely backward compatible with the version used in the book, a few things need to change.
First off, if you are using the versions of gems in the code download’s @Gemfile@ (e.g. via @bundle install@), then you are good and you can stop reading here. Everything’s fine.
IF, you either are using GLI 2, or would like to, here’s what you’ll need to know:
- @exit GLI.run(ARGV)@ no longer works. You’ll need to replace it with @exit run(ARGV)@. This doesn’t work in GLI 1.x
- On page 28 of the ebook, the code snippet there says to use @exit GLI.run(ARGV)@. This won’t work with 2.x, and it would need to be @exit run*ARGV)@ as described above
That’s it. Everything else works.
I’m working on getting a code update that uses GLI 2 available, but I want to let it settle for a bit first. As always, email me, or post issues at GLI’s github page:http://www.github.com/davetron5000/gli