HTK for Ruby
A set of convenience utils for Ruby. An inspired, 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.
- Debug via writing to local file using
::Htk::Utils.fdebug('some debugging message')) and
::Htk::Utils.fdebug_json(some_object)). Certifiably awesome, fast, and secure.
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).
- C# - https://github.com/hacktoolkit/csharp-htk
- PHP - https://github.com/hacktoolkit/php-htk
- Python (full) - https://github.com/hacktoolkit/python-htk
- Python (lite) - https://github.com/hacktoolkit/python-htk-lite
- Ruby - https://github.com/hacktoolkit/htk-rb
Authors and Maintainers