prometheus-client-mmap 1.2.1-x86_64-darwin → 1.2.5-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: 0b90d9bbe6c1e5ba10d6ceecf58a6d503b5404376216fc731c83f3299071127c
4
- data.tar.gz: 6807f41a011b8aeb5aca943c54f7241980f18cb34868e24ac271595e7d1976d1
3
+ metadata.gz: 83d6fbcd39c122e5ae097a6f03a42d47631f7b554b78e09e70e6609bf68eb60d
4
+ data.tar.gz: 13afec1f80d20a6c2384f2b1e4251a80d0ff47e4ee7cd099edbeb8bace6764c4
5
5
  SHA512:
6
- metadata.gz: 710df86d5aedf2e5e1536b3727c2a7f350bf721768cccf8d28c408bbb3a3fdf5ffc3097d5283d57e1196261cc22e995769b5c5b632e529036cfb54318ea75394
7
- data.tar.gz: a66c4d04f525f87c3f6f261396baa34a92a3e6421344fb3b645aa4045e23e0d6a3e920a2097550c71ca39a0f841908397763c03999133ca3994989e3388e4306
6
+ metadata.gz: a5efc3a3fc389965558d9fc827a2f8d22c4f19fa9fd26d20bdb638677f442da0e5c4ab71657ffeb4619c04d02d19dd87edba0c1941ec9920db8ec61dfdda8a64
7
+ data.tar.gz: fe7a55023f72123edf090c480f67e91d4381919bc7d359e025fc8d58f888a3b210b518eab8e45125ca304b5ed74bd20fbcf5d95e7f713c09d84d3d81d23ce545
@@ -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.1'.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.1
4
+ version: 1.2.5
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Tobias Schmidt