summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2023-12-16 00:18:54 +0100
committerGitHub <noreply@github.com>2023-12-16 00:18:54 +0100
commitc06963917ccc951a1058d7b7f412c52d3c4f443a (patch)
treee2341800e3c6cf77dfc50f90b6509c030bd71308
parent682decf94e238bb2e5407c23651f606ca8d7e107 (diff)
downloadluasystem-c06963917ccc951a1058d7b7f412c52d3c4f443a.zip
Release v0.3.0 (#11)v0.3.0
-rw-r--r--CHANGELOG.md4
-rw-r--r--docs/index.html2
-rw-r--r--docs/topics/01-introduction.md.html2
-rw-r--r--docs/topics/CHANGELOG.md.html6
-rw-r--r--docs/topics/LICENSE.md.html2
-rw-r--r--rockspecs/luasystem-0.3.0-1.rockspec75
-rw-r--r--src/core.c2
7 files changed, 84 insertions, 9 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 56d1886..eb85c94 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,7 +14,7 @@ The scope of what is covered by the version number excludes:
- create a release branch
- update the changelog below
-- update version and copyright-years in `./LICENSE.md` and `./src/time.c` (in module constants)
+- update version and copyright-years in `./LICENSE.md` and `./src/core.c` (in module constants)
- create a new rockspec and update the version inside the new rockspec:<br/>
`cp luasystem-scm-0.rockspec ./rockspecs/luasystem-X.Y.Z-1.rockspec`
- clean and render the docs: run `ldoc .`
@@ -28,7 +28,7 @@ The scope of what is covered by the version number excludes:
## Version history
-### Version X.Y.Z, unreleased
+### Version 0.3.0, released 15-Dec-2023
- Feat: on Windows `sleep` now has a precision parameter
- Feat: `setenv` added to set environment variables.
diff --git a/docs/index.html b/docs/index.html
index eb241c6..cd95fc2 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -359,7 +359,7 @@ This function will sleep, without doing a busy-loop and wasting CPU cycles.
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
-<i style="float:right;">Last updated 2023-11-15 07:42:18 </i>
+<i style="float:right;">Last updated 2023-12-15 13:15:09 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
diff --git a/docs/topics/01-introduction.md.html b/docs/topics/01-introduction.md.html
index 2901cc9..319b9d5 100644
--- a/docs/topics/01-introduction.md.html
+++ b/docs/topics/01-introduction.md.html
@@ -63,7 +63,7 @@ independence.</p>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
-<i style="float:right;">Last updated 2023-11-15 07:42:18 </i>
+<i style="float:right;">Last updated 2023-12-15 13:15:09 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
diff --git a/docs/topics/CHANGELOG.md.html b/docs/topics/CHANGELOG.md.html
index f909b4b..4e656c7 100644
--- a/docs/topics/CHANGELOG.md.html
+++ b/docs/topics/CHANGELOG.md.html
@@ -70,7 +70,7 @@
<ul>
<li>create a release branch</li>
<li>update the changelog below</li>
- <li>update version and copyright-years in <code>./LICENSE.md</code> and <code>./src/time.c</code> (in module constants)</li>
+ <li>update version and copyright-years in <code>./LICENSE.md</code> and <code>./src/core.c</code> (in module constants)</li>
<li>create a new rockspec and update the version inside the new rockspec:<br/>
<code>cp luasystem-scm-0.rockspec ./rockspecs/luasystem-X.Y.Z-1.rockspec</code></li>
<li>clean and render the docs: run <code>ldoc .</code></li>
@@ -86,7 +86,7 @@
<p><a name="Version_history"></a></p>
<h2>Version history</h2>
-<h3>Version X.Y.Z, unreleased</h3>
+<h3>Version 0.3.0, released 15-Dec-2023</h3>
<ul>
<li>Feat: on Windows <a href="../index.html#sleep">sleep</a> now has a precision parameter</li>
@@ -114,7 +114,7 @@
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
-<i style="float:right;">Last updated 2023-11-15 07:42:18 </i>
+<i style="float:right;">Last updated 2023-12-15 13:15:09 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
diff --git a/docs/topics/LICENSE.md.html b/docs/topics/LICENSE.md.html
index 67614d2..de3eeff 100644
--- a/docs/topics/LICENSE.md.html
+++ b/docs/topics/LICENSE.md.html
@@ -72,7 +72,7 @@ SOFTWARE.</p>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
-<i style="float:right;">Last updated 2023-11-15 07:42:18 </i>
+<i style="float:right;">Last updated 2023-12-15 13:15:09 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
diff --git a/rockspecs/luasystem-0.3.0-1.rockspec b/rockspecs/luasystem-0.3.0-1.rockspec
new file mode 100644
index 0000000..982aa89
--- /dev/null
+++ b/rockspecs/luasystem-0.3.0-1.rockspec
@@ -0,0 +1,75 @@
+local package_name = "luasystem"
+local package_version = "0.3.0"
+local rockspec_revision = "1"
+local github_account_name = "lunarmodules"
+local github_repo_name = "luasystem"
+
+
+package = package_name
+version = package_version.."-"..rockspec_revision
+
+source = {
+ url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
+ branch = (package_version == "scm") and "master" or nil,
+ tag = (package_version ~= "scm") and "v"..package_version or nil,
+}
+
+description = {
+ summary = 'Platform independent system calls for Lua.',
+ detailed = [[
+ Adds a Lua API for making platform independent system calls.
+ ]],
+ license = 'MIT <http://opensource.org/licenses/MIT>',
+ homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
+}
+
+dependencies = {
+ 'lua >= 5.1',
+}
+
+local function make_platform(plat)
+ local defines = {
+ linux = { },
+ unix = { },
+ macosx = { },
+ win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" },
+ mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" },
+ }
+ local libraries = {
+ linux = { "rt" },
+ unix = { },
+ macosx = { },
+ win32 = { "advapi32", "winmm" },
+ mingw32 = { },
+ }
+ return {
+ modules = {
+ ['system.core'] = {
+ sources = {
+ 'src/core.c',
+ 'src/compat.c',
+ 'src/time.c',
+ 'src/environment.c',
+ 'src/random.c',
+ 'src/term.c',
+ },
+ defines = defines[plat],
+ libraries = libraries[plat],
+ },
+ },
+ }
+end
+
+build = {
+ type = 'builtin',
+ platforms = {
+ linux = make_platform('linux'),
+ unix = make_platform('unix'),
+ macosx = make_platform('macosx'),
+ win32 = make_platform('win32'),
+ mingw32 = make_platform('mingw32'),
+ },
+ modules = {
+ ['system.init'] = 'system/init.lua',
+ },
+}
diff --git a/src/core.c b/src/core.c
index 87fd105..729023f 100644
--- a/src/core.c
+++ b/src/core.c
@@ -4,7 +4,7 @@
#include <lua.h>
#include <lauxlib.h>
-#define LUASYSTEM_VERSION "LuaSystem 0.2.1"
+#define LUASYSTEM_VERSION "LuaSystem 0.3.0"
#ifdef _WIN32
#define LUAEXPORT __declspec(dllexport)