From 99368973a7b7ae065c413d57fd657d89bb80be5b Mon Sep 17 00:00:00 2001 From: Britney Smith Date: Wed, 10 May 2023 10:39:13 -0400 Subject: [PATCH] Update unicorn_metrics.gemspec - `raindrops` version bump to 0.19.1 The raindrops gem that unicorn_metrics is dependent on is not compatible with how Ruby 3 handles arguments passed with the * single splat operator. Because of this, calls to the middleware endpoint GET /unicorn_metrics was failing with the error: ``` app error: no implicit conversion of Hash into Integer (TypeError) /srv/core/current/vendor/bundle/ruby/3.1.0/gems/raindrops-0.13.0/lib/raindrops/linux.rb:60:in 'read' ``` The version v.0.19.1 introduces the fix for this Ruby 3 incompatibility. --- unicorn_metrics.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unicorn_metrics.gemspec b/unicorn_metrics.gemspec index 0269181..469cf32 100644 --- a/unicorn_metrics.gemspec +++ b/unicorn_metrics.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_dependency('raindrops', '~> 0.13.0') + spec.add_dependency('raindrops', '~> 0.19.1') spec.add_development_dependency('rake', '~> 10.1.0') spec.add_development_dependency('minitest')