prometheus-client-mmap 1.2.5-x86_64-darwin → 1.2.6-x86_64-darwin

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: 83d6fbcd39c122e5ae097a6f03a42d47631f7b554b78e09e70e6609bf68eb60d
4
- data.tar.gz: 13afec1f80d20a6c2384f2b1e4251a80d0ff47e4ee7cd099edbeb8bace6764c4
3
+ metadata.gz: 1581cc33e9101ee5bfad216001f7922fff46900269566615718686c5f395f99d
4
+ data.tar.gz: 5a2c900de716f5463f1638fd96038d110329f3817b8339256d2f65391d0e2730
5
5
  SHA512:
6
- metadata.gz: a5efc3a3fc389965558d9fc827a2f8d22c4f19fa9fd26d20bdb638677f442da0e5c4ab71657ffeb4619c04d02d19dd87edba0c1941ec9920db8ec61dfdda8a64
7
- data.tar.gz: fe7a55023f72123edf090c480f67e91d4381919bc7d359e025fc8d58f888a3b210b518eab8e45125ca304b5ed74bd20fbcf5d95e7f713c09d84d3d81d23ce545
6
+ metadata.gz: f1ed0682c9141dda22e411032429f28e424e56486deb62252e72adeb12a0fc2106eb14bd936d7efd1669b445dfb045e96c728c3e01412f6469fa49e750172382
7
+ data.tar.gz: 827c02d43a530bcce5832d44d715a7fe735ad971f9bc4834dc95992ac8f5c65bfeb633c517fcaa6dd1b630a8330392084f5c42386a73fee2c4f2b81ac5876c7a
@@ -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-darwin
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