@Sasha @Alda If you check the library's github page, the author says it's basically unmaintained because there are better alternatives now.
The Javascript one I linked to on https://github.com/tootsuite/mastodon/issues/2704 looks promising. The code doesn't look too complex, so maybe someone could port it to Ruby for use in Mastodon.