Skip to content

Commit ba56217

Browse files
committed
Merge tag '2.2.0'
Stable release 2.2.0 This brings full Contao 4.9 support. Additionally there have been performance improvements and various bugfixes. - Support manual file sorting - now works with the "picture factory" - this supports lazy-loading of picture settings - option "read only" (readonly) is now possible - Restriction of selection to "files only" has been extended to "folders only" - default remains files and folders - image size support for a lightbox with values from layout settings - a placeholder image can be selected - option whether a download link is protected via the session or not; for backward compatibility reasons the value is set via a migration if the "Download link" checkbox is on; if the protection is deactivated, no cookie is set by the function and the page can be cached
2 parents 423d78f + 3495edd commit ba56217

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1798
-673
lines changed

.check-author.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ mapping:
1010
- 'cogizz <[email protected]>'
1111
- 'cboelter <[email protected]>'
1212
- 'Christopher Boelter <[email protected]>'
13+
'Ingolf Steinhardt <[email protected]>':
14+
- 'zonky2 <[email protected]>'
15+
- 'Ingolf Steinhardt <[email protected]>'
16+
- 'Ingolf Steinhardt <[email protected]>'

.github/workflows/diagnostics.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: MetaModels attribute_file
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- '**-translation'
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php: [7.4]
15+
contao: [~4.9.0]
16+
17+
steps:
18+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Pull source
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
# see https://github.com/shivammathur/setup-php
24+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Setup PHP.
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
coverage: none
29+
30+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Cache composer cache directory
31+
uses: actions/cache@v1
32+
env:
33+
cache-name: composer-cache-dir
34+
with:
35+
path: ~/.cache/composer
36+
key: ${{ runner.os }}-build-${{ env.cache-name }}
37+
38+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Cache vendor directory
39+
uses: actions/cache@v1
40+
env:
41+
cache-name: composer-vendor
42+
with:
43+
path: vendor
44+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.lock') }}
45+
restore-keys: |
46+
${{ runner.os }}-build-${{ env.cache-name }}-
47+
48+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Install composer dependencies
49+
run: composer update --prefer-dist --no-interaction --no-suggest
50+
51+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Run tests
52+
run: ant -keep-going

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ vendor/
1717
# build
1818
build/
1919
/composer.lock
20+
.phpunit.result.cache

.travis.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
[![Build Status](https://travis-ci.org/MetaModels/attribute_file.svg)](https://travis-ci.org/MetaModels/attribute_file/branches)
1+
[![Build Status](https://github.com/MetaModels/attribute_file/actions/workflows/diagnostics.yml/badge.svg)](https://github.com/MetaModels/attribute_file/actions)
22
[![Latest Version tagged](http://img.shields.io/github/tag/MetaModels/attribute_file.svg)](https://github.com/MetaModels/attribute_file/tags)
33
[![Latest Version on Packagist](http://img.shields.io/packagist/v/MetaModels/attribute_file.svg)](https://packagist.org/packages/MetaModels/attribute_file)
44
[![Installations via composer per month](http://img.shields.io/packagist/dm/MetaModels/attribute_file.svg)](https://packagist.org/packages/MetaModels/attribute_file)
55

66
File
77
====
88

9-
The file attribute
9+
The file attribute.

build.default.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
phpcs.standard=${basedir}/vendor/phpcq/coding-standard/phpcs/PhpCodeQuality/ruleset.xml
99
phpmd.ruleset=${basedir}/vendor/phpcq/coding-standard/phpmd/ruleset.xml
1010

11-
phpcs.excluded=src/Resources/contao/languages
11+
phpcs.excluded=src/Resources/contao/languages*\
12+
,src/Resources/contao/dca*

composer.json

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"nontranslatable"
1010
],
1111
"type": "contao-bundle",
12-
"homepage": "http://now.metamodel.me/",
12+
"homepage": "https://now.metamodel.me/",
1313
"license": "LGPL-3.0-or-later",
1414
"authors": [
1515
{
1616
"name": "Christian Schiffler",
1717
"email": "[email protected]",
18-
"homepage": "http://www.cyberspectrum.de",
18+
"homepage": "https://www.cyberspectrum.de",
1919
"role": "Developer"
2020
},
2121
{
@@ -27,21 +27,26 @@
2727
"support": {
2828
"email": "[email protected]",
2929
"issues": "https://github.com/MetaModels/attribute_file/issues",
30-
"wiki": "http://de.contaowiki.org/MetaModels",
30+
"wiki": "https://de.contaowiki.org/MetaModels",
3131
"irc": "irc://irc.freenode.org/contao.mm",
3232
"source": "https://github.com/MetaModels/attribute_file"
3333
},
3434
"require": {
35-
"php": "^7.1",
36-
"contao-community-alliance/dc-general": "^2.1.3",
37-
"contao/core-bundle": "^4.4.8",
38-
"metamodels/core": "^2.1.1",
39-
"symfony/dependency-injection": "^3.3 || ^4.0",
40-
"symfony/http-kernel": "^3.3 || ^4.0",
41-
"ext-pdo": "*"
35+
"php": "^7.4",
36+
"ext-pdo": "*",
37+
"cache/array-adapter": "^1.0",
38+
"cache/doctrine-adapter": "^1.0",
39+
"contao-community-alliance/dc-general": "^2.2",
40+
"contao/core-bundle": "^4.9.0, <4.13.0",
41+
"metamodels/core": "^2.2",
42+
"psr/simple-cache": "^1.0",
43+
"symfony/dependency-injection": "^4.4.6",
44+
"symfony/event-dispatcher": "^4.4.6",
45+
"symfony/http-kernel": "~4.4.13"
4246
},
4347
"require-dev": {
4448
"contao/manager-plugin": "^2.1",
49+
"metamodels/contao-frontend-editing": "^2.1",
4550
"menatwork/contao-multicolumnwizard-bundle": "^3.4",
4651
"phpcq/all-tasks": "^1.2"
4752
},
@@ -61,10 +66,14 @@
6166
"extra": {
6267
"contao-manager-plugin": "MetaModels\\AttributeFileBundle\\ContaoManager\\Plugin",
6368
"branch-alias": {
64-
"dev-master": "2.1.x-dev"
69+
"dev-feature/2.2.0": "2.2.x-dev"
6570
}
6671
},
6772
"config": {
73+
"allow-plugins": {
74+
"contao-components/installer": false,
75+
"contao/manager-plugin": false
76+
},
6877
"sort-packages": true
6978
}
7079
}

phpunit.xml.dist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
33
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
55
colors="true"
66
forceCoversAnnotation="true"
77
failOnRisky="true"
@@ -17,9 +17,9 @@
1717
<directory>./tests</directory>
1818
</testsuite>
1919
</testsuites>
20-
<filter>
21-
<whitelist>
20+
<coverage>
21+
<include>
2222
<directory>./src</directory>
23-
</whitelist>
24-
</filter>
23+
</include>
24+
</coverage>
2525
</phpunit>

0 commit comments

Comments
 (0)