Skip to content

Commit

Permalink
updates readme and rockspec
Browse files Browse the repository at this point in the history
  • Loading branch information
EvandroLG committed Jan 24, 2024
1 parent 2b1d903 commit 77bbbb5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ end)
* `contentType(string:value)` Adds a value to Content-Type field
* `write(string:body)` It creates the body with the value passed as
parameter
* `writeDefaultErrorMessage(statusCode: string, message:body)` It sets an HTTP status code and writes an error message to the response
* `writeFile(string:file)` It creates the body with the content of the
file passed as parameter
* `post():table` It returns a dictionary with all the POST parameters
Expand Down
44 changes: 44 additions & 0 deletions rockspecs/pegasus-1.0.3-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
local package_name = "pegasus"
local package_version = "1.0.3"
local rockspec_revision = "0"
local github_account_name = "evandrolg"
local github_repo_name = "pegasus.lua"


package = package_name
version = package_version.."-"..rockspec_revision

source = {
url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
branch = (package_version == "dev") and "master" or nil,
tag = (package_version ~= "dev") and ("v"..package_version) or nil,
}

description = {
summary = 'Pegasus.lua is an http server to work with web applications written in Lua language.',
maintainer = 'Evandro Leopoldino Gonçalves (@evandrolg) <evandrolgoncalves@gmail.com>',
license = 'MIT <http://opensource.org/licenses/MIT>',
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
}

dependencies = {
"lua >= 5.1",
"mimetypes >= 1.0.0-1",
"luasocket >= 0.1.0-0",
"luafilesystem >= 1.6",
"lzlib >= 0.4.1.53-1",
}

build = {
type = "builtin",
modules = {
['pegasus.init'] = "src/pegasus/init.lua",
['pegasus.handler'] = 'src/pegasus/handler.lua',
['pegasus.request'] = 'src/pegasus/request.lua',
['pegasus.response'] = 'src/pegasus/response.lua',
['pegasus.compress'] = 'src/pegasus/compress.lua',
['pegasus.plugins.compress'] = 'src/pegasus/plugins/compress.lua',
['pegasus.plugins.downloads'] = 'src/pegasus/plugins/downloads.lua',
['pegasus.plugins.tls'] = 'src/pegasus/plugins/tls.lua',
}
}

0 comments on commit 77bbbb5

Please sign in to comment.