Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit e668b63

Browse files
committed
Merging develop to master in preparation for 1.3.0
2 parents 4905600 + 340e9f7 commit e668b63

35 files changed

+3866
-370
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/test export-ignore
2+
.gitattributes export-ignore
3+
.gitignore export-ignore
4+
.travis.yml export-ignore
5+
phpcs.xml export-ignore
6+
phpunit.xml.dist export-ignore

.gitignore

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

.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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 1.3.0 - TBD
6+
7+
### Added
8+
9+
- [#99](https://github.com/zfcampus/zf-rest/pull/99) adds support for v3
10+
releases of Zend Framework components, while retaining compatibility for v2
11+
releases.
12+
- [#96](https://github.com/zfcampus/zf-rest/pull/96) adds a `Content-Location`
13+
header to responses returned from `RestController::create()`, per
14+
[RFC 7231](https://tools.ietf.org/html/rfc7231#section-3.1.4.2).
15+
16+
### Deprecated
17+
18+
- Nothing.
19+
20+
### Removed
21+
22+
- [#99](https://github.com/zfcampus/zf-rest/pull/99) removes support for PHP 5.5.
23+
24+
### Fixed
25+
26+
- [#70](https://github.com/zfcampus/zf-rest/pull/70) updates how the
27+
`RestController` retrieves the identifier from `ZF\Hal\Entity` instances to
28+
use the new `getId()` method introduced in zf-hal 1.4.
29+
- [#94](https://github.com/zfcampus/zf-rest/pull/94) updates the
30+
`RestController` to return Problem Details with a status of 400 if the
31+
page size requested by the client is below zero.
32+
533
## 1.2.1 - 2016-07-12
634

735
### Added

Module.php

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

composer.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "zfcampus/zf-rest",
3-
"description": "ZF2 Module providing structure for RESTful resources",
3+
"description": "ZF Module providing structure for RESTful resources",
44
"type": "library",
55
"license": "BSD-3-Clause",
66
"keywords": [
77
"zf2",
8+
"zf3",
89
"zend",
910
"module",
1011
"rest"
@@ -16,51 +17,51 @@
1617
"source": "https://github.com/zfcampus/zf-rest",
1718
"issues": "https://github.com/zfcampus/zf-rest/issues"
1819
},
19-
"repositories": [
20-
{ "type": "composer", "url": "https://packages.zendframework.com" }
21-
],
2220
"extra": {
2321
"branch-alias": {
2422
"dev-master": "1.2-dev",
2523
"dev-develop": "1.3-dev"
2624
}
2725
},
2826
"require": {
29-
"php": ">=5.5",
30-
"zendframework/zend-eventmanager": "^2.4.0",
31-
"zendframework/zend-json": "^2.4.0",
32-
"zendframework/zend-loader": "^2.4.0",
33-
"zendframework/zend-mvc": "^2.4.0",
34-
"zendframework/zend-paginator": "^2.4.0",
35-
"zendframework/zend-stdlib": "^2.4.0",
36-
"zfcampus/zf-api-problem": "~1.0",
37-
"zfcampus/zf-content-negotiation": "~1.0",
38-
"zfcampus/zf-hal": "~1.1",
39-
"zfcampus/zf-mvc-auth": "~1.1"
27+
"php": "^5.6 || ^7.0",
28+
"zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
29+
"zendframework/zend-mvc": "^2.7.9 || ^3.0.2",
30+
"zendframework/zend-paginator": "^2.7",
31+
"zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
32+
"zfcampus/zf-api-problem": "^1.2.1",
33+
"zfcampus/zf-content-negotiation": "^1.2.1",
34+
"zfcampus/zf-hal": "^1.4",
35+
"zfcampus/zf-mvc-auth": "^1.4"
4036
},
4137
"require-dev": {
42-
"phpunit/phpunit": "~4.7",
38+
"phpunit/phpunit": "^4.8 || ^5.0",
4339
"squizlabs/php_codesniffer": "^2.3.1",
44-
"zendframework/zend-console": "^2.4.0",
45-
"zendframework/zend-escaper": "^2.4.0",
46-
"zendframework/zend-http": "^2.4.0",
47-
"zendframework/zend-inputfilter": "^2.4.0",
48-
"zendframework/zend-servicemanager": "^2.4.0",
49-
"zendframework/zend-uri": "^2.4.0",
50-
"zendframework/zend-validator": "^2.4.0",
51-
"zendframework/zend-view": "^2.4.0"
40+
"zendframework/zend-escaper": "^2.5.2",
41+
"zendframework/zend-http": "^2.5.4",
42+
"zendframework/zend-inputfilter": "^2.7.2",
43+
"zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
44+
"zendframework/zend-uri": "^2.5.2",
45+
"zendframework/zend-validator": "^2.8.1",
46+
"zendframework/zend-view": "^2.8.1"
5247
},
5348
"autoload": {
5449
"psr-4": {
5550
"ZF\\Rest\\": "src/"
56-
},
57-
"classmap": [
58-
"Module.php"
59-
]
51+
}
6052
},
6153
"autoload-dev": {
6254
"psr-4": {
6355
"ZFTest\\Rest\\": "test/"
6456
}
57+
},
58+
"scripts": {
59+
"check": [
60+
"@cs-check",
61+
"@test"
62+
],
63+
"cs-check": "phpcs",
64+
"cs-fix": "phpcbf",
65+
"test": "phpunit"
6566
}
6667
}

0 commit comments

Comments
 (0)