Skip to content

Commit

Permalink
Bump dependencies and supported Ruby version range
Browse files Browse the repository at this point in the history
to keep up with the times.

This excludes ddtrace which has changed
the API in 1.x.

This also swaps File.exists? which was
removed in Ruby 3.2? in favor of a grammatically
incorrect File.exist? :facepalm
  • Loading branch information
michaelklishin committed Aug 26, 2024
1 parent 83698ec commit ea0555c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
source 'https://rubygems.org'

ruby '>= 2.3.0'
# because we use an anscient version of ddtrace
ruby '>= 2.7.0', '< 3.2'

gemspec

group :development do
gem "rake"
gem "guard", "~> 2.14", platform: :mri_23
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
Expand All @@ -24,8 +25,8 @@ group :development, :test do
gem "honeybadger"
gem "coveralls", "~> 0.8.15", require: false
gem "newrelic_rpm"
gem "ddtrace", "~> 0.54.2"
gem "airbrake", "~> 10.0"
gem "ddtrace", "~> 0.54"
gem "airbrake", "~> 13.0"
gem "rollbar"
gem "bugsnag"
end
Expand Down
4 changes: 2 additions & 2 deletions hutch.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.19', '< 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'
Expand Down
2 changes: 1 addition & 1 deletion lib/hutch/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def daemonise_process
end

def abort_without_file(file, file_description, &block)
abort_with_message("#{file_description} '#{file}' not found") unless File.exists?(file)
abort_with_message("#{file_description} '#{file}' not found") unless File.exist?(file)

yield
end
Expand Down

0 comments on commit ea0555c

Please sign in to comment.