prometheus-client-mmap 1.2.5-aarch64-linux-musl → 1.2.6-aarch64-linux-musl

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: 7f56d652790a88e44aaf51d546c168e1d35bdc2c6b14698bcb2f5887a78fb92d
4
- data.tar.gz: a8941aed9476b42907b1078e3bc0b2c2eadda2b07dfa5b7abe066ba33c89683f
3
+ metadata.gz: 79a9f3b36535bde8a5cd1d79eec1c41cb8d0111c19af4609cf1eb9dedd72000d
4
+ data.tar.gz: 9bae63519b74cf636bd483a12e25737443e38b69b2421136c78f454b04047f15
5
5
  SHA512:
6
- metadata.gz: 0b63b043bd4adf9eb6489b6df4fb3d75b35b20d81d7da3784cd205ee3aa40d0ed896dc7756ba8dd85fb019c714cfba9e6b793f38ebb51209db8853d2f03ee448
7
- data.tar.gz: d40342056911b45d5af87444fd784684a7582534ae76fdae70699052cd86622143251dfc1e364f468a47f3dcacf4a8e2e635a42cb15fa222a0c75cce6e4105c1
6
+ metadata.gz: ce4a221d4ee8ee1034282b4f8891b794ca7e3739070c44f24061fa20b6613201ae16daa6ce5f45b434ef4353e936a661a6b2ce0863c4e1cb0ecee9bd1d70354c
7
+ data.tar.gz: a039904eab563ea23844575b095c667df8c6eaf099a13a6ce09c7679d331ec364017faebafed8129830741a9194d4f879179fc192cf3a4f3dff39de391c0780f
@@ -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"))?;
Binary file
Binary file
Binary file
Binary file
@@ -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: aarch64-linux-musl
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