prometheus-client-mmap 1.2.5-aarch64-linux-gnu → 1.2.6-aarch64-linux-gnu

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: 5f40be4eea2a02dda7310ecbb26d68570e55d63fc0a91ddbc37d2aaaf5a5a96b
4
- data.tar.gz: e733278f2006e3d2b19047d88e786a9b1380c73ce78b80486243efad06b7180f
3
+ metadata.gz: 98710214aa7a9bd964bd4d5c0db208bd9017022465bfaace4a0d43ef348de103
4
+ data.tar.gz: 65d03a16aa61a06a023c1ed642fd87c9cfe62fe86d684476a62731d424b451f9
5
5
  SHA512:
6
- metadata.gz: 6dbd80c80d8392edca960846bde42a739535e05eb1c0da24e12b50b5e7ce5310851f33b8744a547a93fd7fe1f6515ce6303e89dc4fea54e0a330f7b2c1c157f0
7
- data.tar.gz: 59fbe8fd5f02854fac828d69750620c4190f4b6362159ec23db768e1eb4c97ab39c85a232b6e8cb0e5148e6284eb27f66338ebdf476646edbd9277ca39d51588
6
+ metadata.gz: 0e90c93e234498cbe77338ed65ed277d1bf7ccc776a99c9cdede6bc041472a52257156a7c97c0c3684a1b0611d2b9dcd1503e550ab4fcdfb46de59e91af4ec5a
7
+ data.tar.gz: c6e306ee3f512027c8bb39fdfbf80dfb518a8dcca11a58d3ae31609009c5c931a301ac6fd0c31c2d9ee492bff38bda64287f1c22159d6b2d580281933e1e2bb2
@@ -397,13 +397,9 @@ impl MmapedFile {
397
397
  let new_len = self.inner(|inner| util::cast_chk::<_, c_long>(inner.len(), "mmap len"))?;
398
398
 
399
399
  // Iterate over the values of the `WeakMap`.
400
- for val in tracker.enumeratorize("each_value", ()) {
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
- }
400
+ for pair in tracker.enumeratorize("each_pair", ()) {
401
+ let rpair = magnus::RArray::try_convert(pair?)?;
402
+ let rb_string: Value = rpair.entry(1)?;
407
403
 
408
404
  let str = RString::from_value(rb_string)
409
405
  .ok_or_else(|| err!(arg_error(), "weakmap value was not a string"))?;
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '1.2.5'.freeze
3
+ VERSION = '1.2.6'.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.5
4
+ version: 1.2.6
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - Tobias Schmidt
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-12-29 00:00:00.000000000 Z
14
+ date: 2024-12-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rb_sys