Skip to content

Commit

Permalink
refactor(meta) pre_release becomes suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco authored and thibaultcha committed Jun 5, 2017
1 parent 93538bd commit 2452bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kong/meta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ local version = setmetatable({
major = 0,
minor = 10,
patch = 3,
--pre_release = ""
--suffix = ""
}, {
__tostring = function(t)
return string.format("%d.%d.%d%s", t.major, t.minor, t.patch,
t.pre_release and t.pre_release or "")
t.suffix and t.suffix or "")
end
})

Expand Down
2 changes: 1 addition & 1 deletion spec/01-unit/01-rockspec_meta_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe("rockspec/meta", function()
assert.is_number(meta._VERSION_TABLE.major)
assert.is_number(meta._VERSION_TABLE.minor)
assert.is_number(meta._VERSION_TABLE.patch)
-- pre_release optional
-- suffix optional
end)

it("has a _DEPENDENCIES field", function()
Expand Down

0 comments on commit 2452bbc

Please sign in to comment.