summaryrefslogtreecommitdiff
path: root/ohai.gemspec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-24 13:56:48 -0800
committerTim Smith <tsmith@chef.io>2018-11-24 13:56:48 -0800
commit35f32a12f756c50a9cfd17ab9224853c2161fc0e (patch)
tree4e5cfe43b8cf6cf8476c6682b43383522c41a7b7 /ohai.gemspec
parenta946ff969ae335b163a1766901ccd960ad6dc4eb (diff)
downloadohai-35f32a12f756c50a9cfd17ab9224853c2161fc0e.tar.gz
Require Ruby 2.5 or later
As we do every year Ohai 15 will drop support for the N-2 support of Ruby. In the ~5 weeks Ruby 2.6 comes out so by the time we release this new version of Ohai N-2 will be Ruby 2.4. Also while we're at it get rid of the begins in rescue blocks. Ruby 2.5 doesn't require this and it's on the path to ruby throwing errors eventually. It's a Ruby < 2.4-ism. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'ohai.gemspec')
-rw-r--r--ohai.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/ohai.gemspec b/ohai.gemspec
index 34680611..9ddb3774 100644
--- a/ohai.gemspec
+++ b/ohai.gemspec
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.email = "adam@chef.io"
s.homepage = "https://docs.chef.io/ohai.html"
- s.required_ruby_version = ">= 2.4"
+ s.required_ruby_version = ">= 2.5"
s.add_dependency "systemu", "~> 2.6.4"
s.add_dependency "ffi-yajl", "~> 2.2"