Ruby gem, which you can use as a command-line tool (e.g. from a Bash script) or as a Ruby class.

Did this answer your question?