From 4b2b2dd3f8078cfc2bd52d5fb55ef1b5c9175103 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Tue, 5 Sep 2023 15:33:01 +0900 Subject: [PATCH] Raise minimum required ruby version The service discovery plugin helper use Array#prepend, it means that the ruby version must be 2.5 or later precisely. fluentd.work/lib/fluent/plugin_helper/service_discovery.rb:71:in `service_discovery_configure': undefined method `prepend' for []:Array (NoMethodError) from /work/fluent/fluentd/fluentd.work/lib/fluent/plugin/out_ NOTE: It works with Ruby 2.5 or later, but 2.x had already reached EOL. At least, it may better to set verified version with CI. Signed-off-by: Kentaro Hayashi --- README.md | 2 +- fluentd.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ba79507a8..e00a73afe5 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Fluentd: Open-Source Log Collector ### Prerequisites -- Ruby 2.4 or later +- Ruby 2.7 or later - git `git` should be in `PATH`. On Windows, you can use `Github for Windows` and `GitShell` for easy setup. diff --git a/fluentd.gemspec b/fluentd.gemspec index a5b5c805e3..c16411e588 100644 --- a/fluentd.gemspec +++ b/fluentd.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |gem| gem.require_paths = ["lib"] gem.license = "Apache-2.0" - gem.required_ruby_version = '>= 2.4' + gem.required_ruby_version = '>= 2.7' gem.add_runtime_dependency("bundler") gem.add_runtime_dependency("msgpack", [">= 1.3.1", "< 2.0.0"])