prometheus-client-mmap 1.2.4 → 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: 9abd80a5f843a4d99c0333dc2c00cd258841f75ded8137e365877d671f4a3580
4
- data.tar.gz: 775ac116e7f1157e73971f34454228b796ce4a0f01fd2f328abccfdce14941c3
3
+ metadata.gz: 8c96004a65d9260bcb2b2605f83092660d19c1d4690b2b2a0327f53dc0c748d0
4
+ data.tar.gz: 65154dd4b7ca712e41990a966882da537bf08c622e5ebc7e18d689c66baab0f5
5
5
  SHA512:
6
- metadata.gz: d020b1d440a5a25e22e675368548a225c64ccd02bf0295f9b2b0378cc690c85544762cb511d794ec7decd444919ae2ba0f6f93161b9607fefdc065897629ed5c
7
- data.tar.gz: 38d0ba9f25f85427fe1925b3f686879a207de5fdb44a378511917b0d1ebca2a06ddd69ea8bf267434b26414a34df39a5d9a242ca44feb00f1f42939bb918230e
6
+ metadata.gz: d30ea5b2821344e3c68a07e1d1a18fede760e705e167338192fe544440a16fd5c630c9d3e48889c45996d6c0d85459c13761acab3c6f86a35550165fef31747b
7
+ data.tar.gz: 7e413abf01e1e805028bcd1e1ef99b71bc5242ae5a26e8b7588c35daf6c7d27ca601f8ea3b0218d858b1ca3bc62890d6b14bbe94b4f69f3e1b580bb0d083eb86
@@ -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
 
@@ -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: 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