pdnd-ruby-client 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 295617bcb175c8d9279ba5b868bc11fc804b7398d78b2af558eb2c2fa1e06d08
4
- data.tar.gz: 03c8906bf2c58bc9d46f594129abaed252d5060f2e105f6d94607d20a88ee6ed
3
+ metadata.gz: 660cc1080b8f2bc1c4ac275f087c21231b67f4cdb90b2b9e9ac990ddb4bb07e3
4
+ data.tar.gz: 3563e84b27cf58a55b9f69f627e95ab3385bbf276195c93a7c27669f81a8a63c
5
5
  SHA512:
6
- metadata.gz: b1e7279086fb63f255b378bd10c89a5cacd1b74724eaa0f45a6f8e30339ca0d4d5c27893dfce89fb823a096ecb80198ef204e7eb2002daea5e7b846586ba1feb
7
- data.tar.gz: 4aeb11dc42ec87e1434fd2c4e33468b5b7d5883db7b420c0b0d9f6059f43da5728a0f3729b0787d940eb5347c4b50c2e495dda4b501e031d1551a879db8ad870
6
+ metadata.gz: ef0baca7c1b0f3cbd059d625bbd184069187fd972254c88d457c31796117faac292473b66c13c04a138560a7bdaf90da8d9083d5b0f6515a2b79609b59a2a598
7
+ data.tar.gz: 79f8d4179d2c22d1b29666571cc7f2c2fe2b07b28319d05d003de4a2a7d3458ef69dabf525fc75937d42873d7f87a44bf8c78fb9bc6fc1e6e126797e0ebd7a0e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.1.5](https://github.com/isprambiente/pdnd-ruby-client/tree/v0.1.5) (2025-08-14)
4
+
5
+ [Full Changelog](https://github.com/isprambiente/pdnd-ruby-client/compare/v0.1.4...v0.1.5)
6
+
3
7
  ## [v0.1.4](https://github.com/isprambiente/pdnd-ruby-client/tree/v0.1.4) (2025-08-05)
4
8
 
5
9
  [Full Changelog](https://github.com/isprambiente/pdnd-ruby-client/compare/v0.1.3...v0.1.4)
@@ -20,6 +20,7 @@ module PDND
20
20
  data = JSON.parse(File.read(@path))
21
21
  @token = data['token']
22
22
  @exp = data['exp']
23
+ [@token, @exp]
23
24
  end
24
25
 
25
26
  def save(token, exp)
@@ -29,7 +30,7 @@ module PDND
29
30
  end
30
31
 
31
32
  def valid?
32
- @token && @exp && Time.now.to_i < @exp.to_i
33
+ @token.present? && @exp.present? && (Time.now.to_i < Time.new(@exp).to_i)
33
34
  end
34
35
  end
35
36
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PDND
4
4
  class ClientVersion
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdnd-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Loreti