From ded6d7bfb28fe390f0c0510f06fe8606f4c83d2c Mon Sep 17 00:00:00 2001 From: Chris Banks Date: Wed, 15 May 2024 14:43:00 +0100 Subject: [PATCH] Declare base64 gem dependency, ready for Ruby 3.4. The base64 gem is no longer a default gem in Ruby 3.4. Add base64 to the gemspec, for forward compatibility with Ruby 3.4 and to resolve the `base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0` warning that Ruby 3.3 emits on loading client_ruby. https://docs.ruby-lang.org/en/master/NEWS_md.html#label-Stdlib+updates Signed-off-by: Chris Banks --- prometheus-client.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prometheus-client.gemspec b/prometheus-client.gemspec index 029ff4f1..a421f0ac 100644 --- a/prometheus-client.gemspec +++ b/prometheus-client.gemspec @@ -15,6 +15,8 @@ Gem::Specification.new do |s| s.files = %w(README.md LICENSE) + Dir.glob('{lib/**/*}') s.require_paths = ['lib'] + s.add_dependency 'base64' + s.add_development_dependency 'benchmark-ips' s.add_development_dependency 'concurrent-ruby' s.add_development_dependency 'timecop'