prometheus-client-mmap 1.2.6-x86_64-linux-musl → 1.2.8-x86_64-linux-musl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/fast_mmaped_file_rs/Cargo.toml +2 -2
- data/ext/fast_mmaped_file_rs/src/mmap.rs +6 -4
- data/lib/3.1/fast_mmaped_file_rs.so +0 -0
- data/lib/3.2/fast_mmaped_file_rs.so +0 -0
- data/lib/3.3/fast_mmaped_file_rs.so +0 -0
- data/lib/3.4/fast_mmaped_file_rs.so +0 -0
- data/lib/prometheus/client/version.rb +1 -1
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44a0615b6e4c46835275c8b3bfc955481324d1c46599e35a7b53bf938231eaa1
|
4
|
+
data.tar.gz: 93f9e3a763fea6feb679652016259c2e9ab1315ab1c95dfd0931981611d51dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a53adc55ba4eae52b2c850b46032e9b1e14058c73dc7d15f7fa3518240a97533a279e34921fc79e353bde27fcc46041f2e0085db88489b7c71015631550b6d
|
7
|
+
data.tar.gz: 104a21d0b87c8af79ea8bb9dac226ce695f3129603e2ac02efe7066c5bb2edd1f12d7f3d736db2c1cffb679a9b6d311864f85a922780d94f7a0d49314918ae1a
|
@@ -25,10 +25,10 @@ indoc = "2.0"
|
|
25
25
|
magnus = { version = "0.7", features = ["rb-sys","embed"] }
|
26
26
|
rand = "0.8"
|
27
27
|
sha2 = "0.10"
|
28
|
-
tempfile = "3.
|
28
|
+
tempfile = "3.15"
|
29
29
|
|
30
30
|
[build-dependencies]
|
31
|
-
rb-sys-env =
|
31
|
+
rb-sys-env = "0.2.2"
|
32
32
|
|
33
33
|
[lib]
|
34
34
|
# Integration tests won't work if crate is only `cdylib`.
|
@@ -396,10 +396,12 @@ impl MmapedFile {
|
|
396
396
|
|
397
397
|
let new_len = self.inner(|inner| util::cast_chk::<_, c_long>(inner.len(), "mmap len"))?;
|
398
398
|
|
399
|
+
// Convert WeakMap to an Array of values to to avoid garbage collection issues
|
400
|
+
let values: Value = tracker.funcall("values", ())?;
|
401
|
+
|
399
402
|
// Iterate over the values of the `WeakMap`.
|
400
|
-
for
|
401
|
-
let
|
402
|
-
let rb_string: Value = rpair.entry(1)?;
|
403
|
+
for val in values.enumeratorize("each", ()) {
|
404
|
+
let rb_string = val?;
|
403
405
|
|
404
406
|
let str = RString::from_value(rb_string)
|
405
407
|
.ok_or_else(|| err!(arg_error(), "weakmap value was not a string"))?;
|
@@ -636,7 +638,7 @@ impl MmapedFile {
|
|
636
638
|
/// SAFETY: Calling Ruby code while the returned object is held may result
|
637
639
|
/// in it being mutated or dropped.
|
638
640
|
unsafe fn rb_string_internal(rb_str: RString) -> NonNull<rb_sys::RString> {
|
639
|
-
|
641
|
+
NonNull::new_unchecked(rb_str.as_raw() as *mut rb_sys::RString)
|
640
642
|
}
|
641
643
|
|
642
644
|
#[cfg(ruby_lte_3_2)]
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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
|
+
version: 1.2.8
|
5
5
|
platform: x86_64-linux-musl
|
6
6
|
authors:
|
7
7
|
- Tobias Schmidt
|
@@ -11,24 +11,24 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2025-02-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
17
|
+
name: base64
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- - "
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0
|
22
|
+
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0
|
29
|
+
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: bigdecimal
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
34
|
- - ">="
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
|
-
name:
|
45
|
+
name: logger
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
@@ -55,6 +55,20 @@ dependencies:
|
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rb_sys
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - "~>"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 0.9.109
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 0.9.109
|
58
72
|
- !ruby/object:Gem::Dependency
|
59
73
|
name: fuzzbert
|
60
74
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,20 +131,6 @@ dependencies:
|
|
117
131
|
- - "~>"
|
118
132
|
- !ruby/object:Gem::Version
|
119
133
|
version: 1.2.7
|
120
|
-
- !ruby/object:Gem::Dependency
|
121
|
-
name: rake-compiler-dock
|
122
|
-
requirement: !ruby/object:Gem::Requirement
|
123
|
-
requirements:
|
124
|
-
- - "~>"
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: 1.7.0
|
127
|
-
type: :development
|
128
|
-
prerelease: false
|
129
|
-
version_requirements: !ruby/object:Gem::Requirement
|
130
|
-
requirements:
|
131
|
-
- - "~>"
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 1.7.0
|
134
134
|
- !ruby/object:Gem::Dependency
|
135
135
|
name: rspec
|
136
136
|
requirement: !ruby/object:Gem::Requirement
|