Skip to content

Commit

Permalink
Merge pull request #24 from api7/luarocks
Browse files Browse the repository at this point in the history
luarocks: release version v0.05
  • Loading branch information
jkeys089 authored Sep 19, 2020
2 parents 9704e52 + ad68c4a commit d3c44a0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resty/hmac.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ local ffi_gc = ffi.gc
local ffi_typeof = ffi.typeof
local C = ffi.C
local setmetatable = setmetatable
local error = error


local _M = { _VERSION = '0.05' }
Expand Down Expand Up @@ -101,7 +100,7 @@ else
C.HMAC_CTX_init(ctx)
return ctx
end
ctx_free = function (ctx)
ctx_free = function (ctx)
C.HMAC_CTX_cleanup(ctx)
end
end
Expand Down Expand Up @@ -170,4 +169,5 @@ function _M.reset(self)
return C.HMAC_Init_ex(self._ctx, nil, 0, nil, nil) == 1
end


return _M
24 changes: 24 additions & 0 deletions rockspec/lua-resty-hmac-ffi-0.05-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package = 'lua-resty-hmac-ffi'
version = '0.05-0'

source = {
url = 'git://github.com/jkeys089/lua-resty-hmac',
tag = 'v0.05'
}

description = {
summary = 'HMAC functions for ngx_lua and LuaJIT',
homepage = 'https://github.com/jkeys089/lua-resty-hmac',
license = 'BSD-2-Clause License'
}

dependencies = {
'lua == 5.1'
}

build = {
type = 'builtin',
modules = {
['resty.hmac'] = 'lib/resty/hmac.lua'
}
}

0 comments on commit d3c44a0

Please sign in to comment.