klappy/xsl-filter — pull request #1 by thegillis (2014-12-18 16:45:00+00:00)
Title: Added the ability to run the script directly

At least for testing for now it was useful for me to wrap the test and filter methods so that they can be accessed from the command line. There is a check to verify it is not being included from another script.

* No parameters will print the usage
* One parameter will use the "test" method on the supplied file
* Two parameters, input file and output file will run the "filter" and "save" functions

Also fixed a a minor issue with the require rest client gem line. This was just to get the script to run. If this is the wrong require line or the wrong gem feel free to replace.