X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4b1c2078cd515e93a5f1bf8967f380fbd1646f..7b4e373a485d44870c2118a7e473f76641a26159:/cookbooks/chef/libraries/compare_versions.rb?ds=sidebyside diff --git a/cookbooks/chef/libraries/compare_versions.rb b/cookbooks/chef/libraries/compare_versions.rb index 2f5d60baf..cf6ab1ea2 100644 --- a/cookbooks/chef/libraries/compare_versions.rb +++ b/cookbooks/chef/libraries/compare_versions.rb @@ -1,11 +1,11 @@ class Chef class Util def self.compare_versions(a, b) - if a.kind_of?(String) + if a.is_a?(String) a = a.split(".").map(&:to_i) end - if b.kind_of?(String) + if b.is_a?(String) b = b.split(".").map(&:to_i) end