From c8b5c7b28fd74f4ec9312900b22b92bd779d8e1f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 11 May 2020 14:47:41 +0200 Subject: update to 1.4.1 raise dependency on PHP 7.2 switch to phpunit8 switch to classmap autoloader --- composer.json | 26 ++++++++++++++++++-------- php-doctrine-inflector.spec | 37 +++++++++++++++++-------------------- 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/composer.json b/composer.json index 2189ff1..aceeb8d 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,9 @@ { "name": "doctrine/inflector", "type": "library", - "description": "Common String Manipulations with regard to casing and singular/plural rules.", - "keywords": ["string", "inflection", "singularize", "pluralize"], - "homepage": "http://www.doctrine-project.org", + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "keywords": ["php", "strings", "words", "manipulation", "inflector", "inflection", "uppercase", "lowercase", "singular", "plural"], + "homepage": "https://www.doctrine-project.org/projects/inflector.html", "license": "MIT", "authors": [ {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"}, @@ -13,20 +13,30 @@ {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"} ], "require": { - "php": "^7.1" + "php": "^7.2" }, "require-dev": { - "phpunit/phpunit": "^6.2" + "doctrine/coding-standard": "^7.0", + "phpstan/phpstan": "^0.11", + "phpstan/phpstan-phpunit": "^0.11", + "phpstan/phpstan-strict-rules": "^0.11", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "autoload": { - "psr-4": { "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector" } + "psr-4": { + "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector", + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } }, "autoload-dev": { - "psr-4": { "Doctrine\\Tests\\Common\\Inflector\\": "tests/Doctrine/Tests/Common/Inflector" } + "psr-4": { + "Doctrine\\Tests\\Common\\Inflector\\": "tests/Doctrine/Tests/Common/Inflector", + "Doctrine\\Tests\\Inflector\\": "tests/Doctrine/Tests/Inflector" + } }, "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "2.0.x-dev" } } } diff --git a/php-doctrine-inflector.spec b/php-doctrine-inflector.spec index c450363..5cdbc65 100644 --- a/php-doctrine-inflector.spec +++ b/php-doctrine-inflector.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-doctrine-inflector # -# Copyright (c) 2013-2019 Shawn Iwinski +# Copyright (c) 2013-2020 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -12,14 +12,14 @@ %global github_owner doctrine %global github_name inflector -%global github_version 1.3.1 -%global github_commit ec3a55242203ffa6a4b27c58176da97ff0a7aec1 +%global github_version 1.4.1 +%global github_commit 4111f6853aea6f28b2b1dcfdde83d12dd3d5e6e3 %global composer_vendor doctrine %global composer_project inflector -# "php": "^7.1" -%global php_min_ver 7.1 +# "php": "^7.2" +%global php_min_ver 7.2 # Build using "--without tests" to disable tests %global with_tests 0%{!?_without_tests:1} @@ -43,12 +43,12 @@ BuildArch: noarch # Tests %if %{with_tests} ## composer.json -BuildRequires: %{_bindir}/phpunit +BuildRequires: phpunit8 BuildRequires: php(language) >= %{php_min_ver} ## phpcompatinfo (computed from version 1.3.0) BuildRequires: php-pcre # Autoloader -BuildRequires: php-composer(fedora/autoloader) +BuildRequires: php-fedora-autoloader-devel %endif # composer.json @@ -74,16 +74,7 @@ Autoloader: %{phpdir}/Doctrine/Common/Inflector/autoload.php %build : Create autoloader -cat <<'AUTOLOAD' | tee lib/Doctrine/Common/Inflector/autoload.php - - 1.4.1-1 +- update to 1.4.1 +- raise dependency on PHP 7.2 +- switch to phpunit8 +- switch to classmap autoloader + * Wed Nov 13 2019 Remi Collet - 1.3.1-1 - update to 1.3.1 -- cgit