intridea/omniauth-github — pull request #19 by cavalle (2012-11-02 20:26:12+00:00)
Title: Only if the user scope allows access to emails

Currently, the only scope that grants access to emails is the `user` scope. Github docs seems to suggest this but I confirmed it by testing each scope individually.

This pull request updates the strategy accordingly to this.