Skip to content

Commit

Permalink
chore(*) release 4.0.0 (#156)
Browse files Browse the repository at this point in the history
### Summary

Rewrite of the Session library. Thanks @samugi!
  • Loading branch information
bungle authored Feb 1, 2023
1 parent e6bf263 commit f12aaed
Show file tree
Hide file tree
Showing 70 changed files with 19,740 additions and 3,096 deletions.
7 changes: 7 additions & 0 deletions .busted
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
return {
default = {
lua = "resty --shdict 'sessions 1m' --main-conf 'thread_pool default threads=32 max_queue=65536;'",
verbose = true,
output = "gtest",
}
}
19 changes: 19 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: unit_tests
on: [push, pull_request]

jobs:
test:
strategy:
fail-fast: false
matrix:
luaVersion: ["luajit-openresty"]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup environment
run: docker build dev/ -t resty-session

- name: Run tests
run: docker run -v $PWD:/test -w /test resty-session bash -c "luarocks make && busted --exclude-tags=noci"
4 changes: 3 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
std = "ngx_lua"

redefined = false
max_line_length = false
files["lib/resty/session/file.lua"] = { ignore = {"143"}}
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `lua-resty-session` will be documented in this file.

## [4.0.0] - 2023-02-01
- Full rewrite of the library, and is not backwards compatible. Refer new
documentation on this new library.


## [3.10] - 2022-01-14
### Fixed
- 3.9 introduced an issue where calling session:regenerate with flush=true,
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 – 2022, Aapo Talvensaari
Copyright (c) 2014 – 2023 Aapo Talvensaari, 2022 – 2023 Samuele Illuminati
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.PHONY: lint
.PHONY: lint test docs

lint:
@luacheck -q ./lib

test:
busted

docs:
ldoc .
Loading

0 comments on commit f12aaed

Please sign in to comment.