SHA256
10
0
forked from pool/lua-penlight

Accepting request 998617 from devel:languages:lua

OBS-URL: https://build.opensuse.org/request/show/998617
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-penlight?expand=0&rev=5
This commit is contained in:
2022-08-23 12:26:08 +00:00
committed by Git OBS Bridge
5 changed files with 17 additions and 30 deletions

BIN
Penlight-1.10.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
Penlight-1.13.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Aug 20 18:37:57 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Update to version 1.13.1:
* fix tests on Lua 5.4.3
* fix(stringx) strip using wrong index if # > 200
* fix(path) currentdir does not accept parameters
* etc. https://github.com/lunarmodules/Penlight/compare/1.10.0...1.13.1
- Removed lua5_4_3.patch: upstream
-------------------------------------------------------------------
Wed Apr 21 12:57:58 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-penlight
# spec file
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
#
# All modifications and additions to the file contributed by third parties
@@ -16,6 +16,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define flavor @BUILD_FLAVOR@%{nil}
%define mod_name penlight
%define rname Penlight
@@ -28,14 +29,13 @@ ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
%endif
Version: 1.10.0
Version: 1.13.1
Release: 0
Summary: Generally useful modules inspired by the Python standard libraries
License: MIT
Group: Development/Languages/Other
URL: https://lunarmodules.github.io/Penlight/
Source0: https://github.com/lunarmodules/Penlight/archive/%{version}/%{rname}-%{version}.tar.gz
Patch0: lua5_4_3.patch
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-ldoc
BuildRequires: %{flavor}-luafilesystem

View File

@@ -1,23 +0,0 @@
From 10dfaea6adfddab4f138faad67b563b7c33c90a3 Mon Sep 17 00:00:00 2001
From: Pierre Chapuis <git@catwell.info>
Date: Thu, 29 Apr 2021 11:31:12 +0200
Subject: [PATCH] fix tests on Lua 5.4.3
see http://lua-users.org/lists/lua-l/2021-04/msg00024.html
---
tests/lua/mod52.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/lua/mod52.lua b/tests/lua/mod52.lua
index 06e505e0..4b3ec7ce 100644
--- a/tests/lua/mod52.lua
+++ b/tests/lua/mod52.lua
@@ -15,7 +15,7 @@ function answer ()
["1"] = "attempt to call global 'print'",
["2"] = "attempt to call global 'print'",
["3"] = "attempt to call a nil value",
- ["4"] = "attempt to call a nil value",
+ ["4"] = "a nil value",
}
local expected = versioned_errors[LUA_VERSION:match("Lua 5.(%d)")]
test.assertraise(function()