Skip to content

Commit

Permalink
Merge 285e324 into 11346ed
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 1, 2020
2 parents 11346ed + 285e324 commit 77ec994
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/busted.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
luaVersion: ["5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty"]
penlightVersion: ["1.9.1", "1.8.0", "1.6.0", "1.5.4"]
penlightVersion: ["1.9.2", "1.8.0", "1.6.0", "1.5.4"]

runs-on: ubuntu-latest

Expand Down
8 changes: 8 additions & 0 deletions cassowary/init.lua
Expand Up @@ -7,6 +7,14 @@ local cassowary
local epsilon = 1e-8
local count = 2

-- The subclass() and initialize() functions are utilities to simplify the
-- syntax of defining classes and populating instances. There is a long-hand
-- way to do this documented in Penlight, and a short-hand syntax like this that
-- should work but is too buggy to use. These workarounds work across a range
-- of versions. Someday it would be nice to deprecate these, but as of 1.9.2
-- these helper functions still work better than what is provided. See
-- https://github.com/lunarmodules/Penlight/projects/1
-- to track progress on _init() reform and syntax variations.
local subclass = function(base, inject)
return tablex.update(class(base), inject)
end
Expand Down

0 comments on commit 77ec994

Please sign in to comment.