From a38c331c0feb1833a36b04416bbd509f9a8deba9 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sun, 25 Aug 2024 22:01:43 -0400 Subject: [PATCH] Bump dependencies and supported Ruby version range to keep up with the times. This also swaps File.exists? which was removed in Ruby 3.2? in favor of a grammatically incorrect File.exist? :facepalm (cherry picked from commit ea0555c80f6cd51eefe431c44b06e2787829fa25) --- Gemfile | 7 ++++--- hutch.gemspec | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 03a7395..ae50c04 100644 --- a/Gemfile +++ b/Gemfile @@ -1,13 +1,14 @@ source 'https://rubygems.org' -ruby '>= 2.6.0' +# because we use an anscient version of ddtrace +ruby '>= 2.7.0', '< 3.2' gemspec group :development do gem "rake" - gem "guard", "~> 2.18" - gem "guard-rspec", "~> 4.7", platform: :mri_23 + gem "guard", "~> 2.14", platform: :mri + gem "guard-rspec", "~> 4.7", platform: :mri gem "yard", "~> 0.9" gem 'kramdown', "> 0", platform: :jruby diff --git a/hutch.gemspec b/hutch.gemspec index 84ef2e4..afbf6e3 100644 --- a/hutch.gemspec +++ b/hutch.gemspec @@ -3,10 +3,10 @@ require File.expand_path('../lib/hutch/version', __FILE__) Gem::Specification.new do |gem| if defined?(JRUBY_VERSION) gem.platform = 'java' - gem.add_runtime_dependency 'march_hare', '>= 3.0.0' + gem.add_runtime_dependency 'march_hare', '>= 4.5.0' else gem.platform = Gem::Platform::RUBY - gem.add_runtime_dependency 'bunny', '>= 2.20', '< 3.0' + gem.add_runtime_dependency 'bunny', '>= 2.23', '< 3.0' end gem.add_runtime_dependency 'carrot-top', '~> 0.0.7' gem.add_runtime_dependency 'multi_json', '~> 1.15'