seizmo/kindle-the-economist — pull request #1 by mdp (2011-11-25 21:39:21+00:00)
Title: Fix path, add gem dependency to Gemfile, update executable

This is some general cleanup after I ran into some issues trying to run 'kte'. I've separated them by commit, so you can pick and choose what changes you want to take.

* On my Mac, the relative paths seemed to be an issue, so I fixed them to be relative to the current file, not the path from execution. This should allow kte to be run from any location.

* Added an executable flag to 'kte.sh' for POSIX filesystems. Also fixed the issue of windows newlines causing the #! execution to fail.

* Moved kte.sh to kte.rb and had it require lib/kte.rb to start the process rather than relying on shell. This lets you run the executable from the command line, but also allows you to call it direct with 'ruby bin/kte.rb', letting you to specify the version of ruby you want to use.

* Added a .gitignore file to the project to keep accidental checkins of config.yml/tmp/issues at bay.

* Added 'psych' to the Gemfile, as it seems to be required.