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: 28aac67101802350b1dfd976a1feb6e52e8cc58e
4
- data.tar.gz: 7e9d1453fd4f1a85cdb31cf90224acd14426076a
3
+ metadata.gz: 529b3bc7c66b300e5d76ef2c26ce847bc0675f01
4
+ data.tar.gz: 061cc23d4fa253208860e648eed1d9123c1cca12
5
5
  SHA512:
6
- metadata.gz: 11e665a5263a6aad3621d9f99331134d70a170259b1ed5275175cbf57bc28b63d39ce4ac1713c0d2a57403bbcbc79dac9e7326387516d59285e7132d9c4d0bad
7
- data.tar.gz: fe0f20b47951cb8d227e41981724de6eda3363add39fad80fd292c0e4f4c9f0438400e53c0b788000ddb719d9357263902c173d36554b259f07d7ced8af64411
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 %lu", len - i_mm->t->len - 1);
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) > UINT32_MAX) {
137
- rb_raise(rb_eArgError, "string length gt %u", UINT32_MAX);
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 %ld out of string", idx);
162
+ rb_raise(rb_eIndexError, "index %zu out of string", idx);
163
163
  }
164
164
 
165
165
  double tmp;
Binary file
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '0.7.0.beta37'.freeze
3
+ VERSION = '0.7.0.beta38'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,9 @@
1
+ module Prometheus
2
+ module Client
3
+ <<<<<<< HEAD
4
+ VERSION = '0.7.0.beta36'.freeze
5
+ =======
6
+ VERSION = '0.7.0.beta32'.freeze
7
+ >>>>>>> Fix compilation on GCC 4.9
8
+ end
9
+ 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: 0.7.0.beta37
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-24 00:00:00.000000000 Z
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