README.md in omniauth-gplus-1.1.1 vs README.md in omniauth-gplus-1.2.0
- old
+ new
@@ -20,16 +20,38 @@
Rails.application.config.middleware.use OmniAuth::Builder do
provider :gplus, ENV['GPLUS_KEY'], ENV['GPLUS_SECRET']
end
```
-By default the gem uses the `email` scope, but you can get more information with:
+By default the gem uses the `userinfo.email` scope, but you can get more information by using this interface:
``` ruby
-provider :gplus, ENV['GPLUS_KEY'], ENV['GPLUS_SECRET'], scope: 'email, profile'
+provider :gplus, ENV['GPLUS_KEY'], ENV['GPLUS_SECRET'], scope: 'userinfo.email, userinfo.profile'
```
+Here are the different scopes:
+
+ - https://www.googleapis.com/auth/userinfo.email
+ - https://www.googleapis.com/auth/userinfo.profile
+
+To identify the user as "me" in all requests use this scope:
+
+ - https://www.googleapis.com/auth/plus.me
+
+To get all of these AND log the user in:
+
+ - https://www.googleapis.com/auth/plus.login
+
+If you use the `plus.login` scope you can request `visibleactions` in order to allow your app to post App Activities on behalf of your users. To request `visibleactions`, use the following interface:
+
+```ruby
+provider :gplus, ENV['GPLUS_KEY'], ENV['GPLUS_SECRET'], scope: 'plus.login', request_visible_actions: 'AddActivity,BuyActivity'
+```
+
+To see and learn about all of the available App Activity types, visit: https://developers.google.com/+/api/moment-types/
+
+
The information schema looks like this:
``` ruby
info do
{
@@ -111,11 +133,12 @@
* Create a **new branch** using the [Git Flow Standard](http://yakiloo.com/getting-started-git-flow/) conventions
* Commit **often** and **when important**
* **DO NOT CHANGE** ANY OF THESE (without making a new branch for *that* change):
* `*.gemspec`
* `Rakefile`
- * `.rvmrc`
+ * `.ruby-version`
+ * `.ruby-gemset`
* `.gitignore`
* Any part of the git history
* **Write tests** specifically for the changes you've made, if no test exist
* **Push** your feature or hotfix branch to Github.
* Make a **Pull Request**
@@ -123,10 +146,10 @@
Credits
-------
- [Sam Dunne](https://github.com/samdunne), for initial work and bug fixes
-
+
License
-------
Copyright (c) 2013 Kurtis Rainbolt-Greene