Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit 9c50109

Browse files
committed
Merge branch 'release/5.1.0'
2 parents 01f3456 + abcc9e4 commit 9c50109

11 files changed

+423
-218
lines changed

.travis.install

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#!/usr/bin/env php
22
<?php
3-
/**
4-
* This script is executed before composer dependencies are installed,
5-
* and as such must be included in each project as part of the skeleton.
6-
*/
73

4+
// Update git to the latest version ...
5+
passthru('sudo apt-get update');
6+
passthru('sudo apt-get install git');
7+
8+
// Update composer to the latest version ...
9+
passthru('composer self-update --no-interaction');
10+
11+
// Build a composer config that uses the GitHub OAuth token if it is available ...
812
$config = array(
913
'config' => array(
1014
'notify-on-install' => false
@@ -16,20 +20,23 @@ if ($token = getenv('ARCHER_TOKEN')) {
1620
'github.com' => $token
1721
);
1822
$composerFlags = '--prefer-dist';
19-
passthru('curl -s -i -H "Authorization: token $ARCHER_TOKEN" https://api.github.com | grep "^X-RateLimit"');
2023
} else {
2124
$composerFlags = '--prefer-source';
2225
}
2326

2427
$file = '~/.composer/config.json';
25-
$dir = dirname($file);
28+
$dir = dirname($file);
2629
if (!is_dir($dir)) {
2730
mkdir($dir, 0755, true);
2831
}
2932
file_put_contents($file, json_encode($config));
3033

31-
passthru('composer self-update --no-interaction');
34+
// Display some information about GitHub rate limiting ...
35+
if ($token) {
36+
passthru('curl -s -i -H "Authorization: token $ARCHER_TOKEN" https://api.github.com | grep "^X-RateLimit"');
37+
}
3238

39+
// Install composer dependencies ...
3340
$exitCode = 0;
3441
passthru('composer install --dev --no-progress --no-interaction --ansi ' . $composerFlags, $exitCode);
3542
exit($exitCode);

.travis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
#
2-
# This is the default Travis CI configuration.
3-
#
4-
# It uses a GitHub OAuth token when fetching composer dependencies
5-
# to avoid IP-based API throttling.
6-
#
7-
# It also allows publication of artifacts via an additional build.
8-
#
91
language: php
102

113
php: ["5.3", "5.4", "5.5", "hhvm"]
@@ -16,10 +8,11 @@ matrix:
168

179
env:
1810
global:
19-
- ARCHER_PUBLISH_VERSION=5.4
11+
- ARCHER_PUBLISH_VERSION=5.5
2012
- secure: "RshLtPfJvPQyIxEsUXlBc/DEfv2uEBvr2gf4Ml6qIbnCjeGUknyhGpjm/oLn4gL0lonTC3gLhT3PVkZG8yTCjFrThnLPucty9LFT4hLfqH2JTSrqYWc57sS3EuaAbjYUo/UtKV9QQTBm3TQYuWGKamzTnNtNM6lITrL19zfcAbM="
2113

2214
install:
2315
- ./.travis.install
16+
2417
script:
2518
- ./vendor/bin/archer travis:build

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Enumeration changelog
22

3+
## 5.1.0 (2014-03-13)
4+
5+
- **[NEW]** Implemented `memberOrNullBy()` and variants
6+
37
## 5.0.1 (2014-01-29)
48

59
- **[MAINTENANCE]** General repository maintenance

CONTRIBUTING.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,27 @@ changes.
66

77
### Code style
88

9-
All PHP code must adhere to the
10-
[PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)
11-
standards.
9+
All PHP code must adhere to the [PSR-2] standards.
1210

1311
### Branching and pull requests
1412

1513
As a guideline, please follow this process:
1614

17-
1. [Fork the repository](https://help.github.com/articles/fork-a-repo).
15+
1. [Fork the repository].
1816
2. Create a topic branch for the change:
19-
* New features should branch from **develop**.
20-
* Bug fixes to existing versions should branch from **master**.
21-
* Please ensure the branch is clearly labelled as a feature or fix.
17+
- New features should branch from **develop**.
18+
- Bug fixes to existing versions should branch from **master**.
19+
- Please ensure the branch is clearly labelled as a feature or fix.
2220
3. Make the relevant changes.
23-
4. [Squash](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages)
24-
commits if necessary.
21+
4. [Squash] commits if necessary.
2522
4. Submit a pull request to the **develop** branch.
2623

2724
Please note this is a general guideline only. For more information on the
28-
branching structure please see the
29-
[git-flow cheatsheet](http://danielkummer.github.com/git-flow-cheatsheet/).
25+
branching structure please see the [git-flow cheatsheet].
26+
27+
<!-- References -->
28+
29+
[Fork the repository]: https://help.github.com/articles/fork-a-repo
30+
[git-flow cheatsheet]: http://danielkummer.github.com/git-flow-cheatsheet/
31+
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
32+
[Squash]: http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
*An enumeration implementation for PHP.*
44

5-
[![The most recent stable version is 5.0.1][version-image]][Semantic versioning]
5+
[![The most recent stable version is 5.1.0][version-image]][Semantic versioning]
66
[![Current build status image][build-image]][Current build status]
77
[![Current coverage status image][coverage-image]][Current coverage status]
88

@@ -274,4 +274,4 @@ function handleCustomHttpRequest(
274274
[Current coverage status]: https://coveralls.io/r/eloquent/enumeration
275275
[eloquent/enumeration]: https://packagist.org/packages/eloquent/enumeration
276276
[Semantic versioning]: http://semver.org/
277-
[version-image]: http://img.shields.io/:semver-5.0.1-brightgreen.svg "This project uses semantic versioning"
277+
[version-image]: http://img.shields.io/:semver-5.1.0-brightgreen.svg "This project uses semantic versioning"

0 commit comments

Comments
 (0)