mirror of
https://github.com/TangentFoxy/lua-date.git
synced 2025-07-28 11:02:17 +00:00
chore(readme) update version number
This commit is contained in:
18
README.md
18
README.md
@@ -1,4 +1,4 @@
|
|||||||
# LuaDate v2.1
|
# LuaDate v2.2
|
||||||
|
|
||||||
[](https://travis-ci.com/Tieske/date)
|
[](https://travis-ci.com/Tieske/date)
|
||||||
[](https://coveralls.io/github/Tieske/date?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/).
|
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.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
|
- v2.1.3 fix rockspec for Lua 5.4
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
<div class="titlepage">
|
<div class="titlepage">
|
||||||
<div>
|
<div>
|
||||||
<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>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
---------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------
|
||||||
-- Module for date and time calculations
|
-- 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) 2005-2006, by Jas Latrix (jastejada@yahoo.com)
|
||||||
-- Copyright (C) 2013-2021, by Thijs Schreijer
|
-- Copyright (C) 2013-2021, by Thijs Schreijer
|
||||||
-- Licensed under MIT, http://opensource.org/licenses/MIT
|
-- Licensed under MIT, http://opensource.org/licenses/MIT
|
||||||
@@ -198,7 +198,12 @@
|
|||||||
local date = {}
|
local date = {}
|
||||||
setmetatable(date, date)
|
setmetatable(date, date)
|
||||||
-- Version: VMMMRRRR; V-Major, M-Minor, R-Revision; e.g. 5.45.321 == 50450321
|
-- 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
|
--#end -- not DATE_OBJECT_AFX
|
||||||
--[[ THE DATE OBJECT ]]--
|
--[[ THE DATE OBJECT ]]--
|
||||||
local dobj = {}
|
local dobj = {}
|
||||||
|
Reference in New Issue
Block a user