Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit e3b1096

Browse files
committed
Set 2.6 as minimum required ruby version for gem
Ruby 2.6 is the oldest Ruby that 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 ruby#69
1 parent 143d244 commit e3b1096

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rexml.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Gem::Specification.new do |spec|
5555
spec.bindir = "exe"
5656
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
5757

58+
spec.required_ruby_version = '>= 2.6.0'
59+
5860
spec.add_development_dependency "bundler"
5961
spec.add_development_dependency "rake"
6062
spec.add_development_dependency "test-unit"

0 commit comments

Comments
 (0)