sinatra_auth_github 0.14.0 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Sinatra
2
2
  module Auth
3
3
  module Github
4
- VERSION = "0.14.0"
4
+ VERSION = "0.14.1"
5
5
  end
6
6
  end
7
7
  end
@@ -153,10 +153,12 @@ module Sinatra
153
153
 
154
154
  manager.failure_app = app.github_options[:failure_app] || BadAuthentication
155
155
 
156
- manager[:client_secret] = app.github_options[:secret] || ENV['GITHUB_CLIENT_SECRET']
157
- manager[:scopes] = app.github_options[:scopes] || ''
158
- manager[:client_id] = app.github_options[:client_id] || ENV['GITHUB_CLIENT_ID']
159
- manager[:redirect_uri] = app.github_options[:callback_url] || '/auth/github/callback'
156
+ manager.scope_defaults :default, :config => {
157
+ :client_id => app.github_options[:client_id] || ENV['GITHUB_CLIENT_ID'],
158
+ :client_secret => app.github_options[:secret] || ENV['GITHUB_CLIENT_SECRET'],
159
+ :scope => app.github_options[:scopes] || '',
160
+ :redirect_uri => app.github_options[:callback_url] || '/auth/github/callback'
161
+ }
160
162
  end
161
163
 
162
164
  app.helpers Helpers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra_auth_github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-13 00:00:00.000000000 Z
12
+ date: 2013-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra