jwtear 1.1.7 → 1.1.8

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: ec80cbd22ceeba8225079c072f491c14489d9621921257c57ff7663ee4626ae8
4
- data.tar.gz: aca681e7e119897223b99ac347c6eeadf8c90525d16a80b46e76d871f4ce9d04
3
+ metadata.gz: 0d16d14566a4ef0035cf36f1120930d6d8147015768bf5eafab76940587003a7
4
+ data.tar.gz: 9d44f6bee9b1541b3f1f9010ea213392353140d45d897c44fa01cea3e25d1bbd
5
5
  SHA512:
6
- metadata.gz: 59045d652e34c71a8cd451f723bf11e86faf506644c394d3012898a1836dbee7ee51896719499aa3e4191aca34e6d1383e3fb518a5758521527adb41d7a8312d
7
- data.tar.gz: d1b6f5ca3bee6d04ad0e3623c88e54444f17357aececc0b2a5bb6ef3ee9bf8026df5288dbdeaea885afaad5bda186ebb7a9b7fb4cff2123cc776c4a13dff4447
6
+ metadata.gz: d8b73d0cb81751b22da4a5a9645bf02c4fb1f967bb4e3a3ee6a2a75b045cc81acbf21657eae422e0262abb043da056a02f9d526a5bb445754c716e4193fd4bd7
7
+ data.tar.gz: 14586493d374327ee19530b5d92bc2bb9bc4807bdc51f56e0becc27e58bf05f5a614227c4cac334f9cd970d10494bc20c31c132cffef89042b48d2e08f25e43a
@@ -1,3 +1,3 @@
1
1
  module JWTear
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
data/plugins/parse.rb CHANGED
@@ -85,8 +85,8 @@ module JWTear
85
85
  def print_jws_payload(payload)
86
86
  print_h2 "Payload"
87
87
  payload.each do |k, v|
88
- if k == "iat" || k == "nbf"
89
- print_h3 "#{k}" , "#{v}", "\tTIMESTAMP = #{Time.at(v)}".green
88
+ if k == "iat" || k == "nbf"
89
+ print_h3 "#{k}" , "#{v}", "\tTIMESTAMP = #{Time.at(v.to_i)}".green
90
90
  elsif k == "exp"
91
91
  compare_time_with_now(k,v)
92
92
  else
@@ -99,7 +99,7 @@ module JWTear
99
99
  if timestamp.nil?
100
100
  return
101
101
  end
102
- readable_time = Time.at(timestamp)
102
+ readable_time = Time.at(timestamp.to_i)
103
103
  if readable_time < Time.now
104
104
  print_h3 "#{k}", "#{timestamp}", "\tTIMESTAMP = #{readable_time}\t(EXPIRED)".red
105
105
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwtear
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - KING SABRI