model_driven_api 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_web_token.rb +3 -3
- data/lib/model_driven_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d766bb27b5fa12dd520621c8370e6d856e3ee318ac7cf4ee49d6e02a81e0d6d8
|
4
|
+
data.tar.gz: c8d9dc42e00dd749dddebe9aee6047b66f4dcfff1fb9a98cb6e19f9a1b1d6668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 477acb7a8978c7dfb17ab5aded3e98b08154721f29f92f7154d4a3c81a87b981f708e24c223dca6bf2a9bc665f707384742a928df6edbb12d60b18c043fab265
|
7
|
+
data.tar.gz: a0ba5b09bd0bf804c4f830b3b2bf87d8db05386ce81a1f6617fbd39f12f7f62333f716681a02970d0d4355c1f73b5de3283f93b33fe7b65066e1a7d8c9a37b05
|
data/lib/json_web_token.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
class JsonWebToken
|
2
2
|
class << self
|
3
3
|
def encode(payload, expiry = 15.minutes.from_now.to_i)
|
4
|
-
JWT.encode(payload.merge(exp: expiry), Rails.application.secrets.secret_key_base)
|
4
|
+
::JWT.encode(payload.merge(exp: expiry), ::Rails.application.secrets.secret_key_base)
|
5
5
|
end
|
6
6
|
|
7
7
|
def decode(token)
|
8
|
-
body = JWT.decode(token, Rails.application.secrets.secret_key_base)[0]
|
9
|
-
HashWithIndifferentAccess.new body
|
8
|
+
body = ::JWT.decode(token, ::Rails.application.secrets.secret_key_base)[0]
|
9
|
+
::HashWithIndifferentAccess.new body
|
10
10
|
rescue
|
11
11
|
nil
|
12
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: model_driven_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_backend_commons
|