--- a/util/caps.lua Mon Aug 10 22:16:05 2015 +0200
+++ b/util/caps.lua Sat Feb 21 10:36:37 2015 +0100
@@ -12,9 +12,9 @@
local t_insert, t_sort, t_concat = table.insert, table.sort, table.concat;
local ipairs = ipairs;
-module "caps"
+local _ENV = nil;
-function calculate_hash(disco_info)
+local function calculate_hash(disco_info)
local identities, features, extensions = {}, {}, {};
for _, tag in ipairs(disco_info) do
if tag.name == "identity" then
@@ -58,4 +58,6 @@
return ver, S;
end
-return _M;
+return {
+ calculate_hash = calculate_hash;
+};