From 1fd32442beb936de1f0fc4a688f5bb5939fa8c7b Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 16 Oct 2020 16:44:25 -0700 Subject: Add required_ruby_version to chef-utils and chef-config These are getting pulled in all over and that's causing problems on older Ruby releases. Signed-off-by: Tim Smith --- chef-config/chef-config.gemspec | 2 ++ chef-utils/chef-utils.gemspec | 2 ++ 2 files changed, 4 insertions(+) diff --git a/chef-config/chef-config.gemspec b/chef-config/chef-config.gemspec index 6b4312c13d..9ff3b43f44 100644 --- a/chef-config/chef-config.gemspec +++ b/chef-config/chef-config.gemspec @@ -12,6 +12,8 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/chef/chef" spec.license = "Apache-2.0" + spec.required_ruby_version = ">= 2.6.0" + spec.require_paths = ["lib"] spec.add_dependency "chef-utils", "= #{ChefConfig::VERSION}" diff --git a/chef-utils/chef-utils.gemspec b/chef-utils/chef-utils.gemspec index 0fd6ad668d..b64cc4dc18 100644 --- a/chef-utils/chef-utils.gemspec +++ b/chef-utils/chef-utils.gemspec @@ -12,6 +12,8 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/chef/chef/tree/master/chef-utils" spec.license = "Apache-2.0" + spec.required_ruby_version = ">= 2.6.0" + spec.metadata = { "bug_tracker_uri" => "https://github.com/chef/chef/issues", "changelog_uri" => "https://github.com/chef/chef/CHANGELOG.md", -- cgit v1.2.1