prometheus-client-mmap 1.2.4 → 1.2.5

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: 9abd80a5f843a4d99c0333dc2c00cd258841f75ded8137e365877d671f4a3580
4
- data.tar.gz: 775ac116e7f1157e73971f34454228b796ce4a0f01fd2f328abccfdce14941c3
3
+ metadata.gz: a6ab67f9568af0824f8d1e9a37f6038280d4b171a513393c7effe6bc4ca52eb2
4
+ data.tar.gz: f51fecb003da809c8f5240fe84e0ac66893a1d8c20699431534d90c1df446a67
5
5
  SHA512:
6
- metadata.gz: d020b1d440a5a25e22e675368548a225c64ccd02bf0295f9b2b0378cc690c85544762cb511d794ec7decd444919ae2ba0f6f93161b9607fefdc065897629ed5c
7
- data.tar.gz: 38d0ba9f25f85427fe1925b3f686879a207de5fdb44a378511917b0d1ebca2a06ddd69ea8bf267434b26414a34df39a5d9a242ca44feb00f1f42939bb918230e
6
+ metadata.gz: 03a27a8dc91b3d9854c749bb4d799441eb6b597be5cdfb1fdfc5723f1ba7af11ca1607c47acfb83a773809aeac84fdc982c331b6e742cf0eb77933e546ef5b03
7
+ data.tar.gz: e34315f553e08b7a19c1e4d0e67d83ec18508c28ac4f4b4a7b182b9ace40e2301bbe59da1b93f0b042bb560a3f766d3e0e078cd41cb55d12342262d6f92a8418
@@ -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
 
@@ -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: ruby
6
6
  authors:
7
7
  - Tobias Schmidt