From 89d25e35c89884c81da20d3aac304c256dc82710 Mon Sep 17 00:00:00 2001 From: Christian Schnegelberger Date: Sun, 20 Oct 2019 17:23:16 +0200 Subject: [PATCH] Bump version to 1.5.2 and add 3.3 to allowed versions --- .gitignore | 3 +-- composer.json | 2 +- src/Phpbb/TranslationValidator/Command/ValidateCommand.php | 4 ++-- translation.php | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 2f5790c..18dfb74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ /vendor/ /.idea/ /bin/ -/3.0/ -/3.1/ /3.2/ +/3.3/ diff --git a/composer.json b/composer.json index 329b631..16723ca 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "phpbb/translation-validator", "description": "A language package validator for phpBB language packs. Language packs are required to pass the validator when submitted to the language pack database.", "homepage": "https://github.com/phpbb/phpbb-translation-validator", - "version": "1.5.1", + "version": "1.5.2", "license": "GPL-2.0-only", "authors": [ { diff --git a/src/Phpbb/TranslationValidator/Command/ValidateCommand.php b/src/Phpbb/TranslationValidator/Command/ValidateCommand.php index 9a65e23..5ca77b7 100644 --- a/src/Phpbb/TranslationValidator/Command/ValidateCommand.php +++ b/src/Phpbb/TranslationValidator/Command/ValidateCommand.php @@ -52,9 +52,9 @@ protected function execute(InputInterface $input, OutputInterface $output) $displayNotices = $input->getOption('display-notices'); $safeMode = $input->getOption('safe-mode'); - if (!in_array($phpbbVersion, array('3.2'))) + if (!in_array($phpbbVersion, array('3.2', '3.3'))) { - throw new \RuntimeException('Invalid phpbb-version, allowed versions: 3.2'); + throw new \RuntimeException('Invalid phpbb-version, allowed versions: 3.2 and 3.3'); } $output = new Output($output, $debug); diff --git a/translation.php b/translation.php index 42fc851..b818804 100644 --- a/translation.php +++ b/translation.php @@ -8,7 +8,7 @@ * */ -const TRANSLATION_VALIDATOR_VERSION = '1.5.1'; +const TRANSLATION_VALIDATOR_VERSION = '1.5.2'; require 'vendor/autoload.php';