Skip to content

Commit

Permalink
[fork] kong-lapis v1.8.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bungle committed Mar 16, 2021
1 parent a3d9dfc commit 7c0ee62
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
18 changes: 7 additions & 11 deletions lapis-dev-1.rockspec → kong-lapis-1.8.3.1-1.rockspec
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
package = "lapis"
version = "dev-1"
package = "kong-lapis"
version = "1.8.3.1-1"

source = {
url = "git://github.com/leafo/lapis.git"
url = "git://github.com/Kong/lapis.git",
branch = "v1.8.3.1"
}

description = {
summary = "A web framework for MoonScript & Lua",
homepage = "http://leafo.net/lapis",
maintainer = "Leaf Corcoran <[email protected]>",
summary = "A fork of leafo/lapis for Kong",
maintainer = "Thibault Charbonnier <[email protected]>",
license = "MIT"
}

dependencies = {
"lua",

"ansicolors",
"date",
"etlua",
"loadkit",
"lpeg",
"lua-cjson",
"luaossl",
"luafilesystem",
"luasocket",
"pgmoon",
"lua-resty-openssl",
}

build = {
Expand Down Expand Up @@ -113,4 +110,3 @@ build = {
bin = { "bin/lapis" }
},
}

2 changes: 1 addition & 1 deletion lapis/csrf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ do
local _obj_0 = require("lapis.util.encoding")
encode_base64, encode_with_secret, decode_with_secret = _obj_0.encode_base64, _obj_0.encode_with_secret, _obj_0.decode_with_secret
end
local openssl_rand = require("openssl.rand")
local openssl_rand = require("resty.openssl.rand")
local config = require("lapis.config").get()
local cookie_name = tostring(config.session_name) .. "_token"
local generate_token
Expand Down
2 changes: 1 addition & 1 deletion lapis/csrf.moon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

json = require "cjson"
import encode_base64, encode_with_secret, decode_with_secret from require "lapis.util.encoding"
openssl_rand = require "openssl.rand"
openssl_rand = require "resty.openssl.rand"

config = require"lapis.config".get!
cookie_name = "#{config.session_name}_token"
Expand Down
2 changes: 1 addition & 1 deletion lapis/spec/request.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ mock_request = function(app_cls, url, opts)
return ngx.print("\n")
end,
md5 = function(str)
local digest = require("openssl.digest")
local digest = require("resty.openssl.digest")
return hex((digest.new("md5")):final(str))
end,
header = out_headers,
Expand Down
2 changes: 1 addition & 1 deletion lapis/spec/request.moon
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ mock_request = (app_cls, url, opts={}) ->
ngx.print "\n"

md5: (str) ->
digest = require "openssl.digest"
digest = require "resty.openssl.digest"
hex((digest.new "md5")\final str)

header: out_headers
Expand Down
2 changes: 1 addition & 1 deletion lapis/util/encoding.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local encode_base64, decode_base64, hmac_sha1
local config = require("lapis.config").get()
local openssl_hmac = require("openssl.hmac")
local openssl_hmac = require("resty.openssl.hmac")
if ngx then
do
local _obj_0 = ngx
Expand Down
2 changes: 1 addition & 1 deletion lapis/util/encoding.moon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
local encode_base64, decode_base64, hmac_sha1

config = require"lapis.config".get!
openssl_hmac = require "openssl.hmac"
openssl_hmac = require "resty.openssl.hmac"

if ngx
{:encode_base64, :decode_base64, :hmac_sha1} = ngx
Expand Down

0 comments on commit 7c0ee62

Please sign in to comment.