lib/itamae/plugin/recipe/rbenv/dependency.rb in itamae-plugin-recipe-rbenv-0.9.5 vs lib/itamae/plugin/recipe/rbenv/dependency.rb in itamae-plugin-recipe-rbenv-0.9.6

- old
+ new

@@ -9,10 +9,11 @@ package 'libgdbm6' package 'libreadline-dev' elsif node[:platform] == 'ubuntu' && node[:platform_version] >= '18.04' package 'libgdbm5' package 'libreadline-dev' - elsif node[:platform] == 'debian' && (node[:platform_version].to_f >= 10.0 || node[:platform_version].include?("testing")) + # debian testing or sid returns "testing", "n/a" from node[:platform_version]. + elsif node[:platform] == 'debian' && (node[:platform_version].to_i >= 10 || node[:platform_version].to_i == 0) package 'libgdbm6' package 'libreadline-dev' elsif node[:platform] == 'raspbian' package 'libgdbm6' package 'libreadline-dev'