seanmadsen/back-scratcher — pull request #1 by mjhoy (2012-10-23 23:17:54+00:00)
Title: Create gem

@seanmadsen this does a few things....

The `gemspec` file has all the metadata related to the gem. It also describes gem dependencies (`gli`). There is also now a `Gemfile` for Bundler... Bundler is required for the `Rakefile` though, as it adds some nice rake tasks.

Try out `rake -T` to see. To install the gem locally, it's `rake install`. `rake release` will push up a new version to rubygems.

I also extracted the version into `lib/version.rb`, since both the executable and the gemspec use it for reference.

lastly, I modified `lib/collection.rb` to use `File.expand_path(...)` — I _think_ this solves your problem of the path not being relative to the current directory when you call the scratch command.

try it out!

not sure how familiar you are with git/github, but to grab this branch and check it out locally you can do:

git fetch origin create-gem; git checkout -b create-gem origin/create-gem