jhk753 / gmail-ruby-api

Ruby interface for Gmail API
Other
26 stars 20 forks source link

support for google-api-client version 0.9 #32

Open vinchi777 opened 8 years ago

Carpela commented 7 years ago

Issue here is that it's a breaking change. will need to update all the auth to work completely differently.

Carpela commented 7 years ago

Is anyone else interested in this? I'm looking at trying to merge this gem with the auth/session setup from google-drive-ruby gem (which seems pretty popular, so can't be too bad). That would bring it up to 0.9, but might require a fair amount of work that will basically completely break any compatibility with this gem. I think it might be worth doing and I might need to do something along those lines anyway.

Carpela commented 7 years ago

Guys, I've got a basically functioning version of this knocked together (could probably do with a serious bit of test backup). Not sure how we want to proceed since the changes I've made will completely break compatibility between the two different versions of the google api gem (I think this is unavoidable). In theory, we could preserve support for both versions by modifying the Gmail.request method to detect which version is there. I'm also struggling with the creation/conversion of the Message object...etc. I'm currently converting to json and then converting back but it's ugly. Would be great if the original writer could give me a shout to see whether there's a more sensible way of doing it. Anyway. Happy to discuss.

Carpela commented 6 years ago

Just an update to this. Have a working API client v0.9 version and a working API client v0.10+ version.