Skip to content

Commit fab1483

Browse files
committed
Merging develop to master in preparation for 1.4.0 release.
2 parents 730b8cd + 18125d6 commit fab1483

25 files changed

+878
-472
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage_clover: clover.xml
2+
json_path: coveralls-upload.json

.gitattributes

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
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
1+
/.coveralls.yml export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/.travis.yml export-ignore
5+
/composer.lock export-ignore
6+
/docs/ export-ignore
7+
/phpcs.xml export-ignore
8+
/phpunit.xml.dist export-ignore
9+
/test/ export-ignore

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
vendor/
2-
phpunit.xml
1+
/clover.xml
2+
/coveralls-upload.json
3+
/phpunit.xml
4+
/vendor/

.travis.yml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ language: php
55
cache:
66
directories:
77
- $HOME/.composer/cache
8-
- vendor
98

109
env:
1110
global:
12-
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
11+
- COMPOSER_ARGS="--no-interaction"
12+
- COVERAGE_DEPS="php-coveralls/php-coveralls"
1313

1414
matrix:
15-
fast_finish: true
1615
include:
1716
- php: 5.6
1817
env:
1918
- DEPS=lowest
2019
- php: 5.6
2120
env:
2221
- DEPS=locked
22+
- LEGACY_DEPS="phpunit/phpunit"
2323
- php: 5.6
2424
env:
2525
- DEPS=latest
@@ -29,36 +29,48 @@ matrix:
2929
- php: 7
3030
env:
3131
- DEPS=locked
32-
- CS_CHECK=true
32+
- LEGACY_DEPS="phpunit/phpunit"
3333
- php: 7
3434
env:
3535
- DEPS=latest
36-
- php: hhvm
36+
- php: 7.1
3737
env:
3838
- DEPS=lowest
39-
- php: hhvm
39+
- php: 7.1
4040
env:
4141
- DEPS=locked
42-
- php: hhvm
42+
- CS_CHECK=true
43+
- TEST_COVERAGE=true
44+
- php: 7.1
45+
env:
46+
- DEPS=latest
47+
- php: 7.2
48+
env:
49+
- DEPS=lowest
50+
- php: 7.2
51+
env:
52+
- DEPS=locked
53+
- php: 7.2
4354
env:
4455
- DEPS=latest
45-
allow_failures:
46-
- php: hhvm
47-
48-
notifications:
49-
irc: "irc.freenode.org#apigility-dev"
50-
email: false
5156

5257
before_install:
5358
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
54-
- travis_retry composer self-update
5559

5660
install:
61+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
62+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
5763
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
5864
- 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
65+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
66+
- stty cols 120 && composer show
6167

6268
script:
63-
- composer test
69+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
6470
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
71+
72+
after_script:
73+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi
74+
75+
notifications:
76+
email: false

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

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

5-
## 1.3.1 - TBD
5+
## 1.4.0 - 2018-05-03
66

77
### Added
88

9+
- [#200](https://github.com/zfcampus/zf-apigility/pull/200) adds support for PHP 7.1 and 7.2.
10+
11+
### Changed
12+
913
- Nothing.
1014

1115
### Deprecated
@@ -14,11 +18,12 @@ All notable changes to this project will be documented in this file, in reverse
1418

1519
### Removed
1620

17-
- Nothing.
21+
- [#200](https://github.com/zfcampus/zf-apigility/pull/200) removes support for HHVM.
1822

1923
### Fixed
2024

21-
- Nothing.
25+
- [#194](https://github.com/zfcampus/zf-apigility/pull/194) fixes an issue within `Zend\Apigility\Application` whereby it was not
26+
clearing the "stop propagation" flag prior to triggering new events.
2227

2328
## 1.3.0 - 2016-07-28
2429

CONTRIBUTING.md

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

LICENSE.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
Copyright (c) 2014-2016, Zend Technologies USA, Inc.
2-
1+
Copyright (c) 2014-2018, Zend Technologies USA, Inc.
32
All rights reserved.
43

54
Redistribution and use in source and binary forms, with or without modification,
65
are permitted provided that the following conditions are met:
76

8-
- Redistributions of source code must retain the above copyright notice,
9-
this list of conditions and the following disclaimer.
7+
- Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
109

11-
- Redistributions in binary form must reproduce the above copyright notice,
12-
this list of conditions and the following disclaimer in the documentation
13-
and/or other materials provided with the distribution.
10+
- Redistributions in binary form must reproduce the above copyright notice, this
11+
list of conditions and the following disclaimer in the documentation and/or
12+
other materials provided with the distribution.
1413

1514
- Neither the name of Zend Technologies USA, Inc. nor the names of its
1615
contributors may be used to endorse or promote products derived from this

README.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
ZF Apigility
2-
============
1+
# ZF Apigility
32

4-
[![Build Status](https://travis-ci.org/zfcampus/zf-apigility.png)](https://travis-ci.org/zfcampus/zf-apigility)
3+
[![Build Status](https://secure.travis-ci.org/zfcampus/zf-apigility.svg?branch=master)](https://secure.travis-ci.org/zfcampus/zf-apigility)
4+
[![Coverage Status](https://coveralls.io/repos/github/zfcampus/zf-apigility/badge.svg?branch=master)](https://coveralls.io/github/zfcampus/zf-apigility?branch=master)
55

6-
Introduction
7-
------------
6+
## Introduction
87

98
Meta-module for Zend Framework combining features from:
109

@@ -21,13 +20,11 @@ in order to provide a cohesive solution for exposing web-based APIs.
2120

2221
Also features database-connected REST resources.
2322

24-
Requirements
25-
------------
23+
## Requirements
2624

2725
Please see the [composer.json](composer.json) file.
2826

29-
Installation
30-
------------
27+
## Installation
3128

3229
Run the following `composer` command:
3330

@@ -65,8 +62,7 @@ return [
6562
> that plugin will install zf-apigility, and all modules it depends on, as a
6663
> module in your application configuration for you.
6764
68-
Assets
69-
------
65+
## Assets
7066

7167
If you are using this module along with the [admin](https://github.com/zfcampus/zf-apigility-admin)
7268
and/or the [welcome screen](https://github.com/zfcampus/zf-apigility-welcome),
@@ -85,8 +81,7 @@ you have two options:
8581
plugin *first*, and then this module. (If you have already installed this
8682
module, remove it using `composer remove zfcampus/zf-apigility`.)
8783

88-
Configuration
89-
=============
84+
## Configuration
9085

9186
### User Configuration
9287

@@ -170,8 +165,7 @@ return [
170165
];
171166
```
172167

173-
ZF Events
174-
=========
168+
## ZF Events
175169

176170
### Listeners
177171

@@ -196,8 +190,7 @@ conditionally attach `ZF\ApiProblem\RenderErrorListener` when an `MvcEvent`'s re
196190
`HalJsonModel` or `JsonModel`, ensuring `zf-api-problem` can render a response in situations where
197191
a rendering error occurs.
198192

199-
ZF Services
200-
===========
193+
## ZF Services
201194

202195
### Factories
203196

composer.json

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
11
{
22
"name": "zfcampus/zf-apigility",
33
"description": "Apigility module for Zend Framework",
4-
"type": "library",
54
"license": "BSD-3-Clause",
65
"keywords": [
6+
"zf",
7+
"zendframework",
78
"api",
89
"apigility",
9-
"framework",
10-
"zf2"
10+
"framework"
1111
],
12-
"homepage": "http://apigility.org/",
1312
"support": {
14-
"email": "[email protected]",
15-
"irc": "irc://irc.freenode.net/apigility",
13+
"issues": "https://github.com/zfcampus/zf-apigility/issues",
1614
"source": "https://github.com/zfcampus/zf-apigility",
17-
"issues": "https://github.com/zfcampus/zf-apigility/issues"
18-
},
19-
"extra": {
20-
"branch-alias": {
21-
"dev-master": "1.3-dev",
22-
"dev-develop": "1.4-dev"
23-
},
24-
"zf": {
25-
"module": "ZF\\Apigility"
26-
}
15+
"rss": "https://github.com/zfcampus/zf-apigility/releases.atom",
16+
"chat": "https://zendframework-slack.herokuapp.com",
17+
"forum": "https://discourse.zendframework.com/c/questions/apigility"
2718
},
2819
"require": {
2920
"php": "^5.6 || ^7.0",
@@ -46,8 +37,8 @@
4637
"zfcampus/zf-versioning": "^1.2"
4738
},
4839
"require-dev": {
49-
"phpunit/phpunit": "^4.8 || ^5.0",
50-
"squizlabs/php_codesniffer": "^2.6.2",
40+
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
41+
"zendframework/zend-coding-standard": "~1.0.0",
5142
"zendframework/zend-http": "^2.5.4"
5243
},
5344
"suggest": {
@@ -65,13 +56,26 @@
6556
"ZFTest\\Apigility\\": "test/"
6657
}
6758
},
59+
"config": {
60+
"sort-packages": true
61+
},
62+
"extra": {
63+
"branch-alias": {
64+
"dev-master": "1.4.x-dev",
65+
"dev-develop": "1.5.x-dev"
66+
},
67+
"zf": {
68+
"module": "ZF\\Apigility"
69+
}
70+
},
6871
"scripts": {
6972
"check": [
7073
"@cs-check",
7174
"@test"
7275
],
7376
"cs-check": "phpcs",
7477
"cs-fix": "phpcbf",
75-
"test": "phpunit"
78+
"test": "phpunit --colors=always",
79+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
7680
}
7781
}

0 commit comments

Comments
 (0)