prometheus-client-mmap 1.2.5-x86_64-linux-gnu → 1.2.6-x86_64-linux-gnu

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: 904d4e24a681d9f39ab8daa4969f1672ceccf635fce884fda349bd4fc4903530
4
- data.tar.gz: c9dce3ea3ec8f0ffa930bfb373335b68c56d714d6e9cee2593721770a457adb4
3
+ metadata.gz: bfda0e077ff7e080b81463ae4950c941e73f935abf0f650fe53190ef3613e76a
4
+ data.tar.gz: 59aadfc26be5e3ead365b0c5f9b43be963f8945f7d870803c9b9fd2ca4532231
5
5
  SHA512:
6
- metadata.gz: 7691f3abb7d57aadb5c86f3bcf6c69a3d43fadbc36ff3d78f8ae9ef7a6bab93b7e250c23e740aa780895499e4ffc441c06c005660ef68379f0fd76cf310e5fb2
7
- data.tar.gz: 0b65a866a0d2c53f2c124a5e2ff60ef8dd682ca01af14bae33fa0a74b67b3cb457cb6f0a56fce9b152737c54c4f0e508fca6724d0148959737fe4a21a2d70333
6
+ metadata.gz: cb3c4f98b0fc6ca33357493edcde0cf0024e216500bc7d6ff9cfb152910f928b164eee1c54989cfe356acff9b43e76f154a1e94cbe09c8c32ff4ebbb16adf84e
7
+ data.tar.gz: 990eaa08ce82695f7732a5af306058836252cf657c8c430de227cd4a36a95331295e1416e8a1f0b45fcc92df8c154dada618e44e56d2745b2c425366ad9f8dce
@@ -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: x86_64-linux-gnu
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