From a84b3a019bdfbc79d4d3cdaa007845d612461b06 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 30 Jun 2022 09:46:17 +0200 Subject: update to 1.0.6 (unusable) open https://github.com/khanamiryan/php-qrcode-detector-decoder/issues/124 Compatibility broken with PHP < 8.1 --- composer.json | 14 +++++++++++++- php-khanamiryan-qrcode-detector-decoder.spec | 13 +++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 66be008..da466df 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,9 @@ "php": ">=5.6" }, "require-dev": { - "phpunit/phpunit": "^5.7 | ^7.5 | ^8.0 | ^9.0" + "phpunit/phpunit": "^5.7 | ^7.5 | ^8.0 | ^9.0", + "rector/rector": "^0.13.6", + "symplify/easy-coding-standard": "^11.0" }, "autoload": { "psr-4": { @@ -33,5 +35,15 @@ "files": [ "lib/Common/customFunctions.php" ] + }, + "scripts": { + "check-cs": "./vendor/bin/ecs check", + "fix-cs": "./vendor/bin/ecs check --fix", + "tests": "./vendor/bin/phpunit" + }, + "autoload-dev": { + "psr-4": { + "Khanamiryan\\QrCodeTests\\": "tests/" + } } } diff --git a/php-khanamiryan-qrcode-detector-decoder.spec b/php-khanamiryan-qrcode-detector-decoder.spec index 57b8103..229decb 100644 --- a/php-khanamiryan-qrcode-detector-decoder.spec +++ b/php-khanamiryan-qrcode-detector-decoder.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-khanamiryan-qrcode-detector-decoder # -# Copyright (c) 2017-2021 Remi Collet +# Copyright (c) 2017-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -8,7 +8,7 @@ # %bcond_without tests -%global gh_commit 04fdd58d86a387065f707dc6d3cc304c719910c1 +%global gh_commit 45326fb83a2a375065dbb3a134b5b8a5872da569 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner khanamiryan %global gh_project php-qrcode-detector-decoder @@ -21,7 +21,7 @@ %global php_home %{_datadir}/php Name: php-%{pk_vendor}-%{pk_project} -Version: 1.0.5.2 +Version: 1.0.6 Release: 1%{?dist} Summary: QR code decoder / reader @@ -109,7 +109,7 @@ require '%{buildroot}%{php_home}/%{ns_project}/autoload.php'; EOF ret=0 -for cmdarg in "php %{phpunit}" php73 php74 php80 php81; do +for cmdarg in "php %{phpunit}" php74 php80 php81 php82; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit9} $filter --verbose || ret=1 @@ -131,6 +131,11 @@ exit $ret %changelog +* Thu Jun 30 2022 Remi Collet - 1.0.6-1 +- update to 1.0.6 (unusable) +- open https://github.com/khanamiryan/php-qrcode-detector-decoder/issues/124 + Compatibility broken with PHP < 8.1 + * Tue Oct 5 2021 Remi Collet - 1.0.5.2-1 - update to 1.0.5.2 -- cgit