release 2.2

This commit is contained in:
Thijs Schreijer
2021-07-19 13:14:55 +02:00
parent 434d7ad64f
commit fa3d824e5b
5 changed files with 48 additions and 33 deletions

View File

@@ -10,5 +10,9 @@ charset = utf-8
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
[*.rockspec]
indent_style = space
indent_size = 2
[Makefile] [Makefile]
indent_style = tab indent_style = tab

View File

@@ -21,11 +21,15 @@ ignore = {
--"6.", -- ignore whitespace warnings --"6.", -- ignore whitespace warnings
} }
include_files = {
"**/*.lua",
"*.rockspec",
".busted",
".luacheckrc",
}
exclude_files = { exclude_files = {
"here/**", "here/**",
"samples/**", "samples/**",
--"spec/fixtures/invalid-module.lua",
--"spec-old-api/fixtures/invalid-module.lua",
} }

View File

@@ -29,6 +29,7 @@ Tests are located in the `spec` directory and can be run using [busted](http://o
## Changes: ## 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.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.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.1 fix for '>=' operator [#3](https://github.com/Tieske/date/pull/3), added test suite, added Travis CI, license MIT

View File

@@ -1,31 +0,0 @@
package = "date"
version = "2.1.3-1"
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/Tieske/date",
}
dependencies = {
"lua >= 5.0, < 5.5"
}
source = {
url = "git://github.com/Tieske/date/",
tag = "version_2.1.3",
}
build = {
type = "builtin",
modules = {
date = "src/date.lua"
},
copy_directories = { "docs" },
}

37
date-2.2-1.rockspec Normal file
View File

@@ -0,0 +1,37 @@
local package_name = "date"
local package_version = "2.2"
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://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" },
}