Skip to content

Commit

Permalink
Merge pull request #675 from Blizzard/update-semver
Browse files Browse the repository at this point in the history
update semver.lua
  • Loading branch information
tvandijck committed Jan 20, 2017
2 parents 9ff8668 + c677896 commit ebd07a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/base/semver.lua
@@ -1,5 +1,5 @@
local semver = {
_VERSION = '1.2.0',
_VERSION = '1.2.1',
_DESCRIPTION = 'semver for Lua',
_URL = 'https://github.com/kikito/semver.lua',
_LICENSE = [[
Expand Down Expand Up @@ -173,6 +173,9 @@ end
-- if a and b are versions, a ^ b means "b is backwards-compatible with a"
-- in other words, "it's safe to upgrade from a to b"
function mt:__pow(other)
if self.major == 0 then
return self == other
end
return self.major == other.major and
self.minor <= other.minor
end
Expand Down

0 comments on commit ebd07a7

Please sign in to comment.