From d58ff81e079cc65bb9b2b85f50e9a06cbcfce59e Mon Sep 17 00:00:00 2001 From: Cy Date: Sun, 9 Mar 2014 22:52:51 -0700 Subject: [PATCH] Lua 5.1 (luajit) compatability Just so luajit can work with this package. All tests pass. --- htmlparser-0.3.2-2.rockspec | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 htmlparser-0.3.2-2.rockspec diff --git a/htmlparser-0.3.2-2.rockspec b/htmlparser-0.3.2-2.rockspec new file mode 100644 index 0000000..84e6cc6 --- /dev/null +++ b/htmlparser-0.3.2-2.rockspec @@ -0,0 +1,28 @@ +package = "htmlparser" +version = "0.3.2-2" +source = { + url = "git://github.com/wscherphof/lua-htmlparser.git", + branch = "v0.3.2" +} +description = { + summary = "Parse HTML text into a tree of elements with selectors", + detailed = [[ + Call parse() to build up a tree of element nodes. Each node in the tree, including the root node that is returned by parse(), supports a basic set of jQuery-like selectors. Or you could walk the tree by hand. + ]], + homepage = "http://wscherphof.github.io/lua-htmlparser/", + license = "LGPL+" +} +dependencies = { + "lua >= 5.1", + "set >= 0.2.1-2", + "lunitx >= 0.6" +} +build = { + type = "builtin", + copy_directories = {"doc", "tst"}, + modules = { + htmlparser = "src/htmlparser.lua", + ["htmlparser.ElementNode"] = "src/htmlparser/ElementNode.lua", + ["htmlparser.voidelements"] = "src/htmlparser/voidelements.lua" + } +}