From 4774ecee7acfcdaa2eb4d3ea0593efe91cd60b3e Mon Sep 17 00:00:00 2001 From: Ilyas Ronef Date: Mon, 29 Mar 2021 19:20:38 +0300 Subject: [PATCH] Prerelease --- CHANGELOG.md | 12 ++++++++++++ CHANGELOG_ru.md | 12 ++++++++++++ README.md | 2 +- README_ru.md | 2 +- composer.json | 2 +- ddTypograph_snippet.php | 4 ++-- src/Snippet.php | 2 +- 7 files changed, 30 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b24aec4..683bce4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # (MODX)EvolutionCMS.snippets.ddTypograph changelog +## Version 2.5 (2021-03-29) +* \* Attention! PHP >= 5.6 is required. +* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.48.1 is required. +* \+ You can just call `\DDTools\Snippet::runSnippet` to run the snippet without DB and eval (see README → Examples). +* \+ `\ddDomainComparator\Snippet`: The new class. All snippet code was moved here. +* \+ README → Links. +* \* Composer.json: + * \+ `homepage` + * \+ `authors`. + * \* `require` → `dd/evolutioncms-libraries-ddtools`: Renamed from `dd/modxevo-library-ddtools`. + + ## Version 2.4.2 (2020-05-06) * \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.32 is required. * \* Compatibility with (MODX)EvolutionCMS.libraries.ddTools >= 0.32. diff --git a/CHANGELOG_ru.md b/CHANGELOG_ru.md index 21c45bb..d71708b 100644 --- a/CHANGELOG_ru.md +++ b/CHANGELOG_ru.md @@ -1,6 +1,18 @@ # (MODX)EvolutionCMS.snippets.ddTypograph changelog +## Version 2.5 (2021-03-29) +* \* Внимание! Требуется PHP >= 5.6. +* \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.48.1. +* \+ Запустить сниппет без DB и eval можно через `\DDTools\Snippet::runSnippet` (см. примеры в README). +* \+ `\ddTypograph\Snippet`: Новый класс. Весь код сниппета перенесён туда. +* \+ README → Ссылки. +* \* Composer.json: + * \+ `homepage` + * \+ `authors`. + * \* `require` → `dd/evolutioncms-libraries-ddtools`: Переименовано из `dd/modxevo-library-ddtools`. + + ## Версия 2.4.2 (2020-05-06) * \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.32. * \* Совместимость с (MODX)EvolutionCMS.libraries.ddTools >= 0.32. diff --git a/README.md b/README.md index 18f521c..6362ec9 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The snippet doesn’t use third-party services, also it sends no requests. In ot #### 1. Elements → Snippets: Create a new snippet with the following data 1. Snippet name: `ddTypograph`. -2. Description: `2.4.2 Snippet for text typography. The snippet doesn’t use third-party services, also it sends no requests. In other words, everything is performed on your server.`. +2. Description: `2.5 Snippet for text typography. The snippet doesn’t use third-party services, also it sends no requests. In other words, everything is performed on your server.`. 3. Category: `Core`. 4. Parse DocBlock: `no`. 5. Snippet code (php): Insert content of the `ddTypograph_snippet.php` file from the archive. diff --git a/README_ru.md b/README_ru.md index 6634c87..f55526d 100644 --- a/README_ru.md +++ b/README_ru.md @@ -19,7 +19,7 @@ #### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами 1. Название сниппета: `ddTypograph`. -2. Описание: `2.4.2 Сниппет типографирует текст. Не использует сторонних сервисов, не отправляет никаких запросов, всё делается прямо у вас на сервере.`. +2. Описание: `2.5 Сниппет типографирует текст. Не использует сторонних сервисов, не отправляет никаких запросов, всё делается прямо у вас на сервере.`. 3. Категория: `Core`. 4. Анализировать DocBlock: `no`. 5. Код сниппета (php): Вставьте содержимое файла `ddTypograph_snippet.php` из архива. diff --git a/composer.json b/composer.json index 0069ec5..99a6891 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "dd/evolutioncms-snippets-ddtypograph", "type": "modxevo-snippet", - "version": "2.4.2", + "version": "2.5.0", "description": "Snippet for text typography. The snippet doesn't use third-party services, also it sends no requests. In other words, everything is performed on your server.", "keywords": [ "modx", diff --git a/ddTypograph_snippet.php b/ddTypograph_snippet.php index 3472db1..c30a90a 100644 --- a/ddTypograph_snippet.php +++ b/ddTypograph_snippet.php @@ -1,13 +1,13 @@