prometheus-client-mmap 1.2.5-arm64-darwin → 1.2.7-arm64-darwin
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 +4 -6
- data/lib/3.1/fast_mmaped_file_rs.bundle +0 -0
- data/lib/3.2/fast_mmaped_file_rs.bundle +0 -0
- data/lib/3.3/fast_mmaped_file_rs.bundle +0 -0
- data/lib/3.4/fast_mmaped_file_rs.bundle +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: 2ffa70c631a0eecd39d9ca79bc79d6da10735ac0323a3017b85e751e170d22dd
|
4
|
+
data.tar.gz: bae16efbc023e87b88637eb33016484e3ec6135b0be63a600822f6b2fc94874a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e719e2b9c926231472ae904238bce38ff5bacd5963b80dbfb405d5318f7f62d60e40fa01f69c85cacf4d65fa599c8f61d132d47f68546816a64e29b2081d18e2
|
7
|
+
data.tar.gz: 82f5c4921f84367b1692be10a56831818537f4a5b0cb00a736cc9b4f687917d5b3598923bcecccb62e45cbc64894a9b8957bb74e7040a9ec2ff98a5e9df248d1
|
@@ -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,15 +396,13 @@ 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 val in
|
403
|
+
for val in values.enumeratorize("each", ()) {
|
401
404
|
let rb_string = val?;
|
402
405
|
|
403
|
-
// A nil value suggests that the value was garbage collected
|
404
|
-
if rb_string.is_nil() {
|
405
|
-
continue;
|
406
|
-
}
|
407
|
-
|
408
406
|
let str = RString::from_value(rb_string)
|
409
407
|
.ok_or_else(|| err!(arg_error(), "weakmap value was not a string"))?;
|
410
408
|
|
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.7
|
5
5
|
platform: arm64-darwin
|
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-01-31 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
|