prometheus-client-mmap 0.7.0.beta37 → 0.7.0.beta38
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 529b3bc7c66b300e5d76ef2c26ce847bc0675f01
|
4
|
+
data.tar.gz: 061cc23d4fa253208860e648eed1d9123c1cca12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1573f6da16316623e8ced38ae7c2f67a25c8459e23765b2eec4199dc4f83eeaf1f4da5fb44a03360110e09c2f33e4a5d20650d3d7801eaf2846cd2a70a7f9064
|
7
|
+
data.tar.gz: dda3950d9c9cc3f7b0678141c51de68ccc46bdc92fbc6b5baaa8ff53357e2e6dd6b1374fb61c87463e64129c9381d5760a37f93a4255426026b272e917a4d54d
|
@@ -21,7 +21,7 @@ int open_and_extend_file(mm_ipc *i_mm, size_t len) {
|
|
21
21
|
|
22
22
|
if (lseek(fd, len - i_mm->t->len - 1, SEEK_END) == -1) {
|
23
23
|
close(fd);
|
24
|
-
rb_raise(rb_eIOError, "Can't lseek %
|
24
|
+
rb_raise(rb_eIOError, "Can't lseek %zu", len - i_mm->t->len - 1);
|
25
25
|
}
|
26
26
|
|
27
27
|
if (write(fd, "\000", 1) != 1) {
|
@@ -133,8 +133,8 @@ VALUE method_add_entry(VALUE self, VALUE positions, VALUE key, VALUE value) {
|
|
133
133
|
rb_error_frozen("mmap");
|
134
134
|
}
|
135
135
|
|
136
|
-
if (RSTRING_LEN(key) >
|
137
|
-
rb_raise(rb_eArgError, "string length gt %
|
136
|
+
if (RSTRING_LEN(key) > INT32_MAX) {
|
137
|
+
rb_raise(rb_eArgError, "string length gt %zd", INT32_MAX);
|
138
138
|
}
|
139
139
|
|
140
140
|
uint32_t key_length = (uint32_t)RSTRING_LEN(key);
|
@@ -159,7 +159,7 @@ VALUE method_get_double(VALUE self, VALUE index) {
|
|
159
159
|
size_t idx = NUM2UINT(index);
|
160
160
|
|
161
161
|
if ((i_mm->t->real + sizeof(double)) <= idx) {
|
162
|
-
rb_raise(rb_eIndexError, "index %
|
162
|
+
rb_raise(rb_eIndexError, "index %zu out of string", idx);
|
163
163
|
}
|
164
164
|
|
165
165
|
double tmp;
|
data/lib/fast_mmaped_file.bundle
CHANGED
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: 0.7.0.
|
4
|
+
version: 0.7.0.beta38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Schmidt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-11-
|
12
|
+
date: 2017-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mmap2
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- lib/prometheus/client/support/unicorn.rb
|
135
135
|
- lib/prometheus/client/uses_value_type.rb
|
136
136
|
- lib/prometheus/client/version.rb
|
137
|
+
- lib/prometheus/client/version.rb.orig
|
137
138
|
homepage: https://gitlab.com/gitlab-org/prometheus-client-mmap
|
138
139
|
licenses:
|
139
140
|
- Apache 2.0
|