Fixed Version compare for issue #179

This commit is contained in:
Christian Mehlmauer
2013-05-06 22:33:18 +02:00
parent ebe35cb7b2
commit 77ebd9d4fd
5 changed files with 32 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
# encoding: UTF-8
class VersionCompare
def self.is_newer_or_same?(version1, version2)
(version1 == version2) || (Gem::Version.new(version1) < Gem::Version.new(version2))
end
end