Bug fix to make sure git check works properly.

This commit is contained in:
Jeremy Cook
2015-01-01 21:21:27 -05:00
parent e35d3fe6ba
commit 46faec7857
2 changed files with 18 additions and 7 deletions

View File

@@ -16,9 +16,9 @@ module Homesick
return false unless info.count == 3
current_version = Hash[ [:major, :minor, :patch].zip(info) ]
return true if current_version.eql?(MIN_VERSION)
current_version.each do |k,v|
return true if v > MIN_VERSION[k]
end
return true if current_version[:major] > MIN_VERSION[:major]
return true if current_version[:major] == MIN_VERSION[:major] && current_version[:minor] > MIN_VERSION[:minor]
return true if current_version[:major] == MIN_VERSION[:major] && current_version[:minor] == MIN_VERSION[:minor] && current_version[:patch] >= MIN_VERSION[:patch]
false
end