RubyGems
npm
Organizations
Log in
Sign up
RubyGems
anjlab-devise-oauth2-providable
Versions diffs
1.1.1 → 1.1.2
anjlab-devise-oauth2-providable 1.1.1 → 1.1.2
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (4)
hide
show
data/lib/devise/oauth2_providable/expirable_token.rb
+1
-1
data/lib/devise/oauth2_providable/version.rb
+1
-1
data/spec/models/user_spec.rb
+1
-0
metadata
+1
-1
data/lib/devise/oauth2_providable/expirable_token.rb
CHANGED
@@ -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
data/lib/devise/oauth2_providable/version.rb
CHANGED
@@ -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
data/spec/models/user_spec.rb
CHANGED
@@ -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: