diff --git a/LICENSE b/LICENSE index f27ea93..40be981 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright © 2005-2013 Kepler Project, 2015-2023 Thijs Schreijer. +Copyright © 2005-2013 Kepler Project, 2015-2024 Thijs Schreijer. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/docs/index.html b/docs/index.html index d6af96f..4c08240 100644 --- a/docs/index.html +++ b/docs/index.html @@ -74,7 +74,7 @@
Current version is 4.7.0 and was developed for Lua 5.1 to 5.4.
+Current version is 4.7.1 and was developed for Lua 5.1 to 5.4.
copas.removethread
would not remove a sleeping thread immediately (it would not execute, but
would prevent the Copas loop from exiting until the timer expired).Copyright © 2005-2013 Kepler Project, 2015-2023 Thijs Schreijer.
+Copyright © 2005-2013 Kepler Project, 2015-2024 Thijs Schreijer.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/rockspec/copas-4.7.1-1.rockspec b/rockspec/copas-4.7.1-1.rockspec new file mode 100644 index 0000000..eb1c188 --- /dev/null +++ b/rockspec/copas-4.7.1-1.rockspec @@ -0,0 +1,56 @@ +local package_name = "copas" +local package_version = "4.7.1" +local rockspec_revision = "1" +local github_account_name = "lunarmodules" +local github_repo_name = package_name + + +package = package_name +version = package_version.."-"..rockspec_revision +source = { + url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = (package_version == "cvs") and "master" or nil, + tag = (package_version ~= "cvs") and package_version or nil, +} +description = { + summary = "Coroutine Oriented Portable Asynchronous Services", + detailed = [[ + Copas is a dispatcher based on coroutines that can be used by + TCP/IP servers. It uses LuaSocket as the interface with the + TCP/IP stack. A server registered with Copas should provide a + handler for requests and use Copas socket functions to send + the response. Copas loops through requests and invokes the + corresponding handlers. For a full implementation of a Copas + HTTP server you can refer to Xavante as an example. + ]], + license = "MIT/X11", + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, +} +dependencies = { + "lua >= 5.1, < 5.5", + "luasocket >= 2.1, <= 3.0rc1-2", + "coxpcall >= 1.14", + "binaryheap >= 0.4", + "timerwheel ~> 1", +} +build = { + type = "builtin", + install = { + bin = { + copas = "bin/copas.lua", + } + }, + modules = { + ["copas"] = "src/copas.lua", + ["copas.http"] = "src/copas/http.lua", + ["copas.ftp"] = "src/copas/ftp.lua", + ["copas.smtp"] = "src/copas/smtp.lua", + ["copas.timer"] = "src/copas/timer.lua", + ["copas.lock"] = "src/copas/lock.lua", + ["copas.semaphore"] = "src/copas/semaphore.lua", + ["copas.queue"] = "src/copas/queue.lua", + }, + copy_directories = { + "docs", + }, +} diff --git a/src/copas.lua b/src/copas.lua index 0217982..0c79237 100644 --- a/src/copas.lua +++ b/src/copas.lua @@ -8,7 +8,7 @@ -- Contributors: Diego Nehab, Mike Pall, David Burgess, Leonardo Godinho, -- Thomas Harning Jr., and Gary NG -- --- Copyright 2005-2013 - Kepler Project (www.keplerproject.org), 2015-2023 Thijs Schreijer +-- Copyright 2005-2013 - Kepler Project (www.keplerproject.org), 2015-2024 Thijs Schreijer -- -- $Id: copas.lua,v 1.37 2009/04/07 22:09:52 carregal Exp $ ------------------------------------------------------------------------------- @@ -116,9 +116,9 @@ end -- Meta information is public even if beginning with an "_" -copas._COPYRIGHT = "Copyright (C) 2005-2013 Kepler Project, 2015-2023 Thijs Schreijer" +copas._COPYRIGHT = "Copyright (C) 2005-2013 Kepler Project, 2015-2024 Thijs Schreijer" copas._DESCRIPTION = "Coroutine Oriented Portable Asynchronous Services" -copas._VERSION = "Copas 4.7.0" +copas._VERSION = "Copas 4.7.1" -- Close the socket associated with the current connection after the handler finishes copas.autoclose = true