From f5512ad95d39b07ed1261b34bbcbc1c01d12c4b7 Mon Sep 17 00:00:00 2001 From: Pierre Chapuis Date: Thu, 9 Oct 2025 09:47:35 +0200 Subject: [PATCH] update CI and use lunajson for tests https://github.com/harningt/luajson/issues/51 --- .github/workflows/ci.yml | 9 ++++++--- LICENSE.txt | 2 +- README.md | 2 +- http-digest.test.lua | 2 +- rockspec/http-digest-scm-1.rockspec | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 600b14b..f8087b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: luacheck uses: lunarmodules/luacheck@v1 @@ -14,11 +14,14 @@ jobs: tests: strategy: matrix: - lua-version: ["5.1.5", "5.2.4", "5.3.6", "5.4.4"] + lua-version: ["5.1.5", "5.2.4", "5.3.6", "5.4.8"] runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 + + - name: install readline + run: sudo apt-get install -y libreadline-dev - name: localua run: | diff --git a/LICENSE.txt b/LICENSE.txt index 084dd91..e61f237 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,5 +1,5 @@ Copyright (C) 2012-2013 by Moodstocks SAS -Copyright (C) 2014-2022 by Pierre Chapuis +Copyright (C) since 2014 by Pierre Chapuis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 249c5f3..22488f0 100644 --- a/README.md +++ b/README.md @@ -43,4 +43,4 @@ http_digest.http = require "copas.http" ## Copyright - Copyright (c) 2012-2013 Moodstocks SAS -- Copyright (c) 2014-2022 Pierre Chapuis +- Copyright (c) since 2014 Pierre Chapuis diff --git a/http-digest.test.lua b/http-digest.test.lua index 855f0ec..632049d 100644 --- a/http-digest.test.lua +++ b/http-digest.test.lua @@ -5,7 +5,7 @@ local http_digest = require "http-digest" local json_decode do -- Find a JSON parser local ok, json = pcall(require, "cjson") - if not ok then ok, json = pcall(require, "json") end + if not ok then ok, json = pcall(require, "lunajson") end json_decode = json.decode assert(ok and json_decode, "no JSON parser found :(") end diff --git a/rockspec/http-digest-scm-1.rockspec b/rockspec/http-digest-scm-1.rockspec index de09b84..12502f6 100644 --- a/rockspec/http-digest-scm-1.rockspec +++ b/rockspec/http-digest-scm-1.rockspec @@ -31,7 +31,7 @@ build = { test_dependencies = { "cwtest", - "luajson", + "lunajson", "copas", "luasocket >= 3.1", -- see https://github.com/lunarmodules/copas/issues }