From c49d26de08a22dae28ef79f6b3701c20e8bd6737 Mon Sep 17 00:00:00 2001 From: Watson Date: Thu, 15 Aug 2024 11:32:52 +0900 Subject: [PATCH] Add logger gem as dependency for Ruby 3.5 logger gem was marked as bundled gem for Ruby 3.5. Therefore, it will not work on Ruby 3.5 unless it is added as a dependency. Ref. https://github.com/ruby/ruby/commit/d7e558e3c48c213d0e8bedca4fb547db55613f7c Similar with GH-4411 --- fluentd.gemspec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fluentd.gemspec b/fluentd.gemspec index bd9a3ac9d0..ff225597d3 100644 --- a/fluentd.gemspec +++ b/fluentd.gemspec @@ -39,6 +39,9 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency("csv", ["~> 3.2"]) gem.add_runtime_dependency("drb", ["~> 2.2"]) + # gems that aren't default gems as of Ruby 3.5 + gem.add_runtime_dependency("logger", ["~> 1.6"]) + # build gem for a certain platform. see also Rakefile fake_platform = ENV['GEM_BUILD_FAKE_PLATFORM'].to_s gem.platform = fake_platform unless fake_platform.empty?