warden-github 0.8.1 → 0.8.2

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.
@@ -7,7 +7,8 @@ Warden::Strategies.add(:github) do
7
7
 
8
8
  def authenticate!
9
9
  if(params['code'] && params['state'] &&
10
- env['rack.session']['github_oauth_state'].any? &&
10
+ env['rack.session']['github_oauth_state'] &&
11
+ env['rack.session']['github_oauth_state'].size > 0 &&
11
12
  params['state'] == env['rack.session']['github_oauth_state'])
12
13
  begin
13
14
  api = api_for(params['code'])
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module Github
3
- VERSION = "0.8.1"
3
+ VERSION = "0.8.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-github
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 1
10
- version: 0.8.1
9
+ - 2
10
+ version: 0.8.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Donohoe