Skip to content

Commit

Permalink
Add logger gem as dependency for Ruby 3.5
Browse files Browse the repository at this point in the history
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. ruby/ruby@d7e558e

(Currently, this patch will suppress `warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.` message.)

Similar with fluentGH-4411

Signed-off-by: Watson <[email protected]>
  • Loading branch information
Watson1978 committed Aug 15, 2024
1 parent 1be2f6c commit abbf7af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fluentd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit abbf7af

Please sign in to comment.