diff --git a/.editorconfig b/.editorconfig index 7c06305..d82aca8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,5 +10,9 @@ charset = utf-8 indent_style = space indent_size = 2 +[*.rockspec] +indent_style = space +indent_size = 2 + [Makefile] indent_style = tab diff --git a/.luacheckrc b/.luacheckrc index c4a9f82..6a352c8 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -21,11 +21,15 @@ ignore = { --"6.", -- ignore whitespace warnings } +include_files = { + "**/*.lua", + "*.rockspec", + ".busted", + ".luacheckrc", +} exclude_files = { "here/**", "samples/**", - --"spec/fixtures/invalid-module.lua", - --"spec-old-api/fixtures/invalid-module.lua", } diff --git a/README.md b/README.md index 6556a0b..9b2186c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ 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 diff --git a/date-2.1.3-1.rockspec b/date-2.1.3-1.rockspec deleted file mode 100644 index 484b8f3..0000000 --- a/date-2.1.3-1.rockspec +++ /dev/null @@ -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" }, -} - diff --git a/date-2.2-1.rockspec b/date-2.2-1.rockspec new file mode 100644 index 0000000..3409cd1 --- /dev/null +++ b/date-2.2-1.rockspec @@ -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" }, +}