anjlab-devise-oauth2-providable 1.1.1 → 1.1.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.
@@ -31,7 +31,7 @@ module Devise
31
31
  module LocalInstanceMethods
32
32
  # number of seconds until the token expires
33
33
  def expires_in
34
- (expires_at - Time.now.utc).to_i
34
+ (expires_at.utc - Time.now.utc).to_i
35
35
  end
36
36
 
37
37
  # forcefully expire the token
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Oauth2Providable
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe User do
4
+ it { should have_many :clients }
4
5
  it { should have_many :access_tokens }
5
6
  it { should have_many :authorization_codes }
6
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anjlab-devise-oauth2-providable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: