Skip to content

Commit

Permalink
release 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Sep 6, 2023
1 parent e49be6e commit 2be47e4
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 9 deletions.
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="titlepage">
<div>
<div>
<h2 class="title"><a name="id90891" id="id90891"></a>LuaDate v2.2</h2>
<h2 class="title"><a name="id90891" id="id90891"></a>LuaDate v2.2.1</h2>
</div>

<div>
Expand Down
37 changes: 37 additions & 0 deletions rockspecs/date-2.2.1-1.rockspec
Original file line number Diff line number Diff line change
@@ -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" },
}
4 changes: 2 additions & 2 deletions src/date.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---------------------------------------------------------------------------------------
-- Module for date and time calculations
--
-- Version 2.2
-- Version 2.2.1
-- Copyright (C) 2005-2006, by Jas Latrix ([email protected])
-- Copyright (C) 2013-2021, by Thijs Schreijer
-- Licensed under MIT, http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2be47e4

Please sign in to comment.