From a9e8a30f4c7434aab22327339d0fa31d11ae2082 Mon Sep 17 00:00:00 2001 From: Chris Sinjakli Date: Fri, 4 Aug 2023 18:03:15 +0100 Subject: [PATCH] Prepare release 4.2.1 Signed-off-by: Chris Sinjakli --- CHANGELOG.md | 17 +++++++++++++++++ lib/prometheus/client/version.rb | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fd8e3ee..e9ec9845 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ _None outstanding_ +# 4.2.1 / 2023-08-04 + +_**Codename:** If a bug falls in the forest_ + +## Bug fixes + +- [#291](https://github.com/prometheus/client_ruby/pull/291) Handle `/` in job name in + `Prometheus::Client::Push`: + Previously, if you included a `/` in your job name when using the Pushgateway client, + you'd get a `400` error back as we didn't encode it properly. We now base64 encode it + per the Pushgateway spec. + + It's possible that nobody has hit this bug (`/` is fairly unlikely to appear in a job + name) or that the error message (a `400` from Pushgateway with a complaint about an + odd number of path components) didn't make it look like a bug in the Ruby client. + Either way, this hopefully brings us fully in line with the spec! + # 4.2.0 / 2023-07-25 _**Codename:** Funny number_ diff --git a/lib/prometheus/client/version.rb b/lib/prometheus/client/version.rb index 621282e5..bea05396 100644 --- a/lib/prometheus/client/version.rb +++ b/lib/prometheus/client/version.rb @@ -2,6 +2,6 @@ module Prometheus module Client - VERSION = '4.2.0' + VERSION = '4.2.1' end end