prometheus-client-mmap 0.20.0 → 0.20.1

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: aaa63589f21ccefd35765317ce8e1b4ca2a11dc41d3391554fb7a5182616db66
4
- data.tar.gz: d58b2c4813b211ced7bf7d3f6c2277a9d5195af3d7ee19ef15ce892f70f4bc4a
3
+ metadata.gz: c348888918d1d6d2ff4334aa37e1ca1b27275246050db022db7723e220613717
4
+ data.tar.gz: 6f082d9c9d3bb0b1181817b1ebfde447912ad8b23209e93d24350526e2118c36
5
5
  SHA512:
6
- metadata.gz: 24ec66d0f72463e93881eede6333e714f222e48812cf172efd023d17359380513c368ede182476071b02f55ab138aea44b00a0f05c7334c012bcb9083d00e356
7
- data.tar.gz: e674a37306171bad42464096958a4d32dd4c8d36f677b8197eb8b64aaf5944c6ec372d6b0a461de10c59204624520be472f78253438c1558b377d99c447074d7
6
+ metadata.gz: 2824ca427aab9d85d0516c4d8f4c42bc7dfd67995a1f208dc6cd2eefcfab71716ed202de22549943b7538ff5bb87aeb94d1d9e6e1ce476bb466292f3e2679a3e
7
+ data.tar.gz: 0ccb59ead46f5047cea39cddcd89d55516e30b0a09e92b25aa940b39e589b991e314264630c808b85bc3460f778ec2833d4a1111b40d82bb45fb99fe92aeb7a2
@@ -1,7 +1,7 @@
1
1
  require "mkmf"
2
2
  require "rb_sys/mkmf"
3
3
 
4
- create_rust_makefile("prometheus-client-mmap/fast_mmaped_file_rs") do |r|
4
+ create_rust_makefile("fast_mmaped_file_rs") do |r|
5
5
  if enable_config('fail-on-warning')
6
6
  r.extra_rustflags = ["-Dwarnings"]
7
7
  end
@@ -1,4 +1,5 @@
1
1
  use magnus::{StaticSymbol, Symbol};
2
+ use std::fmt::Write;
2
3
 
3
4
  use crate::error::{MmapError, RubyError};
4
5
  use crate::file_info::FileInfo;
@@ -121,7 +122,8 @@ impl FileEntry {
121
122
 
122
123
  entry.append_entry(metrics_data, &mut out)?;
123
124
 
124
- out.push_str(&format!(" {}\n", entry.meta.value));
125
+ writeln!(&mut out, " {}", entry.meta.value)
126
+ .map_err(|e| MmapError::Other(format!("Failed to append to output: {e}")))?;
125
127
 
126
128
  processed_count += 1;
127
129
  }
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '0.20.0'.freeze
3
+ VERSION = '0.20.1'.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: 0.20.0
4
+ version: 0.20.1
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: 2023-04-13 00:00:00.000000000 Z
12
+ date: 2023-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb_sys
@@ -130,7 +130,6 @@ files:
130
130
  - ext/fast_mmaped_file/value_access.c
131
131
  - ext/fast_mmaped_file/value_access.h
132
132
  - ext/fast_mmaped_file_rs/.cargo/config.toml
133
- - ext/fast_mmaped_file_rs/.tool-versions
134
133
  - ext/fast_mmaped_file_rs/Cargo.lock
135
134
  - ext/fast_mmaped_file_rs/Cargo.toml
136
135
  - ext/fast_mmaped_file_rs/README.md
@@ -213,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
212
  - !ruby/object:Gem::Version
214
213
  version: '0'
215
214
  requirements: []
216
- rubygems_version: 3.4.10
215
+ rubygems_version: 3.4.12
217
216
  signing_key:
218
217
  specification_version: 4
219
218
  summary: A suite of instrumentation metric primitivesthat can be exposed through a
@@ -1 +0,0 @@
1
- rust 1.65.0