omniauth-google-oauth2 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/examples/sinatra.rb CHANGED
@@ -9,7 +9,9 @@ require 'omniauth-google-oauth2'
9
9
  use Rack::Session::Cookie
10
10
 
11
11
  use OmniAuth::Builder do
12
- provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET']
12
+ provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], {
13
+ :scope => 'https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.stream.read https://www.googleapis.com/auth/plus.stream.write https://www.googleapis.com/auth/plus.circles.read https://www.googleapis.com/auth/plus.circles.write'
14
+ }
13
15
  end
14
16
 
15
17
  get '/' do
@@ -1,9 +1 @@
1
- require "omniauth"
2
- require "omniauth-google-oauth2/version"
3
- require "omniauth/strategies/google_oauth2"
4
-
5
- module OmniAuth
6
- module Strategies
7
- autoload :GoogleOauth2, 'omniauth/strategies/google_oauth2'
8
- end
9
- end
1
+ require "omniauth/google_oauth2"
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GoogleOauth2
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-google-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Ellithorpe