prometheus-client-mmap 1.2.5-x86_64-linux-musl → 1.2.6-x86_64-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: cd0bf3d883ac05f4b06cc8c9a7be13b5d601b7042141a4912061f8a5290289a0
4
- data.tar.gz: 45ba1036102df613f3251ad4da55782ec58239d8971203e5892c145fdd9c6634
3
+ metadata.gz: 41bf02ee21592747d1d37ebb3fb8cde39306f4b394cdd4dfa8f628ac8702f703
4
+ data.tar.gz: f0e3fb5e7db8d4ca66739b97a8a990b0285f6817b1c0a8d12c326ae56e0f925f
5
5
  SHA512:
6
- metadata.gz: 751eb2ef1a40bb23aabec18a9584a35cc40df7f8f1ffcd7aca6631867cb1e285dd765088a2de878390e66d16e8f95f4842b3c288370ba54021e1564725c46f2e
7
- data.tar.gz: d2c1c609375a00214b0fa5127a0feda8658d60662f5c637a64db85113df4333536c55a317dec7207fd5f2f9d7ffb548f23d2f3b6d1fe5b5c160df0ed25c05381
6
+ metadata.gz: 81f45bc007d9cab7772071eddb2d3d3482b3fa755d427041f9978d6bc9cf72e0c75a59e5edfa85780c2f059672fc30af92a885dc60b896428b6fceb201a91c6a
7
+ data.tar.gz: 517bea72a19ac307962c9f3135d2b7f468a915ee3db234e75bc4c4345fe325b7ed32dff0f2f20ae6cf450303e8f2bcf3eed18ace983f63538fdfe7042b475a55
@@ -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-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