mortal-token 2.0.0 → 2.1.0

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
  SHA1:
3
- metadata.gz: 6b8a22fd9bc7c9038590081f95128581bdab8d28
4
- data.tar.gz: 6d0812debf82f95e6211377aa06467209480ded2
3
+ metadata.gz: 3b4b4e280e753e9b973edb36460d77024ed4d89b
4
+ data.tar.gz: 747d93acc5ebfe6ec635672e1057655a2722881d
5
5
  SHA512:
6
- metadata.gz: c7522365167e5e715a19a87c996e088c7cbcbee5f585a37a5a638167cb3f7a5fb263b97bc137d3f37f86dd73d5ebb9e26912644d357f6b3eb00fe158fb7572f0
7
- data.tar.gz: 5e600b54b463f25eff00709b92b18652ecda7192bdb581ddb51c20a83d3c8e7a091f7f5bf36bb921bae91b8c10c2028d0686623da3140c3ac988a546ce090ea6
6
+ metadata.gz: e6a686bfa3324fa58b76049e746a9aaa10ba87e1c0760e720c94199fa81858ec1b5374cfd1caefba50c03d824f5525beadec401926b7624b2fe260ccafd7aa3d
7
+ data.tar.gz: f4de6a0a7e978556db648c49a5639dd5cff579b5ad8307963547406c8340c10415ced21ade199d5732864015782056fa183cbe87c7d7c6440f0b653937f2a878
@@ -13,7 +13,7 @@ module MortalToken
13
13
  token = Token.new h['expires'], h['salt'], h['message']
14
14
  return token, h['digest']
15
15
  rescue ArgumentError, JSON::ParserError
16
- nil
16
+ return create 0, ''
17
17
  end
18
18
 
19
19
  # Check if a token created with MoralToken#to_s is valid.
@@ -1,4 +1,4 @@
1
1
  module MortalToken
2
2
  # Library version
3
- VERSION = '2.0.0'
3
+ VERSION = '2.1.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mortal-token
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Hollinger