prometheus-client-mmap 1.2.4-x86_64-linux-musl → 1.2.5-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: c63779d5054a6bb9fa12ac55091ab5fd477687c05f9b881d2936728495c0b6ae
4
- data.tar.gz: 4a37d68b5a001c553015c98ce53aeb70972a1a0e28588ac5f26e7d73cf9b05ab
3
+ metadata.gz: cd0bf3d883ac05f4b06cc8c9a7be13b5d601b7042141a4912061f8a5290289a0
4
+ data.tar.gz: 45ba1036102df613f3251ad4da55782ec58239d8971203e5892c145fdd9c6634
5
5
  SHA512:
6
- metadata.gz: 0b1e9b8d51b52df3c39b68a6e33461e67849f053fe0f2a18ce8a6ea136891ece7ac679581ead38024e280ea5975bec6c93fa785a26f22cba188d71b0d01a862b
7
- data.tar.gz: ed675bfd2aa98cdeedef223186ab6c376e9831d93b3c57efb1f9a3d1c3890e1ee423a2dd324c8827e1367051ce37ed6a67e0a620fee21b1ce471e8fd66f2f32e
6
+ metadata.gz: 751eb2ef1a40bb23aabec18a9584a35cc40df7f8f1ffcd7aca6631867cb1e285dd765088a2de878390e66d16e8f95f4842b3c288370ba54021e1564725c46f2e
7
+ data.tar.gz: d2c1c609375a00214b0fa5127a0feda8658d60662f5c637a64db85113df4333536c55a317dec7207fd5f2f9d7ffb548f23d2f3b6d1fe5b5c160df0ed25c05381
@@ -399,6 +399,12 @@ impl MmapedFile {
399
399
  // Iterate over the values of the `WeakMap`.
400
400
  for val in tracker.enumeratorize("each_value", ()) {
401
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
+ }
407
+
402
408
  let str = RString::from_value(rb_string)
403
409
  .ok_or_else(|| err!(arg_error(), "weakmap value was not a string"))?;
404
410
 
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.5'.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.5
5
5
  platform: x86_64-linux-musl
6
6
  authors:
7
7
  - Tobias Schmidt