Since the gmail_xoauth has support for 2 legged authentication I believe the gmail gem should support it too :)
I couldn't think of way to write actual integration tests but I added some mocked ones and have already tested it on live production code and it seems to be working ok.
Review it and let me know if you have any objections / ideas / etc...
Exception handling was causing a new exception (irony!).
Cleaning trailing whitespaces.
Support for 2Leg OAuth (aka for Google Apps Marketplace integration).
Ignoring IntelliJ/RubyMine files.
Newline at the end of file.
Ignoring rvmrc file.
And SMTP support for 2 legged OAuth.
Example added in README for 2 legged OAuth.
Whitespace cleanups in README.
stop resetting the mailbox when it is the active one already
Fix gemspec and Rakefile for 1.9 build compatibility.
Removing ore-core from dependencies and using plain Bundler instead.
Sorry, i can't accept that bulk of whitespace changes etc... The main idea of patches is to not mix the changes, if you have something important there please send it in a separate pull request. Thx
This issue was moved to gmailgem/gmail#35