Fixed Version compare for issue #179
This commit is contained in:
7
lib/common/version_compare.rb
Normal file
7
lib/common/version_compare.rb
Normal 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
|
||||
Reference in New Issue
Block a user