{"push_id":1315403750,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"29965c0b527999d809bf35d56c6fa1560e52307b","before":"6d6c36d26d7d98b97594f8bf0a56507479923946","commits":[{"sha":"29965c0b527999d809bf35d56c6fa1560e52307b","author":{"name":"jimdoescode","email":"b59169c9a59256fbd3673dd54dee69e63e25d998@gmail.com"},"message":"Added better option handling and project path determination.\n\nUsing the [OptionParser](http://ruby-doc.org/stdlib-2.3.1/libdoc/optparse/rdoc/OptionParser.html) library I was able to add better option handling. I don't really like that you have to specify a flag infront of each option but I guess that is kind of a standard. This gave me the ability to add a new option that lets you specify where the blog post file should be written to. That means you don't have to manually move the file into your Jekyll posts folder.\n\nAn added benefit of the new option parsing is that now there is a help option to provide better insight into the commands usages.\n\nAs a part of this change set I also made the project root determination better. The [git library](https://github.com/schacon/ruby-git) I'm using needs to have the project root specified. Previously the command assumed that it always resided in the `.git/hooks` directory and would hop up two directories to get to the project root. That became problematic for dog fooding because I had to copy my changes to the hooks directory anytime I wanted to run the command. I added the ability to specify a command argument for the project directory but decided that making that optional instead would give more versatility. Now the project directory is assumed to be the directory that the command resides in. If a `.git` folder is in that path then the command will hop up until it is on the same level as the `.git` folder which is assumed to be the project root.\n\n{BLOG tags=[jekyll-post-commit, ruby, git]}","distinct":true,"url":"https://api.github.com/repos/jimdoescode/jekyll-commit-blog/commits/29965c0b527999d809bf35d56c6fa1560e52307b"}]}
{"actor":{"display_login":"jimdoescode"}}