I've never tried it, but you could try this:
https://github.com/makimoto/romaji
"Romaji" is basically the name for system the Japanese themselves use to write in Roman/Latin characters. I am not certain if transliterations targetted at romaji for Japanese speakers will be what you need if you are targetting non-Japanese speakers, but it seems like it might be good.
So you could try romaji
in your google searching, that's what I did. Since ruby, of course, originated in Japan, I figured there'd be something around for it.