diff --git a/README.md b/README.md index a8c304d..e68dfe8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Copas 4.9 +# Copas 4.10 [](https://github.com/lunarmodules/copas/actions) [](https://coveralls.io/github/lunarmodules/copas) @@ -28,7 +28,7 @@ For more details see [the documentation](http://lunarmodules.github.io/copas/). - update version in `copas.lua` - update version at the top of this README, - update copyright years if needed (in `license.html` and `copas.lua`) - - update cvs rockspec, and create a new rockspec in ./rockspecs + - update cvs rockspec, and create a new rockspec in ./rockspec - create a release branch and commit as `release X.Y.Z` - create PR and wait for merge - tag as `vX_Y_Z` and as `X.Y.Z` diff --git a/docs/index.html b/docs/index.html index 3fdb2bb..e4a29e2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -74,7 +74,7 @@
Current version is 4.9.0 and was developed for Lua 5.1 to 5.5.
+Current version is 4.10.0 and was developed for Lua 5.1 to 5.5.
copas.future class. Wraps a thread in a future, allowing other
threads to wait for its result via future:get() or poll with future:try().
diff --git a/rockspec/copas-4.10.0-1.rockspec b/rockspec/copas-4.10.0-1.rockspec
new file mode 100644
index 0000000..99429c6
--- /dev/null
+++ b/rockspec/copas-4.10.0-1.rockspec
@@ -0,0 +1,57 @@
+local package_name = "copas"
+local package_version = "4.10.0"
+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.6",
+ "luasocket ~> 3",
+ "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.future"] = "src/copas/future.lua",
+ ["copas.queue"] = "src/copas/queue.lua",
+ },
+ copy_directories = {
+ "docs",
+ },
+}
diff --git a/src/copas.lua b/src/copas.lua
index c1a5344..fc1442e 100644
--- a/src/copas.lua
+++ b/src/copas.lua
@@ -135,7 +135,7 @@ end
-- Meta information is public even if beginning with an "_"
copas._COPYRIGHT = "Copyright (C) 2005-2013 Kepler Project, 2015-2026 Thijs Schreijer"
copas._DESCRIPTION = "Coroutine Oriented Portable Asynchronous Services"
-copas._VERSION = "Copas 4.9.0"
+copas._VERSION = "Copas 4.10.0"
-- Close the socket associated with the current connection after the handler finishes
copas.autoclose = true