prometheus-client-mmap 1.2.5-arm64-darwin → 1.2.6-arm64-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: feb22062a727e6c8338204c77ccf51f471ce98550a6b843d1b8ed7f7f370c010
4
- data.tar.gz: 63305c92927daf8fc49a04b19eda2604f0a832ae75917483fc43cd7a8bc818a4
3
+ metadata.gz: 67995ab38abbfee73520b3cbfae88907f1a7eba45c9d083003b89aa7e85352c7
4
+ data.tar.gz: 788edfe1065597fdfd53cfbbbd5da6c1f409b976f0583bc5e4cf93b100db577e
5
5
  SHA512:
6
- metadata.gz: 44081bb4aae96ef16100ef0d04013447225eb1f21e3bedab1c3656f33d8c344be7555f005b96e3fc70c5981f1fd1572afd4ca7c33ce2664c174e7f8b88c714cd
7
- data.tar.gz: 0b8cbb8a0089fdca00374c77ea0e2aff890b9ba7f7596c4394c79992433cad5e8a1757e8958715c6cdb7f91b983b1539b620f7a45f8eef68b5e4ae6dc9b4e61b
6
+ metadata.gz: 49056e34229881f23ddbb87a97e4fed94774358b6526ca340439d66e3cc5a58fefdc0c0442adb9c1f2459c246353b287fc765a3db0bd884c20bdcad3712312b2
7
+ data.tar.gz: e5e31cd681bcb19cfc77672d19eeee6592362f6bccbe5a37b85092459deab17970e655ec1e3fd9c837e0304c23f0254265788aa003f034368bed9618160ce25d
@@ -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: arm64-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