doorkeeper-rethinkdb 1.1.3 → 1.1.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
  SHA256:
3
- metadata.gz: db926482b3fc474d255ad5ffd1c98194bdecafbdc15c1e502e50c0c0bc2a7afc
4
- data.tar.gz: 3f693345511b1883d8c7b4db37f23369908232343dac52c93f2e89f1dccafb59
3
+ metadata.gz: ec14a5bedfd83c255894b243da28a0f7b20abd7942d68e0a05e09eaa713da64e
4
+ data.tar.gz: 3b53a2a927edf87506875e0495beda93f13f7aee66738ef313245fee74d5baec
5
5
  SHA512:
6
- metadata.gz: 84f0089b3f772edd03a9250be9db5123dedc6b38979987126c5e2a38afb6c62ff5da9b64555fa64568f6bc58f37df25ea19061642e869750900dbb1e21b14e38
7
- data.tar.gz: ab5e75352fb44a44aa4950b606fd533c9fe95a5ee2d52b4ed398f85b0402a6be4ac109fcb77bd558405d3b3e68c91d5041f32d93fdb560a5c946ae1e3f9159ed
6
+ metadata.gz: d259a1ba170598687201e577fcff8b511b185acc28e3dfb5d898e7381295dd88cb62c523e6196215174b07c06618ceaf4b8765440e04788b098aecd42593e62a
7
+ data.tar.gz: 597464e5acff23f072ff5ba1975f6812f6795e5153583c99cd991e381b139129fe64213e3c36f960751a1ffc6fce2b1b163d1cd5a5719f5258a902c971e72da9
@@ -1,3 +1,3 @@
1
1
  module DoorkeeperRethinkdb
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -27,7 +27,7 @@ module Doorkeeper
27
27
  field :previous_refresh_token, type: String, default: ->{ '' }
28
28
  field :expires_in, type: Integer
29
29
  field :ttl, type: Integer
30
- field :revoked_at, type: Time
30
+ field :revoked_time, type: Integer
31
31
 
32
32
  index :ttl
33
33
 
@@ -40,6 +40,14 @@ module Doorkeeper
40
40
  !!self.application_id
41
41
  end
42
42
 
43
+ def revoked_at
44
+ Time.at(self.revoked_time)
45
+ end
46
+
47
+ def revoked_at=(time)
48
+ self.revoked_time = time.to_i
49
+ end
50
+
43
51
  class << self
44
52
  def refresh_token_revoked_on_use?
45
53
  true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper-rethinkdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach