From 2452bbce83daa6a8372bfefe83f12544170d760a Mon Sep 17 00:00:00 2001 From: thefosk Date: Mon, 5 Jun 2017 11:20:14 -0700 Subject: [PATCH] refactor(meta) pre_release becomes suffix --- kong/meta.lua | 4 ++-- spec/01-unit/01-rockspec_meta_spec.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kong/meta.lua b/kong/meta.lua index ee48b780787a..32e1e7f88093 100644 --- a/kong/meta.lua +++ b/kong/meta.lua @@ -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 }) diff --git a/spec/01-unit/01-rockspec_meta_spec.lua b/spec/01-unit/01-rockspec_meta_spec.lua index b61d9a545906..ea3b3e659e63 100644 --- a/spec/01-unit/01-rockspec_meta_spec.lua +++ b/spec/01-unit/01-rockspec_meta_spec.lua @@ -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()