tollmeshcache 1.1.0 → 1.1.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tollmeshcache.rb +9 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a729fb89101263229344300bf629f26ef8e48432144a5945197172bf3236c1d0
4
- data.tar.gz: bf634e8110c6005710622bf69b3255591801dc2634ceb0f068de19865a633aa5
3
+ metadata.gz: 672b49bc0e6e84e191e8eb5dcb063d77299fbcfd4e690b51d7516ca5e2e30010
4
+ data.tar.gz: eaaf7d0e919be5b229717a384b4c6c25b012d45a41e6a995992dd35fc075e976
5
5
  SHA512:
6
- metadata.gz: d88502bee359017c136c0fcbc8947ab0e992b1ae060bac0f4b3729323da2ddab551c19ed24539cd08d6c5568353127e0db1dfbbb3d28c12a03d2e01fa5f7200e
7
- data.tar.gz: 0db93ddcc970f174623d92e3f93aafd23009f6df56d918e3c19e5e1ba7f540a29e96bf4d8396d167feb06ca0286288d0625aa3e10721556df83c79f29fa6d002
6
+ metadata.gz: c07cf54e1265ca62f2dbd68ecb316e624bda434519391d0a114619b504a91059a4757dcc97d81e81f929fe2610b90ad6168dec77bb026c1888308eadc8da85aa
7
+ data.tar.gz: 3bdb306df5bf636a0a66913ab31531657e9f78b0bdfbda97c2d6cb42f3468a2bf55d62b9841ecce4a89410533cdd5a90cc26609e5d4ed939f50c3301add69817
data/lib/tollmeshcache.rb CHANGED
@@ -345,12 +345,17 @@ module TollMeshCache
345
345
 
346
346
  def get_prometheus_metrics
347
347
  url = @config.base_url + '/metrics/prometheus'
348
- response = @http.get(url, header: { 'User-Agent' => 'tollmeshcache-ruby/1.1.0' })
348
+ response = @http.get(url, header: { 'User-Agent' => 'tollmeshcache-ruby/1.1.1' })
349
349
  response.body
350
350
  end
351
351
 
352
352
  def close
353
- @http.close if @http
353
+ # HTTPClient (the httpclient gem) has no #close method -- calling it
354
+ # raised NoMethodError on every single client.close call, which is
355
+ # documented as the normal cleanup pattern (see README/examples).
356
+ # #reset_all is the gem's actual method for tearing down its
357
+ # keep-alive sessions.
358
+ @http.reset_all if @http
354
359
  end
355
360
 
356
361
  private
@@ -359,7 +364,7 @@ module TollMeshCache
359
364
  url = @config.base_url + endpoint
360
365
  headers = {
361
366
  'Content-Type' => 'application/json',
362
- 'User-Agent' => 'tollmeshcache-ruby/1.1.0'
367
+ 'User-Agent' => 'tollmeshcache-ruby/1.1.1'
363
368
  }
364
369
  headers['X-API-Key'] = @config.api_key if @config.api_key
365
370
 
@@ -369,7 +374,7 @@ module TollMeshCache
369
374
 
370
375
  def get(endpoint, query: nil)
371
376
  url = @config.base_url + endpoint
372
- headers = { 'User-Agent' => 'tollmeshcache-ruby/1.1.0' }
377
+ headers = { 'User-Agent' => 'tollmeshcache-ruby/1.1.1' }
373
378
  headers['X-API-Key'] = @config.api_key if @config.api_key
374
379
 
375
380
  response = @http.get(url, query: query, header: headers)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tollmeshcache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TollMesh Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-04 00:00:00.000000000 Z
11
+ date: 2026-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient