Skip to content

Commit dcbee2e

Browse files
committed
Add. http parser rockspec for Lua 5.4
1 parent e40f488 commit dcbee2e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ before_script:
5151
- luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
5252
- luarocks show luafilesystem > /dev/null 2>&1 || luarocks install luafilesystem
5353
- luarocks show dkjson > /dev/null 2>&1 || luarocks install dkjson --deps-mode=none
54+
- luarocks show lua-http-parser > /dev/null 2>&1 || luarocks install lua-http-parser || luarocks install test/deps/lua-http-parser-v2.7-1.rockspec
5455
- luarocks show pegasus > /dev/null 2>&1 || luarocks install pegasus http.parser
5556
--server=http://luarocks.org/manifests/moteus
5657
- luarocks show pegasus-router > /dev/null 2>&1 || luarocks install pegasus-router
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env lua
2+
3+
package = 'lua-http-parser'
4+
version = 'v2.7-1'
5+
source = {
6+
url = 'gitrec+https://github.com/brimworks/lua-http-parser'
7+
}
8+
description = {
9+
summary = "A Lua binding to Ryan Dahl's http request/response parser.",
10+
detailed = '',
11+
homepage = 'http://github.com/brimworks/lua-http-parser',
12+
license = 'MIT', --as with Ryan's
13+
}
14+
dependencies = {
15+
'lua >= 5.1, < 5.5',
16+
'luarocks-fetch-gitrec',
17+
}
18+
build = {
19+
type = 'builtin',
20+
modules = {
21+
['http.parser'] = {
22+
sources = {
23+
"http-parser/http_parser.c",
24+
"lua-http-parser.c"
25+
}
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)