prometheus-client-mmap 1.2.1-arm64-darwin → 1.2.5-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: cd6c9ae9be33807ca292ac4f7c369971b1febc00f38d54cb06e8327cde04c3b0
4
- data.tar.gz: 7c9646168b78ac791dc2c92d7606e232a226a56185ee28b701b6cbbca1f678f0
3
+ metadata.gz: feb22062a727e6c8338204c77ccf51f471ce98550a6b843d1b8ed7f7f370c010
4
+ data.tar.gz: 63305c92927daf8fc49a04b19eda2604f0a832ae75917483fc43cd7a8bc818a4
5
5
  SHA512:
6
- metadata.gz: eed29749ac96ffddf1f75856e582a5baa9c1767fa9dc47f415cf5c22d29f103540274fbe4e7e490b26509f4f0cd7b176c9428fe2e8f889d7411227af4f33be78
7
- data.tar.gz: c60d2b117312d9d502a28042c8f175f6ef9559e778bc645005135b00cc11fcf37b95c97b8601e662bde78f7d8eb5ece441eac85f6a5b11cf64624d37116f0f32
6
+ metadata.gz: 44081bb4aae96ef16100ef0d04013447225eb1f21e3bedab1c3656f33d8c344be7555f005b96e3fc70c5981f1fd1572afd4ca7c33ce2664c174e7f8b88c714cd
7
+ data.tar.gz: 0b8cbb8a0089fdca00374c77ea0e2aff890b9ba7f7596c4394c79992433cad5e8a1757e8958715c6cdb7f91b983b1539b620f7a45f8eef68b5e4ae6dc9b4e61b
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Tobias Schmidt