Skip to content

Commit 85ce764

Browse files
committed
Merging develop to master for 1.2.0 release
2 parents 50f1b8c + 89fc4e7 commit 85ce764

33 files changed

+2795
-265
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
composer.lock
21
vendor/

.travis.yml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,60 @@ language: php
55
cache:
66
directories:
77
- $HOME/.composer/cache
8+
- vendor
9+
10+
env:
11+
global:
12+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
813

914
matrix:
1015
fast_finish: true
1116
include:
12-
- php: 5.5
17+
- php: 5.6
18+
env:
19+
- DEPS=lowest
20+
- php: 5.6
1321
env:
14-
- EXECUTE_CS_CHECK=true
22+
- DEPS=locked
1523
- php: 5.6
1624
env:
17-
- EXECUTE_COVERAGE=true
25+
- DEPS=latest
26+
- php: 7
27+
env:
28+
- DEPS=lowest
29+
- php: 7
30+
env:
31+
- DEPS=locked
32+
- CS_CHECK=true
1833
- php: 7
34+
env:
35+
- DEPS=latest
36+
- php: hhvm
37+
env:
38+
- DEPS=lowest
1939
- php: hhvm
40+
env:
41+
- DEPS=locked
42+
- php: hhvm
43+
env:
44+
- DEPS=latest
2045
allow_failures:
21-
- php: 7
2246
- php: hhvm
2347

2448
notifications:
2549
irc: "irc.freenode.org#apigility-dev"
2650
email: false
2751

2852
before_install:
29-
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
30-
- composer self-update
53+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
54+
- travis_retry composer self-update
3155

3256
install:
33-
- travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source
57+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
58+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
59+
- travis_retry composer install $COMPOSER_ARGS
60+
- composer show
3461

3562
script:
36-
- ./vendor/bin/phpunit
37-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
63+
- composer test
64+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file, in reverse chronological order by release.
4+
5+
## 1.2.0 - TBD
6+
7+
### Added
8+
9+
- [#45](https://github.com/zfcampus/zf-api-problem/pull/45) adds support for PHP 7.
10+
- [#44](https://github.com/zfcampus/zf-api-problem/pull/44) and
11+
[#45](https://github.com/zfcampus/zf-api-problem/pull/45) add support for
12+
version 3 components of Zend Framework.
13+
- [#39](https://github.com/zfcampus/zf-api-problem/pull/39) adds the constant
14+
`ApiProblem::CONTENT_TYPE` for specifying the Content-Type of API Problem
15+
responses.
16+
17+
### Deprecated
18+
19+
- Nothing.
20+
21+
### Removed
22+
23+
- [#45](https://github.com/zfcampus/zf-api-problem/pull/45) removes support for
24+
PHP 5.6.
25+
- [#45](https://github.com/zfcampus/zf-api-problem/pull/45) removes the
26+
`Module::getAutoloaderConfig()` implementation, as it was redundant in
27+
composer-based applications.
28+
29+
### Fixed
30+
31+
- [#44](https://github.com/zfcampus/zf-api-problem/pull/44) and
32+
[#45](https://github.com/zfcampus/zf-api-problem/pull/45) ensure that
33+
definition and attachment of the listener aggregates defined in the module
34+
will work with both v2 and v3 versions of zend-eventmanager.
35+
- [#38](https://github.com/zfcampus/zf-api-problem/pull/38) fixes an issue
36+
whereby JSON encoding failed for included stack traces if they originated
37+
within a PHP stream.

composer.json

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,45 @@
1717
"source": "https://github.com/zfcampus/zf-api-problem",
1818
"issues": "https://github.com/zfcampus/zf-api-problem/issues"
1919
},
20-
"repositories": [
21-
{ "type": "composer", "url": "https://packages.zendframework.com" }
22-
],
2320
"extra": {
2421
"branch-alias": {
2522
"dev-master": "1.1-dev",
2623
"dev-develop": "1.2-dev"
24+
},
25+
"zf": {
26+
"module": "ZF\\ApiProblem"
2727
}
2828
},
2929
"require": {
30-
"php": ">=5.5",
31-
"zendframework/zend-eventmanager": "~2.3",
32-
"zendframework/zend-http": "~2.3",
33-
"zendframework/zend-json": "~2.3",
34-
"zendframework/zend-mvc": "~2.3",
35-
"zendframework/zend-view": "~2.3"
30+
"php": "^5.6 || ^7.0",
31+
"ext-json": "*",
32+
"zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
33+
"zendframework/zend-http": "^2.5.4",
34+
"zendframework/zend-json": "^2.6.1 || ^3.0",
35+
"zendframework/zend-mvc": "^2.7.9 || ^3.0.2",
36+
"zendframework/zend-view": "^2.8.1"
3637
},
3738
"require-dev": {
38-
"phpunit/phpunit": "~4.7",
39-
"zendframework/zend-console": "~2.3",
40-
"zendframework/zend-loader": "~2.3",
39+
"phpunit/phpunit": "^4.8",
4140
"squizlabs/php_codesniffer": "^2.3.1"
4241
},
4342
"autoload": {
4443
"psr-4": {
4544
"ZF\\ApiProblem\\": "src/"
46-
},
47-
"classmap": [
48-
"Module.php"
49-
]
45+
}
5046
},
5147
"autoload-dev": {
5248
"psr-4": {
5349
"ZFTest\\ApiProblem\\": "test/"
5450
}
51+
},
52+
"scripts": {
53+
"check": [
54+
"@cs-check",
55+
"@test"
56+
],
57+
"cs-check": "phpcs",
58+
"cs-fix": "phpcbf",
59+
"test": "phpunit"
5560
}
5661
}

0 commit comments

Comments
 (0)