From bd0c99aa42fd3d49541d69805e569805624628ac Mon Sep 17 00:00:00 2001 From: Stefan Kaes Date: Mon, 27 Mar 2023 10:17:26 +0200 Subject: [PATCH] require bunny patched for Ruby 3.2 --- beetle.gemspec | 2 +- lib/beetle.rb | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/beetle.gemspec b/beetle.gemspec index 90d1e215..b13c4020 100644 --- a/beetle.gemspec +++ b/beetle.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |s| } s.specification_version = 3 - s.add_runtime_dependency "bunny", "~> 0.7.12" + s.add_runtime_dependency "bunny", "~> 0.7.13" s.add_runtime_dependency "redis", ">= 4.2.1" s.add_runtime_dependency "hiredis", ">= 0.4.5" s.add_runtime_dependency "amq-protocol", "= 2.3.2" diff --git a/lib/beetle.rb b/lib/beetle.rb index 8fd4ca87..08a3dde9 100644 --- a/lib/beetle.rb +++ b/lib/beetle.rb @@ -2,11 +2,6 @@ require 'bunny' # which bunny picks up require 'qrack/errors' # needed by the publisher -if Gem::Version.new(Bunny::VERSION) <= Gem::Version.new("0.7.12") && !defined?(::Fixnum) - require 'qrack/transport/buffer09' - Qrack::Transport09::Buffer.class_eval "Fixnum = Integer" -end - begin require 'redis/connection/hiredis' # require *before* redis as specified in the redis-rb gem docs require 'redis'