diff --git a/README.md b/README.md index 989cde8..d91fa75 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ Tests are located in the `spec` directory and can be run using [busted](http://o - `README.md` (at the top) - `date.lua` (at the top, and exported field `date.version`) - `index.html` (appr. line 20) +- update changelog below - update rockspec - commit as `release x.y.z` (omit trailing 0) - tag as `version_x.y.z` (omit trailing 0) @@ -45,9 +46,20 @@ Tests are located in the `spec` directory and can be run using [busted](http://o ### 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 -- v2.1.2 fix scientific notation [#9](https://github.com/Tieske/date/pull/9), now available for Lua 5.3 -- v2.1.1 fix for '>=' operator [#3](https://github.com/Tieske/date/pull/3), added test suite, added Travis CI, license MIT -- v2.1 Lua 5.2 support. Global 'date' will no longer be set. -- v2.0 original by Jas Latrix +#### v2.2.1 released 6-Sep-2023 + - fix parsing timezone offset after a decimal number [#33](https://github.com/Tieske/date/pull/33) + - also accept "," as a decimal separator [#31](https://github.com/Tieske/date/pull/31) + - fix bad function call (no functional impact) [#34](https://github.com/Tieske/date/pull/34) + +#### 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.2 + - fix scientific notation [#9](https://github.com/Tieske/date/pull/9), now available for Lua 5.3 +#### v2.1.1 + - fix for '>=' operator [#3](https://github.com/Tieske/date/pull/3), added test suite, added Travis CI, license MIT +#### v2.1 + - Lua 5.2 support. Global 'date' will no longer be set. +#### v2.0 + - original by Jas Latrix diff --git a/docs/index.html b/docs/index.html index 716ced5..af4b482 100644 --- a/docs/index.html +++ b/docs/index.html @@ -17,7 +17,7 @@
-

LuaDate v2.2

+

LuaDate v2.2.1

diff --git a/rockspecs/date-2.2.1-1.rockspec b/rockspecs/date-2.2.1-1.rockspec new file mode 100644 index 0000000..237e49c --- /dev/null +++ b/rockspecs/date-2.2.1-1.rockspec @@ -0,0 +1,37 @@ +local package_name = "date" +local package_version = "2.2.1" +local rockspec_revision = "1" +local github_account_name = "Tieske" +local github_repo_name = package_name +local git_checkout = package_version == "dev" and "master" or ("version_"..package_version) + +package = package_name +version = package_version .. "-" .. rockspec_revision + +source = { + url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = git_checkout +} + +description = { + summary = "Date & Time module for Lua 5.x", + detailed = [[ + Pure Lua Date & Time module for Lua 5.x featuring date and time string + parsing, time addition & subtraction, time span calculation, support for + ISO 8601 dates, local time support, strftime-like formatting. + ]], + license = "MIT", + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, +} + +dependencies = { + "lua >= 5.0, < 5.5" +} + +build = { + type = "builtin", + modules = { + date = "src/date.lua" + }, + copy_directories = { "docs" }, +} diff --git a/src/date.lua b/src/date.lua index f57c30f..1f0660e 100644 --- a/src/date.lua +++ b/src/date.lua @@ -1,7 +1,7 @@ --------------------------------------------------------------------------------------- -- Module for date and time calculations -- --- Version 2.2 +-- Version 2.2.1 -- 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 @@ -201,7 +201,7 @@ do local major = 2 local minor = 2 - local revision = 0 + local revision = 1 date.version = major * 10000000 + minor * 10000 + revision end --#end -- not DATE_OBJECT_AFX