HTK for Ruby
A set of convenience utils for Ruby. A loosely inspired, not-quite-close-to-feature parity port of pyhtk-lite.
Features
- Debug via Slack using
::Htk::Utils.slack_debug('some debugging message'). The best ofprintlndebugging, without the inconvenience of visually fishing for one message out of thousands of log lines.
How to Use This Awesome?
- Clone this repository into a directory named
htk(preferred) orhtk_lite
SSH:git clone [email protected]:hacktoolkit/htk-rb.git htk
HTTPS:git clone https://github.com/hacktoolkit/htk-rb.git - (Optional) Create a symlink to
htkinside of your app'slib/directory. - Create
local_settings.rband add your Slack incoming webhook URL toSLACK_WEBHOOK_URL. - In your code, simply do:
::Htk::Utils.slack_debug('This is seriously awesome!') ::Htk::Utils.slack_debug('Yeah, no kidding.') - Check your Slack to verify that the message was posted. If not, perhaps your token was wrong, or the Slack integration was disabled.

(Alternative link to screenshot above: https://cl.ly/436cfb4383a2) - Profit!
Tips on Location of HTK Module
- You can place it outside of your app directory tree, and then symlink it inside.
- To not be nagged by the presence of the
htkdirectory whenever you dogit status, addhtkto your.git/info/excludefile (like.gitignore, but only in your local repository, not checked in).
Installation
Add this line to your application's Gemfile:
gem 'htk'
And then execute:
$ bundle
Or install it yourself as:
$ gem install htk
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( https://github.com/hacktoolkit/htk-rb/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Authors and Maintainers
License
MIT. See LICENSE.md