Skip to content

Commit 1f71d7d

Browse files
committed
Merge tag '2.1.1'
Hotfix release 2.1.1 - Update all meta files like git, composer, travis, etc. - Correct a bunch of errors like php doc, author validation errors and so on
2 parents 7322bb4 + bc03a47 commit 1f71d7d

Some content is hidden

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

50 files changed

+1604
-755
lines changed

.check-author.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1-
# Paths to exclude from scanning (equivalent to cmd line parameter --exclude=...)
1+
ignore:
2+
- "Mini Model <[email protected]>"
3+
- "Scrutinizer Auto-Fixer <[email protected]>"
4+
25
exclude:
3-
- contao/languages
6+
- /^src\/Resources\/contao\/languages/
7+
8+
9+
mapping:
10+
"Andreas Dziemba <[email protected]>":
11+
- "Andreas Dziemba <[email protected]>"
12+
- "Andreas Dziemba <[email protected]>"
13+
- "adziemba <[email protected]>"
14+
- "Andreas Dziemba <dziemba@men-at-work-de>"

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
.gitattributes export-ignore
33
.gitignore export-ignore
44
.travis.yml export-ignore
5-
travis.php.ini export-ignore
65
build.default.properties export-ignore
76
build.xml export-ignore
87
phpunit.xml.dist export-ignore
98
/.github export-ignore
109
/tests export-ignore
10+
ctb.json export-ignore

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ nbproject/
1313

1414
# composer related
1515
vendor/
16-
composer.lock
1716

1817
# build
1918
build/
19+
composer.lock

.travis.yml

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,62 @@
1+
dist: xenial
2+
3+
addons:
4+
apt:
5+
packages:
6+
- ant-optional
7+
18
language: php
29

310
php:
4-
- "5.4"
5-
- "5.5"
6-
- "5.6"
7-
- "7.0"
11+
- "7.3"
12+
- "7.2"
813
- "7.1"
914

1015
env:
11-
- CONTAO_VERSION=~3.5.5
16+
- CONTAO_VERSION=~4.7.0
17+
- CONTAO_VERSION=~4.6.0
18+
- CONTAO_VERSION=~4.5.0
19+
- CONTAO_VERSION=~4.4.0
1220

1321
# Exclude impossible Contao Version combinations.
1422
matrix:
1523
exclude:
16-
17-
sudo: false
18-
19-
before_install:
20-
- phpenv config-add travis.php.ini
21-
22-
install:
24+
fast_finish: true
25+
allow_failures:
26+
- env: CONTAO_VERSION=~4.7.0
27+
- env: CONTAO_VERSION=~4.6.0
28+
- env: CONTAO_VERSION=~4.5.0
29+
30+
before_script:
31+
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
2332
- travis_retry composer self-update && composer --version
24-
- travis_retry composer require contao/core $CONTAO_VERSION --no-update
25-
- travis_retry composer update --prefer-dist --no-interaction
26-
33+
- travis_retry composer require contao/core-bundle $CONTAO_VERSION --no-update
34+
- >
35+
if [ "x${TRAVIS_TAG}" != "x" ]; then
36+
export COMPOSER_ROOT_VERSION=${TRAVIS_TAG}
37+
else
38+
export COMPOSER_ROOT_VERSION=$([[ ${TRAVIS_BRANCH} =~ (hotfix|release)/([0-9.]*(-(alpha|beta|rc)[0-9]+)?) ]] \
39+
&& echo ${BASH_REMATCH[2]} \
40+
|| echo dev-${TRAVIS_BRANCH})
41+
fi
42+
- echo "Using root version ${COMPOSER_ROOT_VERSION}"
43+
- >
44+
echo "PHP version: ${TRAVIS_PHP_VERSION}";
45+
if [ "x${TRAVIS_PHP_VERSION}" == "xnightly" ]; then
46+
travis_retry composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-suggest
47+
else
48+
travis_retry composer update --prefer-dist --no-interaction --no-suggest
49+
fi
2750
script: ant -keep-going
2851

2952
# Hack to make things work again - we can not use a shallow repository.
3053
git:
3154
depth: 2147483647
55+
56+
branches:
57+
except:
58+
- /.*-translation/
59+
60+
cache:
61+
directories:
62+
- vendor

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ General Public License ever published by the Free Software Foundation.
162162
whether future versions of the GNU Lesser General Public License shall
163163
apply, that proxy's public statement of acceptance of any version is
164164
permanent authorization for you to choose that version for the
165-
Library.
165+
Library.

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1-
Translated multi table
2-
======================
1+
[![Build Status](https://travis-ci.org/MetaModels/attribute_translatedtablemulti.svg)](https://travis-ci.org/MetaModels/attribute_translatedtablemulti/branches)
2+
[![Latest Version tagged](http://img.shields.io/github/tag/MetaModels/attribute_translatedtablemulti.svg)](https://github.com/MetaModels/attribute_translatedtablemulti/tags)
3+
[![Latest Version on Packagist](http://img.shields.io/packagist/v/MetaModels/attribute_translatedtablemulti.svg)](https://packagist.org/packages/MetaModels/attribute_translatedtablemulti)
4+
[![Installations via composer per month](http://img.shields.io/packagist/dm/MetaModels/attribute_translatedtablemulti.svg)](https://packagist.org/packages/MetaModels/attribute_translatedtablemulti)
35

4-
The translated multi table attribute.
6+
# The translated multi attribute table
57

6-
With this attribute you are able to create complex table structures with the MultiColumnWizard.
7-
Create a config in the initConfig or somewhere else and write something like this:
8+
The translated multi attribute table for MetaModels.
9+
10+
11+
## Original idea by Byteworks:
12+
- [Ronny Binder](mailto:[email protected])
13+
- [Michael Bischof](mailto:[email protected])
14+
15+
16+
## The translated table multi attribute.
17+
18+
With this attribute you are able to create complex table structures with the [MultiColumnWizard]( https://github.com/menatwork/contao-multicolumnwizard-bundle).
19+
Create the configuration in e.g. the app/Resources/contao/config/dcaconfig.php or somewhere else where the config is loaded and write something like this:
20+
21+
The `mm_test` is the name of the table and the `multi_test` is the name of the field.
822

923
```php
1024
$GLOBALS['TL_CONFIG']['metamodelsattribute_multi']['mm_test']['multi_test'] = array(
@@ -35,13 +49,11 @@ $GLOBALS['TL_CONFIG']['metamodelsattribute_multi']['mm_test']['multi_test'] = ar
3549
'inputType' => 'text',
3650
'eval' => array
3751
(
38-
'style'=>'width:130px',
52+
'style' =>'width:130px',
3953
'mandatory'=>false,
40-
'rgxp'=>'url'
54+
'rgxp' =>'url'
4155
)
4256
),
4357
),
4458
);
45-
```
46-
47-
The `mm_test` is the name of the table and the `multi_test` is the name of the field.
59+
```

build.default.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77

88
phpcs.standard=${basedir}/vendor/phpcq/coding-standard/phpcs/PhpCodeQuality/ruleset.xml
99
phpmd.ruleset=${basedir}/vendor/phpcq/coding-standard/phpmd/ruleset.xml
10+
11+
phpcs.excluded=src/Resources/contao/languages

build.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
This project is using the PHP code quality project (PHPCQ).
4-
54
For documentation visit:
65
https://github.com/phpcq/phpcq
7-
86
-->
9-
<project name="metamodels/attribute_translatedtabletext" default="build">
10-
<import file="vendor/phpcq/phpcq/phpcq.main.xml"/>
11-
</project>
7+
<project name="metamodels/attribute_translatedtablemulti" default="build">
8+
<import file="vendor/phpcq/phpcq/phpcq.main.xml" />
9+
</project>

composer.json

Lines changed: 50 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
{
2-
"name": "menatwork/attribute_translatedmulti",
3-
"description": "MetaModels attribute for dynamic translated multi table",
2+
"name": "metamodels/attribute_translatedtablemulti",
3+
"description": "MetaModels attribute for dynamic translated multi attribute table",
44
"keywords": [
55
"contao",
66
"metamodels",
77
"attribute",
8-
"text",
9-
"tabletext",
8+
"multi",
9+
"tablemulti",
1010
"translatable",
1111
"multicolumnwizard"
1212
],
13-
"type": "contao-module",
14-
"homepage": "http://www.men-at-work.de/",
15-
"license": "LGPL-3.0+",
13+
"type": "contao-bundle",
14+
"homepage": "http://now.metamodel.me/",
15+
"license": "LGPL-3.0-or-later",
1616
"authors": [
17+
{
18+
"name": "Ronny Binder",
19+
"email": "[email protected]",
20+
"homepage": "https://www.byteworks.ch",
21+
"role": "Originator"
22+
},
23+
{
24+
"name": "Michael Bischof",
25+
"email": "[email protected]",
26+
"homepage": "https://www.byteworks.ch",
27+
"role": "Originator"
28+
},
1729
{
1830
"name": "Christian Schiffler",
1931
"email": "[email protected]",
@@ -24,42 +36,49 @@
2436
"name": "Stefan Heimes",
2537
"email": "[email protected]",
2638
"role": "Developer"
39+
},
40+
{
41+
"name": "Andreas Dziemba",
42+
"email": "[email protected]",
43+
"role": "Developer"
2744
}
2845
],
2946
"support": {
30-
"issues": "https://github.com/menatwork/attribute_translatedmulti/issues",
31-
"source": "https://github.com/menatwork/attribute_translatedmulti"
47+
"email": "[email protected]",
48+
"issues": "https://github.com/MetaModels/attribute_translatedtablemulti/issues",
49+
"source": "https://github.com/MetaModels/attribute_translatedtablemulti"
3250
},
3351
"require": {
34-
"php": ">=5.4",
35-
"contao/core": "^3.5.5",
36-
"contao-community-alliance/composer-plugin": "~2.0",
37-
"contao-community-alliance/dc-general": "~2.0@beta",
38-
"metamodels/core": "~2.0@alpha"
52+
"php": "^7.1",
53+
"contao-community-alliance/dc-general": "^2.1.3",
54+
"contao/core-bundle": "^4.4.8",
55+
"metamodels/core": "^2.1.1",
56+
"symfony/dependency-injection": "^3.3 || ^4.0",
57+
"symfony/http-kernel": "^3.3 || ^4.0",
58+
"ext-pdo": "*"
3959
},
4060
"require-dev": {
41-
"cyberspectrum/contao-toolbox": "~0.6",
42-
"phpcq/all-tasks": "~1.1",
43-
"metamodels/base-unit-tests": "~1.0"
44-
},
45-
"conflict": {
46-
"contao/core": "3.4.0"
61+
"contao/manager-plugin": "^2.1",
62+
"menatwork/contao-multicolumnwizard-bundle": "^3.4",
63+
"phpcq/all-tasks": "^1.2"
4764
},
4865
"autoload": {
49-
"psr-0": {
50-
"MetaModels": "src/"
66+
"psr-4": {
67+
"MetaModels\\AttributeTranslatedTableMultiBundle\\": "src"
68+
},
69+
"files": [
70+
"src/deprecated-autoload.php"
71+
]
72+
},
73+
"autoload-dev": {
74+
"psr-4": {
75+
"MetaModels\\AttributeTranslatedTableMultiBundle\\Test\\": "tests/Test"
5176
}
5277
},
5378
"extra": {
54-
"contao": {
55-
"symlinks": {
56-
"contao": "system/modules/metamodelsattribute_translatedmulti"
57-
}
58-
},
79+
"contao-manager-plugin": "MetaModels\\AttributeTranslatedTableMultiBundle\\ContaoManager\\Plugin",
5980
"branch-alias": {
60-
"dev-master": "2.1.x-dev",
61-
"dev-develop": "2.2.x-dev"
81+
"dev-master": "2.1.x-dev"
6282
}
63-
},
64-
"prefer-stable": true
83+
}
6584
}

contao/config/autoload.ini

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

0 commit comments

Comments
 (0)