Skip to content

Commit d506dc8

Browse files
committed
Added rockspec and bumped version to 0.4.0
1 parent 3347bb7 commit d506dc8

3 files changed

Lines changed: 42 additions & 2 deletions

File tree

paseto/v2.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local v2 = {
2-
_VERSION = 'paseto v0.3.0',
2+
_VERSION = 'paseto v0.4.0',
33
_DESCRIPTION = 'PASETO (Platform-Agnostic Security Tokens) for Lua',
44
_URL = 'https://github.com/peter-evans/paseto-lua',
55
_LICENSE = [[

paseto/v2/core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local core = {
2-
_VERSION = 'paseto v0.3.0',
2+
_VERSION = 'paseto v0.4.0',
33
_DESCRIPTION = 'PASETO (Platform-Agnostic Security Tokens) for Lua',
44
_URL = 'https://github.com/peter-evans/paseto-lua',
55
_LICENSE = [[

rockspecs/paseto-0.4.0-1.rockspec

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package = "paseto"
2+
version = "0.4.0-1"
3+
description = {
4+
summary = "PASETO (Platform-Agnostic Security Tokens) for Lua",
5+
detailed = "PASETO (Platform-Agnostic SEcurity TOkens) is a specification and reference implementation for secure stateless tokens.",
6+
homepage = "http://github.com/peter-evans/paseto-lua",
7+
license = "MIT"
8+
}
9+
source = {
10+
url = "https://github.com/peter-evans/paseto-lua/archive/0.4.0.tar.gz",
11+
dir = "paseto-lua-0.4.0"
12+
}
13+
dependencies = {
14+
"lua >= 5.1, < 5.4",
15+
"basexx >= 0.4.0",
16+
"lua-struct >= 0.9.0",
17+
"lua-cjson >= 2.1.0",
18+
"date >= 2.1.2"
19+
}
20+
external_dependencies = {
21+
SODIUM = {
22+
header = "sodium.h"
23+
}
24+
}
25+
supported_platforms = {
26+
"linux"
27+
}
28+
build = {
29+
type = "builtin",
30+
modules = {
31+
["luasodium"] = {
32+
sources = { "csrc/luasodium.c" },
33+
libraries = { "sodium" },
34+
incdirs = { "$(SODIUM_INCDIR)" },
35+
libdirs = { "$(SODIUM_LIBDIR)" }
36+
},
37+
["paseto.v2"] = "paseto/v2.lua",
38+
["paseto.v2.core"] = "paseto/v2/core.lua"
39+
}
40+
}

0 commit comments

Comments
 (0)