[phpMyAdmin Git] [phpmyadmin/motranslator] 03b431: - Refactored mo parsing into `MoParser` class

matt matt at claritum.com
Tue Mar 29 22:57:38 CEST 2022


Branch: refs/heads/master
Home: https://github.com/phpmyadmin/motranslator
Commit: 03b431f5002ab4f24c9b49d74820a4117fb429da
https://github.com/phpmyadmin/motranslator/commit/03b431f5002ab4f24c9b49d74820a4117fb429da
Author: matt <matt at claritum.com>
Date: 2022-02-28 (Mon, 02 February 2022) +00:00

Changed paths: 
A src/Cache/CacheFactoryInterface.php
A src/Cache/CacheInterface.php
A src/Cache/GetAllInterface.php
A src/Cache/InMemoryCache.php
A src/CacheException.php
A src/MoParser.php
A tests/Cache/InMemoryCacheTest.php
M .github/workflows/tests.yml
M README.md
M benchmark-context.php
M benchmark-plural.php
M benchmark.php
M src/Loader.php
M src/Translator.php
M tests/LoaderTest.php
M tests/MoFilesTest.php
M tests/PluralTest.php
M tests/TranslatorTest.php

Log Message:
-----------
 - Refactored mo parsing into `MoParser` class
 - `Translator` now consumes `CacheInterface`
 - Added default `InMemoryCache`

Commit: 49ebd5f0a4e0ea7551d763ae087d2982aabf0920
https://github.com/phpmyadmin/motranslator/commit/49ebd5f0a4e0ea7551d763ae087d2982aabf0920
Author: matt <matt at claritum.com>
Date: 2022-02-28 (Mon, 02 February 2022) +00:00

Changed paths: 
A benchmark-apcu.php
A src/Cache/ApcuCache.php
A src/Cache/ApcuCacheFactory.php
A tests/Cache/ApcuCacheFactoryTest.php
A tests/Cache/ApcuCacheTest.php
M CHANGELOG.md
M PERFORMANCE.md
M README.md
M composer.json
M tests/LoaderTest.php

Log Message:
-----------
Added ApcuCache

Commit: 3c508bde45cf24b745fbbf8e4e292266a76aaf6a
https://github.com/phpmyadmin/motranslator/commit/3c508bde45cf24b745fbbf8e4e292266a76aaf6a
Author: matt <matt at claritum.com>
Date: 2022-02-28 (Mon, 02 February 2022) +00:00

Changed paths: 
M .github/workflows/tests.yml
M CHANGELOG.md
M README.md
M composer.json
M phpstan-baseline.neon
M src/Loader.php

Log Message:
-----------
Merge branch 'master' into apcu-cache

# Conflicts:
#	CHANGELOG.md
#	README.md

Commit: 8f7dd6e75d7c5c5cc3fb8f27cef430f6e2ea7d43
https://github.com/phpmyadmin/motranslator/commit/8f7dd6e75d7c5c5cc3fb8f27cef430f6e2ea7d43
Author: matt <matt at claritum.com>
Date: 2022-02-28 (Mon, 02 February 2022) +00:00

Changed paths: 
M .github/workflows/tests.yml
M src/Cache/ApcuCache.php

Log Message:
-----------
Set apc.enable_cli=1 in GHA, fixed new phpstan fail

Commit: 46938913a8f35a1e1805d20ee16809136b35c0cc
https://github.com/phpmyadmin/motranslator/commit/46938913a8f35a1e1805d20ee16809136b35c0cc
Author: matt <matt at claritum.com>
Date: 2022-02-28 (Mon, 02 February 2022) +00:00

Changed paths: 
M tests/LoaderTest.php

Log Message:
-----------
Fix test when run on phpunit-7.5

Commit: 3d124db486f27f2b37b8183559e8dddd08b222e3
https://github.com/phpmyadmin/motranslator/commit/3d124db486f27f2b37b8183559e8dddd08b222e3
Author: matt <matt at claritum.com>
Date: 2022-02-28 (Mon, 02 February 2022) +00:00

Changed paths: 
M tests/LoaderTest.php

Log Message:
-----------
Fix psalm fail with phpunit-7.5

Commit: 86bd5b0ca96d349d3ff6223d8901f825ed7b95ac
https://github.com/phpmyadmin/motranslator/commit/86bd5b0ca96d349d3ff6223d8901f825ed7b95ac
Author: matt <matt at claritum.com>
Date: 2022-02-28 (Mon, 02 February 2022) +00:00

Changed paths: 
A tests/Cache/ApcuDisabledTest.php
M .github/workflows/tests.yml
M src/Cache/ApcuCache.php
M tests/Cache/ApcuCacheFactoryTest.php
M tests/TranslatorTest.php

Log Message:
-----------
Added tests for CacheException

Commit: 4d8d931ca416876a8c511a0ff7072467f333458f
https://github.com/phpmyadmin/motranslator/commit/4d8d931ca416876a8c511a0ff7072467f333458f
Author: matt <matt at claritum.com>
Date: 2022-02-28 (Mon, 02 February 2022) +00:00

Changed paths: 
M .github/workflows/tests.yml
M composer.json

Log Message:
-----------
Test matrix runs alternates extensions, not apcu ini setting

Commit: b2153410a4a6dc40251816098fecf18ae634f34f
https://github.com/phpmyadmin/motranslator/commit/b2153410a4a6dc40251816098fecf18ae634f34f
Author: matt <matt at claritum.com>
Date: 2022-03-01 (Tue, 03 March 2022) +00:00

Changed paths: 
M tests/Cache/ApcuCacheTest.php

Log Message:
-----------
Added test to ensure lock honored during initial load

Commit: 43bd486de6c5dae2221485e52f4404fdd0e869a2
https://github.com/phpmyadmin/motranslator/commit/43bd486de6c5dae2221485e52f4404fdd0e869a2
Author: matt <matt at claritum.com>
Date: 2022-03-01 (Tue, 03 March 2022) +00:00

Changed paths: 
M src/Cache/ApcuCache.php
M tests/Cache/ApcuCacheTest.php

Log Message:
-----------
Fixed TTL not set on ApcuCache::LOADED_KEY

Commit: 12f7249c6dcda9cd4eefcff8d36c7451fa01be13
https://github.com/phpmyadmin/motranslator/commit/12f7249c6dcda9cd4eefcff8d36c7451fa01be13
Author: matt <matt at claritum.com>
Date: 2022-03-01 (Tue, 03 March 2022) +00:00

Changed paths: 
M src/Cache/ApcuCache.php
M tests/Cache/ApcuCacheTest.php

Log Message:
-----------
Fixed race when reloading on cache miss

Commit: e0f5da505759c260a3b30a98572a0c9a2d76c16c
https://github.com/phpmyadmin/motranslator/commit/e0f5da505759c260a3b30a98572a0c9a2d76c16c
Author: matt <matt at claritum.com>
Date: 2022-03-01 (Tue, 03 March 2022) +00:00

Changed paths: 
M README.md

Log Message:
-----------
Added instructions on hot-reloading cache

Commit: 5b12b60ca6cab20d8261d5ec06a9b2ba13a5b136
https://github.com/phpmyadmin/motranslator/commit/5b12b60ca6cab20d8261d5ec06a9b2ba13a5b136
Author: matt <matt at claritum.com>
Date: 2022-03-01 (Tue, 03 March 2022) +00:00

Changed paths: 
M .github/workflows/tests.yml

Log Message:
-----------
Try disabling all shared extensions, then specifying to ones we want

Commit: 546ff003dfa8c70a0938a383fcaad200b65f7e05
https://github.com/phpmyadmin/motranslator/commit/546ff003dfa8c70a0938a383fcaad200b65f7e05
Author: matt <matt at claritum.com>
Date: 2022-03-01 (Tue, 03 March 2022) +00:00

Changed paths: 
M tests/Cache/ApcuDisabledTest.php

Log Message:
-----------
Added expected exception message

Commit: 2f4df47f1387941dc92f54e84f874cfda91425b1
https://github.com/phpmyadmin/motranslator/commit/2f4df47f1387941dc92f54e84f874cfda91425b1
Author: matt <matt at claritum.com>
Date: 2022-03-03 (Thu, 03 March 2022) +00:00

Changed paths: 
M src/Cache/ApcuCache.php
M tests/Cache/ApcuCacheTest.php

Log Message:
-----------
Fixed key not prefixed when reloading on miss

Commit: 18070254e923d005694e0848654a0a4b49af20fd
https://github.com/phpmyadmin/motranslator/commit/18070254e923d005694e0848654a0a4b49af20fd
Author: matt <matt at claritum.com>
Date: 2022-03-12 (Sat, 03 March 2022) +00:00

Changed paths: 
M src/Translator.php
M tests/TranslatorTest.php

Log Message:
-----------
Translator can accept filename or null argument for BC

Commit: 856b54aba664c3cea558ab9140735083b20a482e
https://github.com/phpmyadmin/motranslator/commit/856b54aba664c3cea558ab9140735083b20a482e
Author: kynx <matt at kynx.org>
Date: 2022-03-12 (Sat, 03 March 2022) +00:00

Changed paths: 
M src/Translator.php

Log Message:
-----------
Update docblock

Co-authored-by: William Desportes <williamdes at wdes.fr>

Commit: c42fb4becb125c62ec2485511c7f8dcd74fe82c3
https://github.com/phpmyadmin/motranslator/commit/c42fb4becb125c62ec2485511c7f8dcd74fe82c3
Author: William Desportes <williamdes at wdes.fr>
Date: 2022-03-28 (Mon, 03 March 2022) +02:00

Changed paths: 
M composer.json

Log Message:
-----------
Add allow-plugins to composer.json

Signed-off-by: William Desportes <williamdes at wdes.fr>

Commit: 91227d4aa60224420cba69f1d5b2e565f6625944
https://github.com/phpmyadmin/motranslator/commit/91227d4aa60224420cba69f1d5b2e565f6625944
Author: William Desportes <williamdes at wdes.fr>
Date: 2022-03-28 (Mon, 03 March 2022) +02:00

Changed paths: 
A benchmark-apcu.php
A src/Cache/ApcuCache.php
A src/Cache/ApcuCacheFactory.php
A src/Cache/CacheFactoryInterface.php
A src/Cache/CacheInterface.php
A src/Cache/GetAllInterface.php
A src/Cache/InMemoryCache.php
A src/CacheException.php
A src/MoParser.php
A tests/Cache/ApcuCacheFactoryTest.php
A tests/Cache/ApcuCacheTest.php
A tests/Cache/ApcuDisabledTest.php
A tests/Cache/InMemoryCacheTest.php
M .github/workflows/tests.yml
M CHANGELOG.md
M PERFORMANCE.md
M README.md
M benchmark-context.php
M benchmark-plural.php
M benchmark.php
M composer.json
M src/Loader.php
M src/Translator.php
M tests/LoaderTest.php
M tests/MoFilesTest.php
M tests/PluralTest.php
M tests/TranslatorTest.php

Log Message:
-----------
Merge #42 - Add ability to use APCu for translation cache

Pull-request: #42

Signed-off-by: William Desportes <williamdes at wdes.fr>



More information about the Git mailing list