prometheus-client-mmap 1.2.5 → 1.2.6

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: a6ab67f9568af0824f8d1e9a37f6038280d4b171a513393c7effe6bc4ca52eb2
4
- data.tar.gz: f51fecb003da809c8f5240fe84e0ac66893a1d8c20699431534d90c1df446a67
3
+ metadata.gz: 8c96004a65d9260bcb2b2605f83092660d19c1d4690b2b2a0327f53dc0c748d0
4
+ data.tar.gz: 65154dd4b7ca712e41990a966882da537bf08c622e5ebc7e18d689c66baab0f5
5
5
  SHA512:
6
- metadata.gz: 03a27a8dc91b3d9854c749bb4d799441eb6b597be5cdfb1fdfc5723f1ba7af11ca1607c47acfb83a773809aeac84fdc982c331b6e742cf0eb77933e546ef5b03
7
- data.tar.gz: e34315f553e08b7a19c1e4d0e67d83ec18508c28ac4f4b4a7b182b9ace40e2301bbe59da1b93f0b042bb560a3f766d3e0e078cd41cb55d12342262d6f92a8418
6
+ metadata.gz: d30ea5b2821344e3c68a07e1d1a18fede760e705e167338192fe544440a16fd5c630c9d3e48889c45996d6c0d85459c13761acab3c6f86a35550165fef31747b
7
+ data.tar.gz: 7e413abf01e1e805028bcd1e1ef99b71bc5242ae5a26e8b7588c35daf6c7d27ca601f8ea3b0218d858b1ca3bc62890d6b14bbe94b4f69f3e1b580bb0d083eb86
@@ -397,13 +397,9 @@ impl MmapedFile {
397
397
  let new_len = self.inner(|inner| util::cast_chk::<_, c_long>(inner.len(), "mmap len"))?;
398
398
 
399
399
  // Iterate over the values of the `WeakMap`.
400
- for val in tracker.enumeratorize("each_value", ()) {
401
- let rb_string = val?;
402
-
403
- // A nil value suggests that the value was garbage collected
404
- if rb_string.is_nil() {
405
- continue;
406
- }
400
+ for pair in tracker.enumeratorize("each_pair", ()) {
401
+ let rpair = magnus::RArray::try_convert(pair?)?;
402
+ let rb_string: Value = rpair.entry(1)?;
407
403
 
408
404
  let str = RString::from_value(rb_string)
409
405
  .ok_or_else(|| err!(arg_error(), "weakmap value was not a string"))?;
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '1.2.5'.freeze
3
+ VERSION = '1.2.6'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-client-mmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-12-29 00:00:00.000000000 Z
14
+ date: 2024-12-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rb_sys