diff options
| author | Caleb Maclennan <caleb@alerque.com> | 2022-03-25 09:56:50 +0300 |
|---|---|---|
| committer | Caleb Maclennan <caleb@alerque.com> | 2022-03-25 11:05:48 +0300 |
| commit | 88c8a85cb6528232288ec590910b7a966aace52b (patch) | |
| tree | 13eee7fb5eb5b167d2670adb972a70ad541c256b | |
| parent | 020c2c746b5a82871e9b7d0c65742f15fa420289 (diff) | |
| download | luasocket-88c8a85cb6528232288ec590910b7a966aace52b.tar.gz luasocket-88c8a85cb6528232288ec590910b7a966aace52b.tar.bz2 luasocket-88c8a85cb6528232288ec590910b7a966aace52b.zip | |
chore: Release v3.0.0v3.0.0
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | docs/index.html | 7 | ||||
| -rw-r--r-- | rockspecs/luasocket-3.0.0-1.rockspec | 134 |
3 files changed, 138 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 931bfa4..0de05f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # Changelog | 1 | # Changelog |
| 2 | 2 | ||
| 3 | ## [v3.0.0](https://github.com/lunarmodules/luasocket/releases/v3.0.0) — unreleased | 3 | ## [v3.0.0](https://github.com/lunarmodules/luasocket/releases/v3.0.0) — 2022-03-25 |
| 4 | 4 | ||
| 5 | The last time LuaSocket had a stable release tag was 14 years ago when 2.0.2 was tagged. | 5 | The last time LuaSocket had a stable release tag was 14 years ago when 2.0.2 was tagged. |
| 6 | A v3 release candidate was tagged 9 years ago. | 6 | A v3 release candidate was tagged 9 years ago. |
diff --git a/docs/index.html b/docs/index.html index 5982071..31e18ad 100644 --- a/docs/index.html +++ b/docs/index.html | |||
| @@ -87,10 +87,9 @@ Author: <a href="http://www.impa.br/~diego">Diego Nehab</a> | |||
| 87 | <h2 id="download">Download</h2> | 87 | <h2 id="download">Download</h2> |
| 88 | 88 | ||
| 89 | <p> | 89 | <p> |
| 90 | LuaSocket version 3.0-rc1 is now available for download! | 90 | LuaSocket version 3.0.0 is now available for download! |
| 91 | It is compatible with Lua 5.1 and 5.2, and has | 91 | It is compatible with Lua 5.1 through 5.4. |
| 92 | been tested on Windows XP, Linux, and Mac OS X. Chances | 92 | Chances are it works well on most UNIX distributions and Windows flavors. |
| 93 | are it works well on most UNIX distributions and Windows flavors. | ||
| 94 | </p> | 93 | </p> |
| 95 | 94 | ||
| 96 | <p> | 95 | <p> |
diff --git a/rockspecs/luasocket-3.0.0-1.rockspec b/rockspecs/luasocket-3.0.0-1.rockspec new file mode 100644 index 0000000..4cf4acf --- /dev/null +++ b/rockspecs/luasocket-3.0.0-1.rockspec | |||
| @@ -0,0 +1,134 @@ | |||
| 1 | package = "LuaSocket" | ||
| 2 | version = "3.0.0-1" | ||
| 3 | source = { | ||
| 4 | url = "git+https://github.com/lunarmodules/luasocket.git", | ||
| 5 | tag = "v3.0.0" | ||
| 6 | } | ||
| 7 | description = { | ||
| 8 | summary = "Network support for the Lua language", | ||
| 9 | detailed = [[ | ||
| 10 | LuaSocket is a Lua extension library composed of two parts: a set of C | ||
| 11 | modules that provide support for the TCP and UDP transport layers, and a | ||
| 12 | set of Lua modules that provide functions commonly needed by applications | ||
| 13 | that deal with the Internet. | ||
| 14 | ]], | ||
| 15 | homepage = "https://github.com/lunarmodules/luasocket", | ||
| 16 | license = "MIT" | ||
| 17 | } | ||
| 18 | dependencies = { | ||
| 19 | "lua >= 5.1" | ||
| 20 | } | ||
| 21 | |||
| 22 | local function make_plat(plat) | ||
| 23 | local defines = { | ||
| 24 | unix = { | ||
| 25 | "LUASOCKET_DEBUG" | ||
| 26 | }, | ||
| 27 | macosx = { | ||
| 28 | "LUASOCKET_DEBUG", | ||
| 29 | "UNIX_HAS_SUN_LEN" | ||
| 30 | }, | ||
| 31 | win32 = { | ||
| 32 | "LUASOCKET_DEBUG", | ||
| 33 | "NDEBUG" | ||
| 34 | }, | ||
| 35 | mingw32 = { | ||
| 36 | "LUASOCKET_DEBUG", | ||
| 37 | "LUASOCKET_INET_PTON", | ||
| 38 | "WINVER=0x0501" | ||
| 39 | } | ||
| 40 | } | ||
| 41 | local modules = { | ||
| 42 | ["socket.core"] = { | ||
| 43 | sources = { | ||
| 44 | "src/luasocket.c" | ||
| 45 | , "src/timeout.c" | ||
| 46 | , "src/buffer.c" | ||
| 47 | , "src/io.c" | ||
| 48 | , "src/auxiliar.c" | ||
| 49 | , "src/options.c" | ||
| 50 | , "src/inet.c" | ||
| 51 | , "src/except.c" | ||
| 52 | , "src/select.c" | ||
| 53 | , "src/tcp.c" | ||
| 54 | , "src/udp.c" | ||
| 55 | , "src/compat.c" }, | ||
| 56 | defines = defines[plat], | ||
| 57 | incdir = "/src" | ||
| 58 | }, | ||
| 59 | ["mime.core"] = { | ||
| 60 | sources = { "src/mime.c", "src/compat.c" }, | ||
| 61 | defines = defines[plat], | ||
| 62 | incdir = "/src" | ||
| 63 | }, | ||
| 64 | ["socket.http"] = "src/http.lua", | ||
| 65 | ["socket.url"] = "src/url.lua", | ||
| 66 | ["socket.tp"] = "src/tp.lua", | ||
| 67 | ["socket.ftp"] = "src/ftp.lua", | ||
| 68 | ["socket.headers"] = "src/headers.lua", | ||
| 69 | ["socket.smtp"] = "src/smtp.lua", | ||
| 70 | ltn12 = "src/ltn12.lua", | ||
| 71 | socket = "src/socket.lua", | ||
| 72 | mime = "src/mime.lua" | ||
| 73 | } | ||
| 74 | if plat == "unix" | ||
| 75 | or plat == "macosx" | ||
| 76 | or plat == "haiku" | ||
| 77 | then | ||
| 78 | modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c" | ||
| 79 | if plat == "haiku" then | ||
| 80 | modules["socket.core"].libraries = {"network"} | ||
| 81 | end | ||
| 82 | modules["socket.unix"] = { | ||
| 83 | sources = { | ||
| 84 | "src/buffer.c" | ||
| 85 | , "src/compat.c" | ||
| 86 | , "src/auxiliar.c" | ||
| 87 | , "src/options.c" | ||
| 88 | , "src/timeout.c" | ||
| 89 | , "src/io.c" | ||
| 90 | , "src/usocket.c" | ||
| 91 | , "src/unix.c" | ||
| 92 | , "src/unixdgram.c" | ||
| 93 | , "src/unixstream.c" }, | ||
| 94 | defines = defines[plat], | ||
| 95 | incdir = "/src" | ||
| 96 | } | ||
| 97 | modules["socket.serial"] = { | ||
| 98 | sources = { | ||
| 99 | "src/buffer.c" | ||
| 100 | , "src/compat.c" | ||
| 101 | , "src/auxiliar.c" | ||
| 102 | , "src/options.c" | ||
| 103 | , "src/timeout.c" | ||
| 104 | , "src/io.c" | ||
| 105 | , "src/usocket.c" | ||
| 106 | , "src/serial.c" }, | ||
| 107 | defines = defines[plat], | ||
| 108 | incdir = "/src" | ||
| 109 | } | ||
| 110 | end | ||
| 111 | if plat == "win32" | ||
| 112 | or plat == "mingw32" | ||
| 113 | then | ||
| 114 | modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/wsocket.c" | ||
| 115 | modules["socket.core"].libraries = { "ws2_32" } | ||
| 116 | end | ||
| 117 | return { modules = modules } | ||
| 118 | end | ||
| 119 | |||
| 120 | build = { | ||
| 121 | type = "builtin", | ||
| 122 | platforms = { | ||
| 123 | unix = make_plat("unix"), | ||
| 124 | macosx = make_plat("macosx"), | ||
| 125 | haiku = make_plat("haiku"), | ||
| 126 | win32 = make_plat("win32"), | ||
| 127 | mingw32 = make_plat("mingw32") | ||
| 128 | }, | ||
| 129 | copy_directories = { | ||
| 130 | "docs" | ||
| 131 | , "samples" | ||
| 132 | , "etc" | ||
| 133 | , "test" } | ||
| 134 | } | ||
