-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkong-plugin-resource-transformer-0.0.6-1.rockspec
43 lines (36 loc) · 2 KB
/
kong-plugin-resource-transformer-0.0.6-1.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package = "kong-plugin-resource-transformer" -- TODO: rename, must match the info in the filename of this rockspec!
-- as a convention; stick to the prefix: `kong-plugin-`
version = "0.0.6-1" -- TODO: renumber, must match the info in the filename of this rockspec!
-- The version '0.1.0' is the source code version, the trailing '1' is the version of this rockspec.
-- whenever the source version changes, the rockspec should be reset to 1. The rockspec version is only
-- updated (incremented) when this file changes, but the source remains the same.
-- TODO: This is the name to set in the Kong configuration `custom_plugins` setting.
-- Here we extract it from the package name.
local pluginName = package:match("^kong%-plugin%-(.+)$") -- "myPlugin"
supported_platforms = {"linux", "macosx"}
source = {
-- these are initially not required to make it work
url = "git://github.com/MyMusicTaste/kong-plugin-resource-transformer",
tag = "v0.0.6"
}
description = {
summary = "Kong plugin to transform the resource ids to uuids.",
homepage = "https://github.com/MyMusicTaste/kong-plugin-resource-transformer",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "builtin",
modules = {
["kong.plugins."..pluginName..".access"] = "kong/plugins/"..pluginName.."/access.lua",
["kong.plugins."..pluginName..".api"] = "kong/plugins/"..pluginName.."/api.lua",
["kong.plugins."..pluginName..".daos"] = "kong/plugins/"..pluginName.."/daos.lua",
["kong.plugins."..pluginName..".handler"] = "kong/plugins/"..pluginName.."/handler.lua",
["kong.plugins."..pluginName..".hooks"] = "kong/plugins/"..pluginName.."/hooks.lua",
["kong.plugins."..pluginName..".schema"] = "kong/plugins/"..pluginName.."/schema.lua",
["kong.plugins."..pluginName..".migrations.cassandra"] = "kong/plugins/"..pluginName.."/migrations/cassandra.lua",
["kong.plugins."..pluginName..".migrations.postgres"] = "kong/plugins/"..pluginName.."/migrations/postgres.lua"
}
}