Merge pull request #27 from wscherphof/v0.2

v0.2, closes #24
This commit is contained in:
Wouter Scherphof 2013-12-06 05:38:36 -08:00
commit 7cdeb634ce
3 changed files with 41 additions and 6 deletions

View File

@ -100,4 +100,4 @@ See `./doc/sample.lua`
See `./tst/init.lua`
##License
MIT; see `./doc/LICENSE`
LGPL+; see `./doc/LICENSE`

View File

@ -1,9 +1,16 @@
(The MIT license)
[GNU Lesser General Public License (LGPL)](http://www.gnu.org/licenses/lgpl-3.0.txt)
Copyright (c) 2013, Wouter Scherphof (wouter.scherphof@gmail.com)
And, as an exception to the LGPL:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
You are permitted to include a version of this library in your application,
without complying with section 4. d) 0) of LGPL 3.0
(requiring recipients of your application to be able to relink against
modified versions of the library).
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
This permission is granted if and ONLY if the resulting application binary
issue is intended for execution in any one of the following environments:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* Apple Inc. iOS
Additional environments may be added to this list in the future.
All other terms of the LGPL continue to apply.

28
htmlparser-0.2-1.rockspec Normal file
View File

@ -0,0 +1,28 @@
package = "htmlparser"
version = "0.2-1"
source = {
url = "git://github.com/wscherphof/lua-htmlparser.git",
branch = "v0.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.2",
"set >= 0.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"
}
}