]> git.madduck.net Git - etc/awesome.git/log

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

etc/awesome.git
6 years agodoc/index.md: Fix internal link
daurnimator [Sat, 9 Dec 2017 09:37:32 +0000 (20:37 +1100)]
doc/index.md: Fix internal link

6 years agoMerge tag 'v0.4'
daurnimator [Sat, 9 Dec 2017 09:13:05 +0000 (20:13 +1100)]
Merge tag 'v0.4'

6 years agoRelease v0.4
daurnimator [Sat, 9 Dec 2017 06:46:18 +0000 (17:46 +1100)]
Release v0.4

6 years agoWhitespace removal
daurnimator [Sat, 9 Dec 2017 06:44:18 +0000 (17:44 +1100)]
Whitespace removal

6 years agospec/timetable_spec.lua: Add more test cases for negative day normalisation
daurnimator [Sat, 9 Dec 2017 06:20:50 +0000 (17:20 +1100)]
spec/timetable_spec.lua: Add more test cases for negative day normalisation

6 years agoREADME.md: Add coveralls badge
daurnimator [Wed, 6 Dec 2017 06:42:03 +0000 (17:42 +1100)]
README.md: Add coveralls badge

6 years ago.gitignore: add compiled docs
daurnimator [Wed, 6 Dec 2017 06:38:09 +0000 (17:38 +1100)]
.gitignore: add compiled docs

6 years agoluatz-scm-0.rockspec: license is not MIT/X11 variant
daurnimator [Wed, 6 Dec 2017 06:36:46 +0000 (17:36 +1100)]
luatz-scm-0.rockspec: license is not MIT/X11 variant

6 years agoCOPYING: Update year
daurnimator [Wed, 6 Dec 2017 06:36:18 +0000 (17:36 +1100)]
COPYING: Update year

6 years agoluatz/parse.lua: Pass base to tonumber explicitly
daurnimator [Wed, 6 Dec 2017 06:35:08 +0000 (17:35 +1100)]
luatz/parse.lua: Pass base to tonumber explicitly

6 years agoMove to consistent whitespace style
daurnimator [Wed, 6 Dec 2017 06:31:40 +0000 (17:31 +1100)]
Move to consistent whitespace style

6 years agoexamples/date_arithmetic.lua: Remove unused c2 var
daurnimator [Wed, 6 Dec 2017 06:15:50 +0000 (17:15 +1100)]
examples/date_arithmetic.lua: Remove unused c2 var

6 years agoluatz/timetable.lua: Remove unused year_length function
daurnimator [Wed, 6 Dec 2017 06:13:25 +0000 (17:13 +1100)]
luatz/timetable.lua: Remove unused year_length function

6 years agoluatz/timetable.lua: Fix incorrect normalisation logic for negative day field
daurnimator [Wed, 6 Dec 2017 06:12:47 +0000 (17:12 +1100)]
luatz/timetable.lua: Fix incorrect normalisation logic for negative day field

Fixes #13

7 years agoFix luacheck warnings
daurnimator [Mon, 13 Mar 2017 14:54:33 +0000 (01:54 +1100)]
Fix luacheck warnings

A recent luacheck update added new warnings.

7 years agoluatz/gettime: Use lunix if available
daurnimator [Sat, 11 Mar 2017 04:00:32 +0000 (15:00 +1100)]
luatz/gettime: Use lunix if available

7 years agoluatz/tzinfo: Add __name field to metatables
daurnimator [Sat, 11 Mar 2017 03:39:24 +0000 (14:39 +1100)]
luatz/tzinfo: Add __name field to metatables

7 years agoluatz/gettime: Check that CLOCK constants exist
daurnimator [Tue, 7 Mar 2017 23:49:28 +0000 (10:49 +1100)]
luatz/gettime: Check that CLOCK constants exist

ljsyscall can end up defining a clock_gettime function without defining clock symbols.
Closes #11

7 years agoREADME: Add link to docs on github
daurnimator [Fri, 27 Jan 2017 02:01:19 +0000 (13:01 +1100)]
README: Add link to docs on github

Closes #1

7 years agoREADME: Fix formatting
daurnimator [Fri, 27 Jan 2017 01:49:41 +0000 (12:49 +1100)]
README: Fix formatting

7 years agoREADME: Add header
daurnimator [Fri, 27 Jan 2017 01:49:00 +0000 (12:49 +1100)]
README: Add header

7 years agoluatz/tzfile: Add luacheck annotation
daurnimator [Fri, 27 Jan 2017 01:48:51 +0000 (12:48 +1100)]
luatz/tzfile: Add luacheck annotation

7 years agoNEWS: Add NEWS file
daurnimator [Fri, 27 Jan 2017 01:45:51 +0000 (12:45 +1100)]
NEWS: Add NEWS file

7 years agodoc/: Cleanup, add Makefile
daurnimator [Fri, 27 Jan 2017 01:34:20 +0000 (12:34 +1100)]
doc/: Cleanup, add Makefile

7 years agoREADME: Update luarocks link
daurnimator [Fri, 27 Jan 2017 01:02:37 +0000 (12:02 +1100)]
README: Update luarocks link

7 years agoluatz/timetable: Fix incorrect math for negative carry operations
daurnimator [Fri, 27 Jan 2017 00:46:24 +0000 (11:46 +1100)]
luatz/timetable: Fix incorrect math for negative carry operations

Closes #10

8 years agoREADME,rockspec: Fix typo (stftime => strftime)
daurnimator [Wed, 18 May 2016 10:00:56 +0000 (20:00 +1000)]
README,rockspec: Fix typo (stftime => strftime)

8 years ago.travis: Move to hererocks based system
daurnimator [Fri, 22 Jan 2016 05:06:25 +0000 (16:06 +1100)]
.travis: Move to hererocks based system

8 years agospec/timetable_spec: Fix order of arguments to assert.same
daurnimator [Thu, 21 Jan 2016 06:53:58 +0000 (17:53 +1100)]
spec/timetable_spec: Fix order of arguments to assert.same

9 years agospec/tzcache: Add tests for tzcache
daurnimator [Sat, 7 Nov 2015 16:42:33 +0000 (10:42 -0600)]
spec/tzcache: Add tests for tzcache

9 years agospec/tzfile_spec: Add a test to open a tz version 3 file
daurnimator [Sat, 7 Nov 2015 16:33:19 +0000 (10:33 -0600)]
spec/tzfile_spec: Add a test to open a tz version 3 file

Includes tz file for America/Godthab from 2015g release

9 years agospec/strftime_spec: Fix luacheck warnings
daurnimator [Wed, 4 Nov 2015 17:12:59 +0000 (11:12 -0600)]
spec/strftime_spec: Fix luacheck warnings

9 years ago.luacheckrc: Add
daurnimator [Wed, 4 Nov 2015 17:13:18 +0000 (11:13 -0600)]
.luacheckrc: Add

9 years agoluatz/: Fix luacheck warnings
daurnimator [Wed, 4 Nov 2015 17:09:33 +0000 (11:09 -0600)]
luatz/: Fix luacheck warnings

Adds 'future' field to tz_info objects when available

9 years agoluatz/tzfile: Fix support for version 3 files
daurnimator [Wed, 4 Nov 2015 17:00:55 +0000 (11:00 -0600)]
luatz/tzfile: Fix support for version 3 files

Relevant to #2
Fixes #7

9 years ago.travis: Use travis template from lua-travis-example
daurnimator [Wed, 21 Oct 2015 19:21:16 +0000 (15:21 -0400)]
.travis: Use travis template from lua-travis-example

  - it tests on multiple lua versions
  - uses 'new' travis infrastructure (i.e. no sudo)
  - submits coverage results to coveralls.io

9 years ago.luacov: Add luacov config
daurnimator [Wed, 21 Oct 2015 19:20:33 +0000 (15:20 -0400)]
.luacov: Add luacov config

9 years agoluatz/parse: On a non-conforming string, return `nil, err` instead of throwing an...
daurnimator [Wed, 21 Oct 2015 19:05:20 +0000 (15:05 -0400)]
luatz/parse: On a non-conforming string, return `nil, err` instead of throwing an error

Closes #6

9 years ago.busted: Make sure we run tests on the code in the current directory
daurnimator [Wed, 21 Oct 2015 19:04:32 +0000 (15:04 -0400)]
.busted: Make sure we run tests on the code in the current directory

Rather than e.g. the local system installed luatz

9 years agoluatz/timetable: Floor milliseconds before passing to string.format
daurnimator [Fri, 19 Jun 2015 00:24:53 +0000 (10:24 +1000)]
luatz/timetable: Floor milliseconds before passing to string.format

The %d format specifier expects an integer.
Since lua 5.3, instead of doing undefined rounding, it throws an error

9 years ago{luatz,doc}/gettime: Add Openresty's ngx.now as a source
daurnimator [Wed, 18 Feb 2015 21:15:22 +0000 (16:15 -0500)]
{luatz,doc}/gettime: Add Openresty's ngx.now as a source

nginx has it's own gettimeofday() cache, this will fetch the time from there.
It has only in millisecond granularity, so place it after luasocket in preferential order

As requested by bngle

9 years agorockspec: Update detailed description (sync with README)
daurnimator [Fri, 2 Jan 2015 21:58:27 +0000 (16:58 -0500)]
rockspec: Update detailed description (sync with README)

9 years agorockspec: Remove < 5.3 requirement, add supported environments to README
daurnimator [Fri, 2 Jan 2015 21:58:14 +0000 (16:58 -0500)]
rockspec: Remove < 5.3 requirement, add supported environments to README

9 years agoluatz/tzfile: Make use of IDIV opcode when available (Lua 5.3+)
daurnimator [Fri, 2 Jan 2015 21:48:25 +0000 (16:48 -0500)]
luatz/tzfile: Make use of IDIV opcode when available (Lua 5.3+)

9 years agoluatz/tzfile: Use string.unpack when available (Lua 5.3+)
daurnimator [Fri, 2 Jan 2015 21:48:04 +0000 (16:48 -0500)]
luatz/tzfile: Use string.unpack when available (Lua 5.3+)

9 years agoluatz/parse: Fix unbalanced parens in comment
daurnimator [Wed, 17 Dec 2014 00:19:56 +0000 (19:19 -0500)]
luatz/parse: Fix unbalanced parens in comment

10 years agoluatz/timetable: Fix `rfc_3339()` bad rounding behaviour. Closes issue #4
daurnimator [Sun, 9 Nov 2014 07:11:55 +0000 (02:11 -0500)]
luatz/timetable: Fix `rfc_3339()` bad rounding behaviour. Closes issue #4

10 years ago.gitignore: Ignore built rocks
daurnimator [Fri, 29 Aug 2014 21:32:02 +0000 (17:32 -0400)]
.gitignore: Ignore built rocks

10 years agodoc/timetable: Document `normalise` fractional behaviour
daurnimator [Fri, 29 Aug 2014 21:01:43 +0000 (17:01 -0400)]
doc/timetable: Document `normalise` fractional behaviour

10 years agoluatz/init: Add `now()` function
daurnimator [Fri, 29 Aug 2014 20:57:26 +0000 (16:57 -0400)]
luatz/init: Add `now()` function

10 years agoREADME: Add feature list, Usage section
daurnimator [Fri, 29 Aug 2014 20:53:43 +0000 (16:53 -0400)]
README: Add feature list, Usage section

10 years agoREADME: Add Installation instructions
daurnimator [Fri, 29 Aug 2014 20:51:29 +0000 (16:51 -0400)]
README: Add Installation instructions

10 years agodoc/index: Add C-like functions
daurnimator [Fri, 29 Aug 2014 20:44:24 +0000 (16:44 -0400)]
doc/index: Add C-like functions

10 years agodoc/: Reduce functions to a h3 instead of h2
daurnimator [Fri, 29 Aug 2014 20:42:58 +0000 (16:42 -0400)]
doc/: Reduce functions to a h3 instead of h2

10 years agoBreaking change: Normalise inside of `new_from_timestamp()`
daurnimator [Fri, 29 Aug 2014 20:36:10 +0000 (16:36 -0400)]
Breaking change: Normalise inside of `new_from_timestamp()`

10 years agodoc/timetable: spell check
daurnimator [Fri, 29 Aug 2014 20:34:33 +0000 (16:34 -0400)]
doc/timetable: spell check

10 years agoluatz/timetable: Add support to `normalise` for fractional columns
daurnimator [Fri, 29 Aug 2014 20:03:47 +0000 (16:03 -0400)]
luatz/timetable: Add support to `normalise` for fractional columns

10 years agospec/timetable_spec: more tests
daurnimator [Fri, 29 Aug 2014 20:02:40 +0000 (16:02 -0400)]
spec/timetable_spec: more tests

10 years agoluatz/timetable: Rename `increment` to `carry`
daurnimator [Fri, 29 Aug 2014 19:02:52 +0000 (15:02 -0400)]
luatz/timetable: Rename `increment` to `carry`

10 years agoluatz/timetable: Optimize and export `is_leap`; add tests
daurnimator [Fri, 29 Aug 2014 18:56:13 +0000 (14:56 -0400)]
luatz/timetable: Optimize and export `is_leap`; add tests

10 years agospec/timetable_spec: Add more tests for month handling
daurnimator [Fri, 29 Aug 2014 17:36:30 +0000 (13:36 -0400)]
spec/timetable_spec: Add more tests for month handling

10 years agospec/: Better test descriptions.
daurnimator [Fri, 29 Aug 2014 16:53:28 +0000 (12:53 -0400)]
spec/: Better test descriptions.

Now including hash tags.

10 years agoluatz/timetable: Check argument to `new_from_timestamp`
daurnimator [Thu, 28 Aug 2014 20:55:53 +0000 (16:55 -0400)]
luatz/timetable: Check argument to `new_from_timestamp`

10 years agospec/strftime: add tests for asctime
daurnimator [Sun, 24 Aug 2014 02:29:38 +0000 (22:29 -0400)]
spec/strftime: add tests for asctime

10 years agospec/strftime: only call gmtime once; then clone
daurnimator [Sun, 24 Aug 2014 02:29:26 +0000 (22:29 -0400)]
spec/strftime: only call gmtime once; then clone

10 years agoluatz/strftime: Fix asctime (forgot to call string.format)
daurnimator [Sun, 24 Aug 2014 02:01:02 +0000 (22:01 -0400)]
luatz/strftime: Fix asctime (forgot to call string.format)

10 years agoluatz/timetable: Add __sub metamethod to allow subtraction of timetables. Reintroduce...
daurnimator [Mon, 18 Aug 2014 19:13:51 +0000 (15:13 -0400)]
luatz/timetable: Add __sub metamethod to allow subtraction of timetables. Reintroduces coercion from cfc4ba97c3596db1105abc17692a54185cfd3a30

10 years agoluatz/tzfile: Add support for version 3 files (partial fix for Issue #2)
daurnimator [Mon, 18 Aug 2014 19:06:38 +0000 (15:06 -0400)]
luatz/tzfile: Add support for version 3 files (partial fix for Issue #2)

10 years agoluatz/tzfile: Read in (but don't yet use) TZ string
daurnimator [Mon, 18 Aug 2014 19:06:06 +0000 (15:06 -0400)]
luatz/tzfile: Read in (but don't yet use) TZ string

10 years agoluatz/init: asctime is now in strftime library, not a timetable method
daurnimator [Mon, 18 Aug 2014 18:42:35 +0000 (14:42 -0400)]
luatz/init: asctime is now in strftime library, not a timetable method

10 years agoexamples/os_date: Initial commit
daurnimator [Mon, 18 Aug 2014 18:39:08 +0000 (14:39 -0400)]
examples/os_date: Initial commit

10 years agoluatz/strftime: Optimize asctime/bypass strftime
daurnimator [Mon, 18 Aug 2014 17:53:02 +0000 (13:53 -0400)]
luatz/strftime: Optimize asctime/bypass strftime

10 years agoluatz/tzcache: Allow absolute paths
daurnimator [Mon, 18 Aug 2014 15:56:44 +0000 (11:56 -0400)]
luatz/tzcache: Allow absolute paths

10 years agospec/strftime: Generate format strings before tests, and use in test names
daurnimator [Mon, 18 Aug 2014 15:55:51 +0000 (11:55 -0400)]
spec/strftime: Generate format strings before tests, and use in test names

10 years agospec/strftime_spec: Use the same timestamp every test run.
daurnimator [Mon, 18 Aug 2014 15:55:12 +0000 (11:55 -0400)]
spec/strftime_spec: Use the same timestamp every test run.

10 years agoluatz/init: Add C-like functions for some common tasks
daurnimator [Mon, 18 Aug 2014 15:53:09 +0000 (11:53 -0400)]
luatz/init: Add C-like functions for some common tasks

10 years agoluatz/init: Add gettime and tzcache to exported table
daurnimator [Mon, 18 Aug 2014 15:52:35 +0000 (11:52 -0400)]
luatz/init: Add gettime and tzcache to exported table

10 years agoluatz/timetable: Move require call to top of file
daurnimator [Mon, 18 Aug 2014 15:48:12 +0000 (11:48 -0400)]
luatz/timetable: Move require call to top of file

10 years agoluatz: Move `asctime` from timetable.lua to strftime.lua. It doesn't deserve to be...
daurnimator [Mon, 18 Aug 2014 15:46:36 +0000 (11:46 -0400)]
luatz: Move `asctime` from timetable.lua to strftime.lua. It doesn't deserve to be a timetable method

10 years agoAdd strftime
daurnimator [Mon, 21 Jul 2014 04:41:08 +0000 (19:41 -0900)]
Add strftime

10 years agoluatz/init: Refactor
daurnimator [Mon, 21 Jul 2014 04:38:58 +0000 (19:38 -0900)]
luatz/init: Refactor

10 years ago{luatz,doc}/gettime: Add ljsyscall as a source. Better docs.
daurnimator [Tue, 15 Jul 2014 22:12:27 +0000 (18:12 -0400)]
{luatz,doc}/gettime: Add ljsyscall as a source. Better docs.

10 years agoluatz/timetable: Coercion doesn't work ==> lua relational operators only work on...
daurnimator [Mon, 6 Jan 2014 21:00:42 +0000 (16:00 -0500)]
luatz/timetable: Coercion doesn't work ==> lua relational operators only work on objects with same metatable

10 years agoluatz/timetable: Use sakamoto's algorithm instead of doomsday algorithm
daurnimator [Mon, 6 Jan 2014 20:56:55 +0000 (15:56 -0500)]
luatz/timetable: Use sakamoto's algorithm instead of doomsday algorithm

10 years agoluatz/tzinfo: Fix accidental global
daurnimator [Fri, 3 Jan 2014 22:52:48 +0000 (17:52 -0500)]
luatz/tzinfo: Fix accidental global

10 years agoluatz/tzinfo: Allow timetable objects in tzinfo methods
daurnimator [Mon, 23 Dec 2013 16:31:52 +0000 (11:31 -0500)]
luatz/tzinfo: Allow timetable objects in tzinfo methods

11 years agoexamples/date_arithmetic: Add an example that shows of date arithmetic
daurnimator [Sun, 24 Nov 2013 11:04:38 +0000 (06:04 -0500)]
examples/date_arithmetic: Add an example that shows of date arithmetic

11 years agoluatz/tzinfo: Give tt_info objects a __tostring
daurnimator [Sun, 24 Nov 2013 10:43:02 +0000 (05:43 -0500)]
luatz/tzinfo: Give tt_info objects a __tostring

11 years agoGive tt_info objects a metatable; and document them
daurnimator [Sun, 24 Nov 2013 10:42:23 +0000 (05:42 -0500)]
Give tt_info objects a metatable; and document them

11 years agodoc: Use 'precise' instead of 'accurate'
daurnimator [Sun, 24 Nov 2013 09:49:09 +0000 (04:49 -0500)]
doc: Use 'precise' instead of 'accurate'

11 years agoluatz/timetable: Fix incorrect rfc_3339 second format specifier
daurnimator [Sun, 24 Nov 2013 09:42:40 +0000 (04:42 -0500)]
luatz/timetable: Fix incorrect rfc_3339 second format specifier

11 years agodoc/index: Improve get_tz documentation around timezone_name
daurnimator [Sun, 24 Nov 2013 09:38:40 +0000 (04:38 -0500)]
doc/index: Improve get_tz documentation around timezone_name

11 years agoluatz/tzfile: Open files in readonly binary mode; and if invalid: throw a better...
daurnimator [Sun, 24 Nov 2013 09:35:44 +0000 (04:35 -0500)]
luatz/tzfile: Open files in readonly binary mode; and if invalid: throw a better error message

11 years agotzinfo: Add localise as alias for localize
daurnimator [Sun, 24 Nov 2013 09:32:39 +0000 (04:32 -0500)]
tzinfo: Add localise as alias for localize

11 years agodoc/timetable: Document unpack method
daurnimator [Sun, 24 Nov 2013 09:28:12 +0000 (04:28 -0500)]
doc/timetable: Document unpack method

11 years agoluatz/timetable: Move unpack to be a method rather than local utility function
daurnimator [Sun, 24 Nov 2013 09:25:12 +0000 (04:25 -0500)]
luatz/timetable: Move unpack to be a method rather than local utility function

11 years agoluatz/tzcache: Move out magic strings to file level variables
daurnimator [Sat, 23 Nov 2013 17:49:14 +0000 (12:49 -0500)]
luatz/tzcache: Move out magic strings to file level variables

11 years agodoc/index: Add links to zoneinfo resources
daurnimator [Sat, 23 Nov 2013 17:40:41 +0000 (12:40 -0500)]
doc/index: Add links to zoneinfo resources

11 years agorockspec: Support 5.1 and 5.2
daurnimator [Sat, 23 Nov 2013 17:34:15 +0000 (12:34 -0500)]
rockspec: Support 5.1 and 5.2

11 years agoCOPYING: License under MIT
daurnimator [Sat, 23 Nov 2013 16:55:18 +0000 (11:55 -0500)]
COPYING: License under MIT