From d6084535f457ea440fe72dcde3e17b84fa30a436 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 6 Aug 2025 02:21:41 +0200 Subject: [PATCH] Fix syntax tree errors on main branch (#342) --- lib/prometheus_exporter/server/puma_collector.rb | 7 +++++-- test/test_helper.rb | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/prometheus_exporter/server/puma_collector.rb b/lib/prometheus_exporter/server/puma_collector.rb index e98f34f..70f3f44 100644 --- a/lib/prometheus_exporter/server/puma_collector.rb +++ b/lib/prometheus_exporter/server/puma_collector.rb @@ -13,8 +13,11 @@ module PrometheusExporter::Server max_threads: "Number of puma threads at available at max scale.", } - if defined?(::Puma::Const) && Gem::Version.new(::Puma::Const::VERSION) >= Gem::Version.new('6.6.0') - PUMA_GAUGES[:busy_threads] = "Wholistic stat reflecting the overall current state of work to be done and the capacity to do it" + if defined?(::Puma::Const) && + Gem::Version.new(::Puma::Const::VERSION) >= Gem::Version.new("6.6.0") + PUMA_GAUGES[ + :busy_threads + ] = "Wholistic stat reflecting the overall current state of work to be done and the capacity to do it" end def initialize diff --git a/test/test_helper.rb b/test/test_helper.rb index b851712..92d7524 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -71,7 +71,7 @@ unless defined?(::Puma) end def self.stats - '{}' + "{}" end end end