Skip to content

Commit

Permalink
Set 2.5 as minimum required ruby version for gem (#70)
Browse files Browse the repository at this point in the history
GitHub: fix GH-69

This gem is no longer tested with Rubies older than 2.5,
and it's actually broken on at least <= 2.2.

By setting the minimum version in the `gemspec`, we ensure that older Ruby
versions don't try to use an incompatible `rexml` version.
  • Loading branch information
ivoanjo authored Apr 10, 2021
1 parent 143d244 commit 072b02f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rexml.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.5.0'

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "test-unit"
Expand Down

0 comments on commit 072b02f

Please sign in to comment.