Skip to content

Commit

Permalink
Finish 5.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlaefer committed Mar 25, 2020
2 parents 44b1526 + d93e621 commit 9f8a041
Show file tree
Hide file tree
Showing 233 changed files with 2,743 additions and 2,648 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
.sass-cache
/node_modules

### CakePHP 4 ###
/config/app_local.php

### CakePHP 3 ###
schema-dump-default.lock
/logs
Expand Down
30 changes: 18 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ php:

env:
matrix:
- DB=mysql DATABASE_TEST_URL='mysql://root:[email protected]/cakephp_test'
- DB=mysql

global:
- DEFAULT=1
- PHP=1
Expand All @@ -22,6 +23,7 @@ matrix:
- php: 7.2
env: PHPCS=1 DEFAULT=0
- php: 7.3
- php: 7.4
- language: node_js
env: JS=1 DEFAULT=0 PHP=0
node_js:
Expand All @@ -34,7 +36,7 @@ matrix:
- google-chrome-stable
script: yarn travis

dist: trusty
dist: bionic

services:
- mysql
Expand All @@ -47,22 +49,26 @@ cache:
before_install:
- phpenv config-rm xdebug.ini

- if [ $PHP = 1 ] && [ $DB = 'mysql' ]; then mysql -u root -e 'CREATE DATABASE cakephp_test;'; fi
- if [ $PHP = 1 ] && [ $DB = 'mysql' ]; then mysql -u root -e "USE mysql; UPDATE user SET password=PASSWORD('password') WHERE user='root'; FLUSH PRIVILEGES;"; fi
- |
if [ $PHP = 1 ] && [ $DB = 'mysql' ]; then
mysql -u root -e 'CREATE DATABASE cakephp_test;';
echo 'DATABASE_TEST_URL="mysql://root:@127.0.0.1/cakephp_test"' >> config/.env;
fi
- if [$PHP = 1 ]; then pecl channel-update pecl.php.net; fi
- |
if [ $PHP = 1 ] && [[ ${TRAVIS_PHP_VERSION} != "5.6" ]]; then
echo 'extension = memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
if [ $PHP = 1 ]; then
pecl channel-update pecl.php.net;
echo 'extension = apcu.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
echo 'apc.enable_cli = 1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
fi
- if [$PHP = 1 ]; then echo 'extension = apcu.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [$PHP = 1 ]; then echo 'apc.enable_cli = 1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]] ; then echo "yes" | pecl install channel://pecl.php.net/apcu-5.1.5 || true; fi
- sudo locale-gen da_DK
- sudo locale-gen da_DK.UTF-8

before_script:
install:
- if [ $PHP = 1 ]; then composer install --prefer-source --no-interaction; fi
- if [ $JS = 1 ]; then yarn; fi

before_script:
- if [ $PHPCS = 1 ]; then vendor/bin/phpcs --config-set installed_paths vendor/cakephp/cakephp-codesniffer; fi

script:
Expand Down
44 changes: 38 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,51 @@
- Δ Changed
- − Removed

## [Next]
## [5.7.0] - 2020-03-25

- [Full commit-log](https://github.com/Schlaefer/Saito/compare/5.6.0...<next>)
- [Download release-zip](https://github.com/Schlaefer/Saito/releases/download/<next>/saito-release-master-<next>.zip)
- [Full commit-log](https://github.com/Schlaefer/Saito/compare/5.6.0...5.7.0)
- [Download release-zip](https://github.com/Schlaefer/Saito/releases/download/saito-release-master-5.7.0.zip)

### Changes

- + Adds permission `saito.core.user.lastLogin.view` to see a user's last login (defaults to admin)
- + Emit event `saito.core.user.activate.after` after user activation
- + Emit event `saito.core.user.register.after` after user registration
- + Adds plugin "Local" for local customization
- ✓ Improves wrapping of long words and links in posting #365
- ✓ Fixes localization in advanced search #364
- ✓ Missing navigation links in search head
- ✓ Internal error viewing posting where the thread starter was deleted
- ✓ Fixes user-blocking not working
- Δ Set default period for advanced search to the last 12 months #354
- Layout
- + Adds navigation to Mix-view on entries/view thread overview #370
- Δ Change thread-tool menu on entries/index #367
- Δ Switches Bota-theme night/day button icon #366
- Δ Change avatar presentation entries/view
- Uploader
- + Default target-size for resizing images is configurable
- Δ Default target-size for resizing images is reduced from 820 kB to 450 kB
- Internal code changes
- + Tests PHP 7.4 on travis-ci
- + Run phpcbf and phpcs with multiple threads
- + Improve error display before settings are loaded
- ✓ Fixes phpstan deprecated warnings
- Δ Improves scanning of JS localizaton strings
- Δ Updates core JS-, CSS- and PHP-libraries
- Δ Updates travis-ci environment from trusty to bionic
- Δ Consolidates PHP event names updates documentation

### Update Notes

## [5.6.0]
Plugins subscribing to events may have to update event-names. See *docs/dev-hooks.md* for available events.

The plugin Local in "plugins/local" allows extending the forum in a CakePHP fashion without running composer.

## [5.6.0] - 2020-01-03

- [Full commit-log](https://github.com/Schlaefer/Saito/compare/5.5.0...5.6.0)
- [Download release-zip](https://github.com/Schlaefer/Saito/releases/download/<next>/saito-release-master-5.6.0.zip)
- [Download release-zip](https://github.com/Schlaefer/Saito/releases/download/saito-release-master-5.6.0.zip)

### Changes

Expand Down Expand Up @@ -387,7 +419,7 @@ body {

Otherwise you have to bring your own Bootstrap-theme and layout additional forum properties from scratch.

## [4.1.10] - 2019-06-10
## [4.10.1] - 2019-06-10

### What's new

Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
"ImageUploader\\Test\\": "plugins/ImageUploader/tests",
"Installer\\": "plugins/Installer/src",
"Installer\\Test\\": "plugins/Installer/tests",
"Local\\": "./plugins/Local/src/",
"Local\\Test\\": "./plugins/Local/tests/",
"SaitoHelp\\": "./plugins/SaitoHelp/src",
"SaitoSearch\\": "./plugins/SaitoSearch/src",
"Sitemap\\": "./plugins/Sitemap/src",
Expand All @@ -100,8 +102,8 @@
"post-create-project-cmd": "App\\Console\\Installer::postInstall",
"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump",

"cs-check": "unset XDEBUG_CONFIG; phpcs --runtime-set ignore_warnings_on_exit true",
"cs-fix": "unset XDEBUG_CONFIG; phpcbf > /dev/null || true",
"cs-check": "unset XDEBUG_CONFIG; phpcs --parallel=4 -p --colors --runtime-set ignore_warnings_on_exit true",
"cs-fix": "unset XDEBUG_CONFIG; phpcbf --parallel=4 -p --colors > /dev/null || true",
"check": ["@cs-fix", "@cs-check"],
"phpstan": "unset XDEBUG_CONFIG; vendor/bin/phpstan analyse --ansi",
"coverage": [
Expand Down
Loading

0 comments on commit 9f8a041

Please sign in to comment.