Giter Site home page Giter Site logo

The Next Version about ruby-gmail HOT 7 CLOSED

dcparker avatar dcparker commented on July 29, 2024
The Next Version

from ruby-gmail.

Comments (7)

gabrielengel avatar gabrielengel commented on July 29, 2024

Hey!

I think we should make it as easy to use as possible and try to remove any kind of redundancy. Also, we can use only the Gmail style search so we don't have to implement many things. What do you think of something like this?

https://gist.github.com/gabrielengel/201e9661b4f92b8f543d

from ruby-gmail.

johnnyshields avatar johnnyshields commented on July 29, 2024

@myobie I'm a user/maintaner of gmailgem/gmail (formerly nu7hatch/gmail which was originally forked from this repo.) We'd be very keen to join efforts on the gmailgem fork as our goals are the same, i.e. more usable API, better testing, etc.

from ruby-gmail.

myobie avatar myobie commented on July 29, 2024

@johnnyshields awesome. I'd like to get some tests started so we can all get it going soon. I've added you as a collaborator.

from ruby-gmail.

myobie avatar myobie commented on July 29, 2024

@gabrielengel regarding your gist I do have this feedback:

I don't think we need to manage any state, instead we can just return objects from every call. An example of what this would look like from your gist would be:

Gmail.new(username, password) do |gmail|
  gmail.in('inbox').count # => 100

  gmail.search('is:unread').count # => 60

  gmail.search('is:read').count # => 40

  gmail.search('before:2010-02-20 after:2010-03-20')
  gmail.search('on:2010-04-15')
  gmail.search('from:[email protected]')
  gmail.search('to:[email protected]')
  gmail.search('is:read from:[email protected] "you are a great employee"')

  gmail.peek do |peek|
    peek.in('Urgent').count
  end
end

from ruby-gmail.

johnnyshields avatar johnnyshields commented on July 29, 2024

@myobie, I've added you to the gmailgem organization. Come over to our side--we have an awesome team and a reliable approach to test the gem on Travis CI with specs now green. Your suggested improvements are most welcome.

from ruby-gmail.

simo2409 avatar simo2409 commented on July 29, 2024

I think it would be useful in the new version to abandon username/password auth and using Gmail's API.
Until you use ruby (and ruby-gmail) on your desktop it's the same but using them on a webapp it drives to

Please log in via your web browser: http://support.google.com/mail/accounts/bin/answer.py?answer=78754 (Failure)

from ruby-gmail.

myobie avatar myobie commented on July 29, 2024

I'm closing this since it's so old.

from ruby-gmail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.