update rakefile, little fix on getting version method

This commit is contained in:
Erik Amaru Ortiz
2014-07-02 11:28:04 -04:00
parent 12714a20e2
commit 57a10065ac

View File

@@ -212,13 +212,14 @@ def getVersion(path)
version = "" version = ""
Dir.chdir(path) do Dir.chdir(path) do
version = `rake version` version = `rake version`
version = version.strip
end end
if version.lines.count > 1 if version.lines.count > 1
version = /([0-9\.]{5}+)/.match(version) version = version.split("\n").last
end end
return version.strip return version
end end