Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copas 4.9
# Copas 4.10

[![Unix build](https://img.shields.io/github/actions/workflow/status/lunarmodules/copas/unix_build.yml?branch=master&label=Unix%20build&logo=linux)](https://github.com/lunarmodules/copas/actions)
[![Coveralls code coverage](https://img.shields.io/coveralls/github/lunarmodules/copas?logo=coveralls)](https://coveralls.io/github/lunarmodules/copas)
Expand Down Expand Up @@ -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`
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h2><a name="over"></a>Overview</h2>

<h2><a name="status"></a>Status</h2>

<p>Current version is 4.9.0 and was developed for Lua 5.1 to 5.5.</p>
<p>Current version is 4.10.0 and was developed for Lua 5.1 to 5.5.</p>

<h2><a name="download"></a>Download</h2>

Expand All @@ -100,7 +100,7 @@ <h2><a name="history"></a>History</h2>

<dl class="history">

<dt><strong>Copas 4.x.x</strong> [unreleased]</dt>
<dt><strong>Copas 4.10.0</strong> [27/Mar/2026]</dt>
<dd><ul>
<li>Feat: added <code>copas.future</code> class. Wraps a thread in a future, allowing other
threads to wait for its result via <code>future:get()</code> or poll with <code>future:try()</code>.
Expand Down
57 changes: 57 additions & 0 deletions rockspec/copas-4.10.0-1.rockspec
Original file line number Diff line number Diff line change
@@ -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",
},
}
2 changes: 1 addition & 1 deletion src/copas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading