Skip to content

Commit 8ee230f

Browse files
made a template rockspec and script to copy it around
1 parent a346717 commit 8ee230f

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,4 @@ logger:count("another_hit", 1, 1, tags)
7575
## Luarock creation
7676

7777
1. Run `sh scripts/build_rock.sh <version>` where version corresponds to the tag you want to build. Ex. `sh scripts/build_rock.sh v0.1.0`.
78-
79-
2. Run `luarocks make --local`
80-
81-
82-
78+
2. Upload the .src.rock file to the server (TBD)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package = "ngx_lua_datadog"
2-
version = "0.1.0-1"
2+
version = "VERSION-1"
33
source = {
4-
url = "https://github.com/simplifi/ngx_lua_datadog",
5-
tag = "v0.1.0"
4+
url = "git://github.com/simplifi/ngx_lua_datadog.git",
5+
tag = "vVERSION"
66
}
77
description = {
88
detailed = "Simple libary extracted from the [Kong](https://github.com/Mashape/kong) project that allows for Datadog(statsd) collection from inside lua scripts running in nginx",

scripts/build_rock.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ then
66
exit
77
fi
88

9-
luarocks write_rockspec git+https://github.com/simplifi/ngx_lua_datadog \
10-
--tag=$1 \
11-
--license="Apache 2.0" \
12-
--homepage="https://github.com/simplifi/ngx_lua_datadog"
9+
sed -e "s/VERSION/$1/g" ngx_lua_datadog_TEMPLATE.rockspec > ngx_lua_datadog-$1-1.rockspec
10+
11+
luarocks pack ngx_lua_datadog-$1-1.rockspec

0 commit comments

Comments
 (0)