simpleapikeyengine 0.0.5 → 0.0.6

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: 058798ca1352373522011a9be2da199b5948ee31
4
- data.tar.gz: 5e2c6264939a82352d504782415b2a4e305d81d1
3
+ metadata.gz: f027f70a8602fafbb290066b8483c937002a7921
4
+ data.tar.gz: 9e202454810e7f2a5c8c5c85bedd011d9c744115
5
5
  SHA512:
6
- metadata.gz: 378c811d0bd6ebb68324dbdf195c113efae9386628cbd4d282ac7c6c041673978aa668f275ba31fb7c413d5245c2caedd34ba58d17085ddc59895f4db48c3824
7
- data.tar.gz: 403a4ca6aedaea628ed03f5e28623d0370fbfd766239b6f3c44e7680ae4601af4919fbdc18cda8edb39cfb2ce4dc653034210fd29f83acd11179ecf9efb71f47
6
+ metadata.gz: eb35c5d9e0a5cbf50aa30da27cb7bf6747ba38060e75837895a56a5e91682e82a10fad3f944e78a3b0c0363c993b61c64895a87d7a656e258162056a4af0f00e
7
+ data.tar.gz: 76435c5150db6382bf7ac3cec2a21fdc25f1e6c53e22be748f86721a270bbbeb1b777c04caf302c74a71eee42573e71745929a8a733ec7d80155670b300a25aa
@@ -30,7 +30,8 @@ module SimpleApiKeyEngine::Providers
30
30
  authentication.user = block.call(auth_hash)
31
31
  end
32
32
  authentication.token = auth_hash[:credentials][:token]
33
- authentication.expires_at = auth_hash[:credentials][:expires_at]
33
+ authentication.expires_at = auth_hash[:credentials][:expires] ?
34
+ auth_hash[:credentials][:expires_at] : nil
34
35
  authentication.auth_hash = auth_hash
35
36
  authentication.save!
36
37
  return authentication
@@ -1,3 +1,3 @@
1
1
  module SimpleApiKeyEngine
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpleapikeyengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuichi Takeuchi