Skip to content

Commit 4b3b129

Browse files
committed
chore(*): release 1.0.0 (#5)
Signed-off-by: Aapo Talvensaari <[email protected]>
1 parent f0011ff commit 4b3b129

File tree

7 files changed

+51
-9
lines changed

7 files changed

+51
-9
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
All notable changes to `lua-resty-ada` will be documented in this file.
44

55

6-
## [1.0.0] - Unreleased
6+
## [1.0.0] - 2024-08-08
77
### Added
88
- Initial, but complete, implementation of LuaJIT FFI bindings to Ada

README.md

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# lua-resty-ada
22

3-
**lua-resty-ada** implements a LuaJIT FFI bindings to Ada — WHATWG-compliant and fast URL parser.
4-
3+
**lua-resty-ada** implements a LuaJIT FFI bindings to
4+
[Ada — WHATWG-compliant and fast URL parser](https://github.com/ada-url/ada/).
55

66
## Status
77

8-
This library is considered production ready when 1.0.0 is released (not yet).
8+
This library is considered production ready.
99

1010

1111
## Synopsis
@@ -21,6 +21,9 @@ print(tostring(url))
2121
print(tostring(url:clear_port())) -- there are many more methods
2222
-- prints: https://www.xn--7eleven-506c.com/Privacy/Montr%C3%A9al
2323

24+
url:free()
25+
-- explicitly frees the memory without waiting for the garbage collector
26+
2427
-- There is also a static API
2528

2629
print(ada.get_href("https://www.7‑Eleven.com:1234/Home/../Privacy/Montréal"))
@@ -36,6 +39,45 @@ print(ada.clear_port("https://www.7‑Eleven.com:1234/Home/../Privacy/Montréal"
3639
LDoc generated API docs can be viewed at [bungle.github.io/lua-resty-ada](https://bungle.github.io/lua-resty-ada/).
3740

3841

42+
## Installation
43+
44+
### Using OpenResty Package Manager
45+
46+
```bash
47+
❯ opm get bungle/lua-resty-ada
48+
```
49+
50+
OPM repository for `lua-resty-ada` is located at
51+
[opm.openresty.org/package/bungle/lua-resty-ada](https://opm.openresty.org/package/bungle/lua-resty-ada/).
52+
53+
### Using LuaRocks
54+
55+
```bash
56+
❯ luarocks install lua-resty-ada
57+
```
58+
59+
LuaRocks repository for `lua-resty-ada` is located at
60+
[luarocks.org/modules/bungle/lua-resty-ada](https://luarocks.org/modules/bungle/lua-resty-session).
61+
62+
### Building Ada
63+
64+
Please consult [Ada](https://github.com/ada-url/ada/) on how to build or install
65+
the ada library. The Ada library needs to installed in in the system library path or
66+
one of the paths in Lua's `package.cpath`.
67+
68+
This project can also build it by executing (requires [cmake](https://cmake.org/)):
69+
70+
```bash
71+
❯ make build
72+
```
73+
74+
Or run the test suite with [act](https://github.com/nektos/act):
75+
76+
```bash
77+
❯ act
78+
```
79+
80+
3981
# License
4082

4183
`lua-resty-ada` uses two clause BSD license.

docs/classes/search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ <h3>Usage:</h3>
922922
</div> <!-- id="main" -->
923923
<div id="about">
924924
<i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
925-
<i style="float:right;">Last updated 2024-08-07 23:28:17 </i>
925+
<i style="float:right;">Last updated 2024-08-08 22:39:33 </i>
926926
</div> <!-- id="about" -->
927927
</div> <!-- id="container" -->
928928
</body>

docs/classes/url.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ <h2 class="section-header "><a name="Properties"></a>Properties </h2>
21752175
</div> <!-- id="main" -->
21762176
<div id="about">
21772177
<i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
2178-
<i style="float:right;">Last updated 2024-08-07 23:28:17 </i>
2178+
<i style="float:right;">Last updated 2024-08-08 22:39:33 </i>
21792179
</div> <!-- id="about" -->
21802180
</div> <!-- id="container" -->
21812181
</body>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h2>Classes</h2>
7777
</div> <!-- id="main" -->
7878
<div id="about">
7979
<i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
80-
<i style="float:right;">Last updated 2024-08-07 23:28:17 </i>
80+
<i style="float:right;">Last updated 2024-08-08 22:39:33 </i>
8181
</div> <!-- id="about" -->
8282
</div> <!-- id="container" -->
8383
</body>

docs/modules/resty.ada.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2985,7 +2985,7 @@ <h3>Usage:</h3>
29852985
</div> <!-- id="main" -->
29862986
<div id="about">
29872987
<i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
2988-
<i style="float:right;">Last updated 2024-08-07 23:28:17 </i>
2988+
<i style="float:right;">Last updated 2024-08-08 22:39:33 </i>
29892989
</div> <!-- id="about" -->
29902990
</div> <!-- id="container" -->
29912991
</body>

docs/modules/resty.ada.search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ <h3>Usage:</h3>
823823
</div> <!-- id="main" -->
824824
<div id="about">
825825
<i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
826-
<i style="float:right;">Last updated 2024-08-07 23:28:17 </i>
826+
<i style="float:right;">Last updated 2024-08-08 22:39:33 </i>
827827
</div> <!-- id="about" -->
828828
</div> <!-- id="container" -->
829829
</body>

0 commit comments

Comments
 (0)