From 8d74567cf979c1eab2c6b6ca2e3b978fa40569a2 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Mon, 19 Jul 2021 13:20:29 +0200 Subject: [PATCH] chore(readme) update version number --- README.md | 18 ++++++++++++++++-- docs/index.html | 2 +- src/date.lua | 9 +++++++-- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9b2186c..7e7f9ee 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# LuaDate v2.1 +# LuaDate v2.2 [![Build Status](https://travis-ci.com/Tieske/date.svg?branch=master)](https://travis-ci.com/Tieske/date) [![Coverage Status](https://coveralls.io/repos/github/Tieske/date/badge.svg?branch=master)](https://coveralls.io/github/Tieske/date?branch=master) @@ -27,7 +27,21 @@ Documentation is available in the `doc` folder, or [online at Github](http://tie Tests are located in the `spec` directory and can be run using [busted](http://olivinelabs.com/busted/). -## Changes: +## Changelog: + +### Releasing: +- search for "copyright" and update all occurences with proper years +- update version in: + - `README.md` (at the top) + - `date.lua` (at the top, and exported field `date.version`) + - `index.html` (appr. line 20) +- update rockspec +- commit as `release x.y.z` (omit trailing 0) +- tag as `version_x.y.z` (omit trailing 0) +- push commit & tags +- upload rock to luarocks + +### Changes: - v2.2 add 'centuryflip' to set 2 digit year interpretation [#26](https://github.com/Tieske/date/pull/26) - v2.1.3 fix rockspec for Lua 5.4 diff --git a/docs/index.html b/docs/index.html index 571d68c..716ced5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -17,7 +17,7 @@
-

LuaDate v2.1

+

LuaDate v2.2

diff --git a/src/date.lua b/src/date.lua index 6a991b5..35fdab6 100644 --- a/src/date.lua +++ b/src/date.lua @@ -1,7 +1,7 @@ --------------------------------------------------------------------------------------- -- Module for date and time calculations -- --- Version 2.1.2 +-- Version 2.2 -- Copyright (C) 2005-2006, by Jas Latrix (jastejada@yahoo.com) -- Copyright (C) 2013-2021, by Thijs Schreijer -- Licensed under MIT, http://opensource.org/licenses/MIT @@ -198,7 +198,12 @@ local date = {} setmetatable(date, date) -- Version: VMMMRRRR; V-Major, M-Minor, R-Revision; e.g. 5.45.321 == 50450321 - date.version = 20010003 -- 2.1.3 + do + local major = 2 + local minor = 2 + local revision = 0 + date.version = major * 10000000 + minor * 10000 + revision + end --#end -- not DATE_OBJECT_AFX --[[ THE DATE OBJECT ]]-- local dobj = {}