From a6e339dadc2125aaff79f553c0cf62e0dab4df74 Mon Sep 17 00:00:00 2001 From: Ivo Anjo Date: Tue, 6 Apr 2021 14:26:24 +0100 Subject: [PATCH] Set 2.6 as minimum required ruby version for gem Ruby 2.6 is the oldest Ruby that's hasn't reached EOL. By setting it in the `gemspec`, we ensure that older Ruby versions don't try to use an incompatible `rexml` version. Issue #69 --- rexml.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rexml.gemspec b/rexml.gemspec index 620a8981..d7fb506f 100644 --- a/rexml.gemspec +++ b/rexml.gemspec @@ -55,6 +55,8 @@ Gem::Specification.new do |spec| spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.required_ruby_version = '>= 2.6.0' + spec.add_development_dependency "bundler" spec.add_development_dependency "rake" spec.add_development_dependency "test-unit"