HTK for Ruby
A set of convenience utils for Ruby. A loosely inspired, not-quite-close-to-feature parity port of
- Debug via Slack using
::Htk::Utils.slack_debug('some debugging message'). The best of
printlndebugging, 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
git clone email@example.com:hacktoolkit/htk-rb.git htk
git clone https://github.com/hacktoolkit/htk-rb.git
- (Optional) Create a symlink to
htkinside of your app's
local_settings.rband add your Slack incoming webhook URL to
- 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)
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 do
git status, add
.gitignore, but only in your local repository, not checked in).
Authors and Maintainers