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

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:

Whitespace removal
authordaurnimator <quae@daurnimator.com>
Sat, 9 Dec 2017 06:44:18 +0000 (17:44 +1100)
committerdaurnimator <quae@daurnimator.com>
Sat, 9 Dec 2017 06:44:18 +0000 (17:44 +1100)
luatz-scm-0.rockspec
spec/strftime_spec.lua

index 6e6d6a5e5946e89b993cb54acec8bf638730eab6..2ceae4cbe9e3bab17c54d3a3733c1b2b4344287d 100644 (file)
@@ -2,7 +2,7 @@ package = "luatz"
 version = "scm-0"
 
 description = {
 version = "scm-0"
 
 description = {
-       summary = "library for time and date manipulation." ;
+       summary = "library for time and date manipulation.";
        detailed = [[
        A lua library for time and date manipulation.
 
        detailed = [[
        A lua library for time and date manipulation.
 
@@ -13,28 +13,28 @@ description = {
          - strftime style formatting
 
        All operations are possible without C extensions, though if available they may be used to increase accuracy.
          - strftime style formatting
 
        All operations are possible without C extensions, though if available they may be used to increase accuracy.
-       ]] ;
-       license = "MIT" ;
+       ]];
+       license = "MIT";
 }
 
 dependencies = {
 }
 
 dependencies = {
-       "lua >= 5.1" ;
+       "lua >= 5.1";
 }
 
 source = {
 }
 
 source = {
-       url = "git://github.com/daurnimator/luatz.git" ;
+       url = "git://github.com/daurnimator/luatz.git";
 }
 
 build = {
 }
 
 build = {
-       type = "builtin" ;
+       type = "builtin";
        modules = {
        modules = {
-               ["luatz.init"]      = "luatz/init.lua" ;
-               ["luatz.gettime"]   = "luatz/gettime.lua" ;
-               ["luatz.parse"]     = "luatz/parse.lua" ;
-               ["luatz.timetable"] = "luatz/timetable.lua" ;
-               ["luatz.strftime"]  = "luatz/strftime.lua" ;
-               ["luatz.tzcache"]   = "luatz/tzcache.lua" ;
-               ["luatz.tzfile"]    = "luatz/tzfile.lua" ;
-               ["luatz.tzinfo"]    = "luatz/tzinfo.lua" ;
-       } ;
+               ["luatz.init"]      = "luatz/init.lua";
+               ["luatz.gettime"]   = "luatz/gettime.lua";
+               ["luatz.parse"]     = "luatz/parse.lua";
+               ["luatz.timetable"] = "luatz/timetable.lua";
+               ["luatz.strftime"]  = "luatz/strftime.lua";
+               ["luatz.tzcache"]   = "luatz/tzcache.lua";
+               ["luatz.tzfile"]    = "luatz/tzfile.lua";
+               ["luatz.tzinfo"]    = "luatz/tzinfo.lua";
+       };
 }
 }
index 7dd9a7b45ea5dc5727b8784df31c89336315df3f..39f92c7eb3f5824a3db73e88476869de7c4e0012 100644 (file)
@@ -16,7 +16,7 @@ describe("#strftime works the same as os.date", function()
                        for i=1, 365*12 do
                                local t = time + 60*60*24*i
                                tt.day = tt.day + 1
                        for i=1, 365*12 do
                                local t = time + 60*60*24*i
                                tt.day = tt.day + 1
-                               tt:normalise ( )
+                               tt:normalise()
                                assert.are.same(os.date(osdf,t), strftime(f,tt))
                        end
                end)
                                assert.are.same(os.date(osdf,t), strftime(f,tt))
                        end
                end)