]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/compare_versions.rb
Drop monkey patch that is no longer needed
[chef.git] / cookbooks / chef / libraries / compare_versions.rb
index d2ccf8a0836e48470f0653ef195e9d23fdb67fc1..cf6ab1ea23c84a3d0b5764b7d311d32889719efd 100644 (file)
@@ -1,12 +1,12 @@
 class Chef
   class Util
     def self.compare_versions(a, b)
-      if a.kind_of?(String)
-        a = a.split(".").map { |c| c.to_i }
+      if a.is_a?(String)
+        a = a.split(".").map(&:to_i)
       end
 
-      if b.kind_of?(String)
-        b = b.split(".").map { |c| c.to_i }
+      if b.is_a?(String)
+        b = b.split(".").map(&:to_i)
       end
 
       a <=> b