From 35f32a12f756c50a9cfd17ab9224853c2161fc0e Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Sat, 24 Nov 2018 13:56:48 -0800 Subject: 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 --- ohai.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ohai.gemspec') 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" -- cgit v1.2.1