I am wondering if anyone knows of a ruby version of Google's example python code (xoauth.py) to generate consumer oauth tokens? Preferably something that will connect well with gmail_xoauth or gMail for Ruby.
I've searched around a good amount and found some similar Stackoverflow questions in the past which don't give a clear enough answer unfortunately (eg: How to implement Gmail IMAP with Omniauth, Rails app, gmail gem, xoauth: How to grant access to a specific application?, How do I connect to Gmail's IMAP server using oauth in Rails3?)
Thanks!