rack-ninja_auth 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c05607d9320345cc6c4167b2da27e5ea9490fe5b
4
- data.tar.gz: da48b29ed9ef6f63036e13b57d1d0b59b37e6dcf
3
+ metadata.gz: 363a386ae679ca746129260f1b12b1befff29900
4
+ data.tar.gz: b5a21e2ff2832efe5532e76ac85d3b9301f22921
5
5
  SHA512:
6
- metadata.gz: ea83683f11ae98c340e502407f66d863bd776a02f67e293630b5e783a114ef1fc51c6f03662342c7a9bfb12d00777a347f37e0c048408674ad78506e083b5a9b
7
- data.tar.gz: 0ec4df77dc177086bd2f620c0eeeb2129115104001c65d3b4ebcfa11bbb380ba52bc6fecc740b32e01d49d094ad7cef670ef0d37bb0a8fa4d1350760ffaa95a2
6
+ metadata.gz: b886ef990c3c410a3b343843bd33073f293376a9fb0aa677221a91279c5b8678cd46eccc0b539d5b52f498770ebd65fda41afbdc093af42675a6c4f28b981417
7
+ data.tar.gz: b64a46c856f1903e8a2a4e80a1785c7820cb0ee6a695fcbdcfe9e3a4585a77aee0a8d5e443cd815ddc6d66719f582f6e917ce9913994c30da9fcd58f0da1e83c
@@ -58,7 +58,7 @@ module Rack
58
58
  private
59
59
 
60
60
  def authenticate!(email:)
61
- session[SESSION_KEY] = { email: email }
61
+ session[SESSION_KEY] = { 'email' => email }
62
62
  end
63
63
 
64
64
  def allowable_email?(email)
@@ -67,7 +67,7 @@ module Rack
67
67
 
68
68
  def is_authenticated?
69
69
  fields = session[SESSION_KEY] || {}
70
- allowable_email?(fields[:email])
70
+ allowable_email?(fields['email'])
71
71
  end
72
72
 
73
73
  def is_unprotected_request?
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module NinjaAuth
3
- VERSION = "0.6.3"
3
+ VERSION = "0.6.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ninja_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Hastings-Spital