From 6520d5d65573547e56b6a59e2540923fd426789b Mon Sep 17 00:00:00 2001 From: Patrik Ragnarsson Date: Sat, 30 Aug 2025 12:03:30 +0200 Subject: [PATCH] Add `logger` dependency The `logger` gem will not be bundled with future Ruby versions. https://github.com/ruby/ruby/blob/master/doc/standard_library.md Noticed this warning when using the gem: /Users/dentarg/.arm64_rubies/3.4.3/lib/ruby/gems/3.4.0/gems/mqtt-0.6.0/lib/mqtt.rb:3: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. You can add logger to your Gemfile or gemspec to silence this warning. This change ensures the gem keep working with Ruby 3.5+. --- mqtt.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mqtt.gemspec b/mqtt.gemspec index 61f7cac..848d6e7 100755 --- a/mqtt.gemspec +++ b/mqtt.gemspec @@ -20,6 +20,8 @@ Gem::Specification.new do |gem| gem.executables = %w() gem.require_paths = %w(lib) + gem.add_dependency 'logger' + if Gem.ruby_version > Gem::Version.new('3.0') gem.add_development_dependency 'bundler', '>= 1.11.2' gem.add_development_dependency 'rake', '>= 10.2.2'