simpleapikeyengine 0.0.3 → 0.0.5

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: 46e4d64b4441a7fed5b90a00f43627554a4dacc8
4
- data.tar.gz: 10ea574bd0be806f78b9b868c4e2db550b16f49a
3
+ metadata.gz: 058798ca1352373522011a9be2da199b5948ee31
4
+ data.tar.gz: 5e2c6264939a82352d504782415b2a4e305d81d1
5
5
  SHA512:
6
- metadata.gz: 170e7fe0d1e71a68e05e14ca292b0476ef6da8f2c54edccf7d1bb14c7a9c1f079b214a68ba587b6a460c160daec7cabcff9ce2118670ccc2f599569646bc3941
7
- data.tar.gz: e7be44ebad81c28a8a5824d8685332a0c1acbf9b3571a8703a966e12e86dd9c1601f335d3745a20715e0b6d6006e1834a861a2c296851a484dcbca2b13bfb2f2
6
+ metadata.gz: 378c811d0bd6ebb68324dbdf195c113efae9386628cbd4d282ac7c6c041673978aa668f275ba31fb7c413d5245c2caedd34ba58d17085ddc59895f4db48c3824
7
+ data.tar.gz: 403a4ca6aedaea628ed03f5e28623d0370fbfd766239b6f3c44e7680ae4601af4919fbdc18cda8edb39cfb2ce4dc653034210fd29f83acd11179ecf9efb71f47
@@ -0,0 +1,7 @@
1
+ class AddExpiresAtToSimpleApiKeyEngineAuthentications < ActiveRecord::Migration
2
+ def change
3
+ change_table :simple_api_key_engine_authentications do |t|
4
+ t.datetime :expires_at
5
+ end
6
+ end
7
+ end
@@ -30,6 +30,7 @@ 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
34
  authentication.auth_hash = auth_hash
34
35
  authentication.save!
35
36
  return authentication
@@ -1,3 +1,3 @@
1
1
  module SimpleApiKeyEngine
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
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.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuichi Takeuchi
@@ -67,6 +67,7 @@ files:
67
67
  - config/routes.rb
68
68
  - db/migrate/20141110041333_create_simple_api_key_engine_api_keys.rb
69
69
  - db/migrate/20141110041340_create_simple_api_key_engine_authentications.rb
70
+ - db/migrate/20141117060900_add_expires_at_to_simple_api_key_engine_authentications.rb
70
71
  - lib/simpleapikeyengine.rb
71
72
  - lib/simpleapikeyengine/engine.rb
72
73
  - lib/simpleapikeyengine/provider_configuration.rb