chore(readme) update version number

This commit is contained in:
Thijs Schreijer
2021-07-19 13:20:29 +02:00
parent fa3d824e5b
commit 8d74567cf9
3 changed files with 24 additions and 5 deletions

View File

@@ -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

View File

@@ -17,7 +17,7 @@
<div class="titlepage">
<div>
<div>
<h2 class="title"><a name="id90891" id="id90891"></a>LuaDate v2.1</h2>
<h2 class="title"><a name="id90891" id="id90891"></a>LuaDate v2.2</h2>
</div>
<div>

View File

@@ -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 = {}