prometheus-client-mmap 1.2.4-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: f9e28266e0a41f6aff371fa9837937bcb13793c94f5cb5c0c8acf9d5b459520d
4
- data.tar.gz: 4922b69d47adeb270c2b8d6eb84284412010ca3d5a53e6ffb098ab7f1222ed1f
3
+ metadata.gz: 1581cc33e9101ee5bfad216001f7922fff46900269566615718686c5f395f99d
4
+ data.tar.gz: 5a2c900de716f5463f1638fd96038d110329f3817b8339256d2f65391d0e2730
5
5
  SHA512:
6
- metadata.gz: e539637a6f57fadb2daf5c47d921839c9a5d0bd52eab1a2c1b15a704622dd37cd36e525f066cdf37afd16982642e619ae4201767bd1cd89f4c76b21acc38cca2
7
- data.tar.gz: 1f9b42a94ca8fad1d05ae8dd9eba51be85cd67185db88b7e0082efc633d1cccade9e5e1f2d6f4f3c7b7fbe5c2819168bfacd8d681a266b55f292887674800225
6
+ metadata.gz: f1ed0682c9141dda22e411032429f28e424e56486deb62252e72adeb12a0fc2106eb14bd936d7efd1669b445dfb045e96c728c3e01412f6469fa49e750172382
7
+ data.tar.gz: 827c02d43a530bcce5832d44d715a7fe735ad971f9bc4834dc95992ac8f5c65bfeb633c517fcaa6dd1b630a8330392084f5c42386a73fee2c4f2b81ac5876c7a
@@ -397,8 +397,10 @@ 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?;
400
+ for pair in tracker.enumeratorize("each_pair", ()) {
401
+ let rpair = magnus::RArray::try_convert(pair?)?;
402
+ let rb_string: Value = rpair.entry(1)?;
403
+
402
404
  let str = RString::from_value(rb_string)
403
405
  .ok_or_else(|| err!(arg_error(), "weakmap value was not a string"))?;
404
406
 
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '1.2.4'.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.4
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