sinatra_auth_github 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/sinatra/auth/github.rb +2 -2
  2. metadata +23 -7
@@ -33,7 +33,7 @@ module Sinatra
33
33
  end
34
34
 
35
35
  def github_request(path)
36
- response = RestClient.get("https://github.com/api/v2/json/#{path}", {:accept => :json, :params => {:token => github_user.token}})
36
+ response = RestClient.get("https://github.com/api/v2/json/#{path}", {:accept => :json, :params => {:access_token => github_user.token}})
37
37
  JSON.parse(response.body)
38
38
  end
39
39
 
@@ -49,7 +49,7 @@ module Sinatra
49
49
  manager.failure_app = app.github_options[:failure_app] || BadAuthentication
50
50
 
51
51
  manager[:github_secret] = app.github_options[:secret]
52
- manager[:github_callback_url] = app.github_options[:scopes] || 'email,offline_access'
52
+ manager[:github_scopes] = app.github_options[:scopes] || 'email,offline_access'
53
53
  manager[:github_client_id] = app.github_options[:client_id]
54
54
  manager[:github_callback_url] = app.github_options[:callback_url] || '/auth/github/callback'
55
55
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra_auth_github
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Donohoe
@@ -15,11 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-17 00:00:00 -07:00
18
+ date: 2010-06-19 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ type: :runtime
22
23
  prerelease: false
24
+ name: sinatra
23
25
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
26
  none: false
25
27
  requirements:
@@ -31,10 +33,10 @@ dependencies:
31
33
  - 0
32
34
  version: "1.0"
33
35
  requirement: *id001
34
- type: :runtime
35
- name: sinatra
36
36
  - !ruby/object:Gem::Dependency
37
+ type: :runtime
37
38
  prerelease: false
39
+ name: warden-github
38
40
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
41
  none: false
40
42
  requirements:
@@ -47,8 +49,22 @@ dependencies:
47
49
  - 5
48
50
  version: 0.0.5
49
51
  requirement: *id002
52
+ - !ruby/object:Gem::Dependency
50
53
  type: :runtime
51
- name: warden-github
54
+ prerelease: false
55
+ name: rest-client
56
+ version_requirements: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ hash: 1
62
+ segments:
63
+ - 1
64
+ - 5
65
+ - 1
66
+ version: 1.5.1
67
+ requirement: *id003
52
68
  description: A sinatra extension for easy oauth integration with github
53
69
  email: atmos@atmos.org
54
70
  executables: []