Skip to content

Commit

Permalink
Release v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Nov 21, 2023
1 parent 1c73db8 commit 2478a8d
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 .`
Expand All @@ -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 21-Nov-2023

- Feat: on Windows `sleep` now has a precision parameter
- Feat: `setenv` added to set environment variables.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h3>Returns:</h3>
</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-11-21 21:53:00 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/01-introduction.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h1>1. Introduction</h1>
</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-11-21 21:53:00 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
6 changes: 3 additions & 3 deletions docs/topics/CHANGELOG.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h4>Releasing new versions</h4>
<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>
Expand All @@ -86,7 +86,7 @@ <h4>Releasing new versions</h4>
<p><a name="Version_history"></a></p>
<h2>Version history</h2>

<h3>Version X.Y.Z, unreleased</h3>
<h3>Version 0.3.0, released 21-Nov-2023</h3>

<ul>
<li>Feat: on Windows <a href="../index.html#sleep">sleep</a> now has a precision parameter</li>
Expand Down Expand Up @@ -114,7 +114,7 @@ <h3>Version 0.1.0, released 11-Feb-2016</h3>
</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-11-21 21:53:00 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/LICENSE.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3>Copyright (c) 2016-2023 Oscar Lim</h3>
</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-11-21 21:53:00 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
75 changes: 75 additions & 0 deletions rockspecs/luasystem-0.3.0-1.rockspec
Original file line number Diff line number Diff line change
@@ -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',
},
}
2 changes: 1 addition & 1 deletion src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2478a8d

Please sign in to comment.