-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|