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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f796ea92049910892b48c1904c58192bb7a4b0021a0c0beef89c8e6106f7f64b
4
- data.tar.gz: 5054f69acc854b47ab9a5825bb950d035882b05ea6285b81592989ab31d29343
3
+ metadata.gz: d766bb27b5fa12dd520621c8370e6d856e3ee318ac7cf4ee49d6e02a81e0d6d8
4
+ data.tar.gz: c8d9dc42e00dd749dddebe9aee6047b66f4dcfff1fb9a98cb6e19f9a1b1d6668
5
5
  SHA512:
6
- metadata.gz: bbea75413aa62fceddd25f003e23fd6ec16a37f7027be2af549e2f565d91fd8ad8ef93dc07e2bb5cb8b8121aeaf276370ec649222dec8b4893c87a815c4e8a73
7
- data.tar.gz: 871479573af6861b9c0aaf9d323668aab7f75afc68452501dd9c1d9253a96cdfc90cd74891e46e0273dfa0abd14357260fe79ab0ffebc92a11766baf2fae28b5
6
+ metadata.gz: 477acb7a8978c7dfb17ab5aded3e98b08154721f29f92f7154d4a3c81a87b981f708e24c223dca6bf2a9bc665f707384742a928df6edbb12d60b18c043fab265
7
+ data.tar.gz: a0ba5b09bd0bf804c4f830b3b2bf87d8db05386ce81a1f6617fbd39f12f7f62333f716681a02970d0d4355c1f73b5de3283f93b33fe7b65066e1a7d8c9a37b05
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ModelDrivenApi
2
- VERSION = '2.2.4'
2
+ VERSION = '2.2.5'
3
3
  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
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-22 00:00:00.000000000 Z
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