licensemanager-sdk 1.0.3 → 1.0.4

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: 611bbae5cd55e4692b5d35b90a5ac168d948309e98ccc063965e1951b41c1104
4
- data.tar.gz: 92cf644d6ac230e846061066127dfe25ee8d1bb5668304f199a303a36bb237d1
3
+ metadata.gz: b75c5d2384100222a38ab923c16fa3a3882539ee75c32e4b963fdb907607cfb1
4
+ data.tar.gz: '08e9cc22ddd22b1a9197637a90b6b81e1232c22c3e0ac90b979fe46c37853346'
5
5
  SHA512:
6
- metadata.gz: d296bbf5ab269f2d440cc0b021fa199885ad5f8d0a5c2882379f59f82b593bfa4036fb5cfbbe5ec0ead9b4590042538e663bb4f3635d8d8033c3682925dc205b
7
- data.tar.gz: dfd040207958bd4df9a18e7fa5e421ff50448be2c2aa7fd2faa501100f433e0c63eef6575a3329170a09eaa101c442d07e593df4967903e1c0bcb94674461a5f
6
+ metadata.gz: 12ed49a2a94e1f457fcacfdafbc65e20e90c55ee503fe6d6a4304192c71b83c27af55d1ed6c642d6dc2991b1c0e9c925d1f73abd8fe8e2ef814b10445b6ec12f
7
+ data.tar.gz: 21aa122b030d52246f0d5a392ba6b4a49638011b47969f96a90df48379da20438ed80ea6bdf8ed9f0a2702f00eda62eac7f4e2e582264d51abbfc163a1519d0b
@@ -82,22 +82,23 @@ module LicenseManagerSdk
82
82
 
83
83
  def post(path, body)
84
84
  body_json = JSON.generate(body)
85
- timestamp = Time.now.utc.strftime("%Y-%m-%dT%H:%M:%SZ")
86
- nonce = SecureRandom.hex(16)
87
- signature = compute_signature(@license_id, timestamp, body_json)
88
-
89
85
  uri = URI.parse("#{@base_url}/#{path}")
90
- headers = {
91
- "Content-Type" => "application/json",
92
- "X-Token" => @token,
93
- "X-Timestamp" => timestamp,
94
- "X-Nonce" => nonce,
95
- "X-Signature" => signature
96
- }
97
86
 
98
87
  last_error = nil
99
88
  MAX_RETRIES.times do |attempt|
100
89
  begin
90
+ timestamp = Time.now.utc.strftime("%Y-%m-%dT%H:%M:%SZ")
91
+ nonce = SecureRandom.hex(16)
92
+ signature = compute_signature(@license_id, timestamp, body_json)
93
+
94
+ headers = {
95
+ "Content-Type" => "application/json",
96
+ "X-Token" => @token,
97
+ "X-Timestamp" => timestamp,
98
+ "X-Nonce" => nonce,
99
+ "X-Signature" => signature
100
+ }
101
+
101
102
  http = Net::HTTP.new(uri.host, uri.port)
102
103
  http.use_ssl = uri.scheme == "https"
103
104
  http.read_timeout = @timeout
@@ -1,3 +1,3 @@
1
1
  module LicenseManagerSdk
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "licensemanager-sdk"
3
- spec.version = "1.0.3"
3
+ spec.version = "1.0.4"
4
4
  spec.authors = ["LicenciamentoSoftware"]
5
5
  spec.summary = "SDK cliente para a API de validação do LicenseManager"
6
6
  spec.description = "Encapsula autenticação HMAC-SHA256 e os endpoints de validação de licença."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensemanager-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - LicenciamentoSoftware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-12 00:00:00.000000000 Z
11
+ date: 2026-08-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Encapsula autenticação HMAC-SHA256 e os endpoints de validação de licença.
14
14
  email: