Skip to content

Commit 3b54997

Browse files
committed
Add 2.3 as minimum required ruby version for gem
Ruby 2.3 is the oldest Ruby that still passes all tests when running `rake test`. By setting it in the `gemfile`, we ensure that older Ruby versions don't try to use an incompatible `rexml` version. (Note: It's probably trivial to support the older Rubies, but I'll leave that for someone who is interested enough in doing the extra work) Issue #69
1 parent 143d244 commit 3b54997

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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.3.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)