From 953c94b6908812def145c0732c3d52cef0e9651c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 20 Jun 2023 17:46:56 +0000 Subject: [PATCH] Use ruby 3.1 on Debian --- cookbooks/ruby/attributes/default.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/ruby/attributes/default.rb b/cookbooks/ruby/attributes/default.rb index 4ed2a3bb7..eefaf2247 100644 --- a/cookbooks/ruby/attributes/default.rb +++ b/cookbooks/ruby/attributes/default.rb @@ -1,4 +1,6 @@ -default[:ruby][:version] = if node[:lsb][:release].to_f < 22.04 +default[:ruby][:version] = if platform?("debian") + "3.1" + elsif node[:lsb][:release].to_f < 22.04 "2.7" else "3.0" -- 2.39.5