prometheus-client-mmap 1.2.4-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: f9e28266e0a41f6aff371fa9837937bcb13793c94f5cb5c0c8acf9d5b459520d
4
- data.tar.gz: 4922b69d47adeb270c2b8d6eb84284412010ca3d5a53e6ffb098ab7f1222ed1f
3
+ metadata.gz: 83d6fbcd39c122e5ae097a6f03a42d47631f7b554b78e09e70e6609bf68eb60d
4
+ data.tar.gz: 13afec1f80d20a6c2384f2b1e4251a80d0ff47e4ee7cd099edbeb8bace6764c4
5
5
  SHA512:
6
- metadata.gz: e539637a6f57fadb2daf5c47d921839c9a5d0bd52eab1a2c1b15a704622dd37cd36e525f066cdf37afd16982642e619ae4201767bd1cd89f4c76b21acc38cca2
7
- data.tar.gz: 1f9b42a94ca8fad1d05ae8dd9eba51be85cd67185db88b7e0082efc633d1cccade9e5e1f2d6f4f3c7b7fbe5c2819168bfacd8d681a266b55f292887674800225
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.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-darwin
6
6
  authors:
7
7
  - Tobias Schmidt