pdnd-ruby-client 0.1.4 → 0.1.6

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: ef672adb33747068375d8ca6f6d0fa4f7f221e59f7a946537662f0009e82decd
4
+ data.tar.gz: fc53fe93ca059d24204ca179a80e7a2faa470d08579598946239a90ffd621f98
5
5
  SHA512:
6
- metadata.gz: b1e7279086fb63f255b378bd10c89a5cacd1b74724eaa0f45a6f8e30339ca0d4d5c27893dfce89fb823a096ecb80198ef204e7eb2002daea5e7b846586ba1feb
7
- data.tar.gz: 4aeb11dc42ec87e1434fd2c4e33468b5b7d5883db7b420c0b0d9f6059f43da5728a0f3729b0787d940eb5347c4b50c2e495dda4b501e031d1551a879db8ad870
6
+ metadata.gz: 5d6270baafc6a41f0d3e6e2ee588a22cf5a609ffa853b775dc8c4e87c54f1f049df286ee5ff572134bda812ceaa47c7c66b109fe9e838ef1a7bb18f33eda82f6
7
+ data.tar.gz: 8c70b2262ab53144c22d6d7540014a58fea378559937ded299b55fb7ef77423c1f84d56cba6f46946e75144c3b084199cbe668900cc9a6c8fbf64f2ad823de43
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.1.6](https://github.com/isprambiente/pdnd-ruby-client/tree/v0.1.6) (2025-10-08)
4
+
5
+ [Full Changelog](https://github.com/isprambiente/pdnd-ruby-client/compare/v0.1.5...v0.1.6)
6
+
7
+ ## [v0.1.5](https://github.com/isprambiente/pdnd-ruby-client/tree/v0.1.5) (2025-08-14)
8
+
9
+ [Full Changelog](https://github.com/isprambiente/pdnd-ruby-client/compare/v0.1.4...v0.1.5)
10
+
3
11
  ## [v0.1.4](https://github.com/isprambiente/pdnd-ruby-client/tree/v0.1.4) (2025-08-05)
4
12
 
5
13
  [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.6'
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Loreti