From 0196aedc9ae87c17a3c956f38e3945fa1ae10251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Wed, 13 Feb 2019 19:14:11 +0100 Subject: [PATCH] Release v1.1.0 --- CHANGELOG.md | 53 +++++++++++++++++++++++++++++++++++++++++++++- README.md | 5 +++-- src/AblyRest.php | 4 ++-- tests/HttpTest.php | 2 +- 4 files changed, 58 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 823c24b..d8a7522 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,54 @@ # Change Log -## [1.0.0](https://github.com/ably/ably-php/tree/1.0.0) +## [1.1.0](https://github.com/ably/ably-php/tree/1.1.0) +[Full Changelog](https://github.com/ably/ably-php/compare/1.0.1...1.1.0) + +**Implemented enhancements:** + +- Ensure request method accepts UPDATE, PATCH & DELETE verbs [\#57](https://github.com/ably/ably-php/issues/57) + +**Closed issues:** + +- cURL error: Operation timed out after 10001 milliseconds with 0 out of -1 bytes received [\#62](https://github.com/ably/ably-php/issues/62) +- Idempotent publishing is not enabled in the upcoming 1.1 release [\#61](https://github.com/ably/ably-php/issues/61) +- Add idempotent REST publishing [\#56](https://github.com/ably/ably-php/issues/56) +- Ability to subscribe from the server [\#47](https://github.com/ably/ably-php/issues/47) + +**Merged pull requests:** + +- RSH1b4 New push.admin.device\_registrations.remove [\#69](https://github.com/ably/ably-php/pull/69) ([jdavid](https://github.com/jdavid)) +- RSH1b2 New push.admin.device\_registrations.list\_ [\#68](https://github.com/ably/ably-php/pull/68) ([jdavid](https://github.com/jdavid)) +- RSC15f Support for remembered REST fallback host [\#67](https://github.com/ably/ably-php/pull/67) ([jdavid](https://github.com/jdavid)) +- New RSH1b1 New push.admin.device\_registrations.get [\#66](https://github.com/ably/ably-php/pull/66) ([jdavid](https://github.com/jdavid)) +- RHS1b3 New push.admin.device\_registrations.save [\#65](https://github.com/ably/ably-php/pull/65) ([jdavid](https://github.com/jdavid)) +- Add patch [\#64](https://github.com/ably/ably-php/pull/64) ([jdavid](https://github.com/jdavid)) +- Idempotent only enabled in 1.2 [\#63](https://github.com/ably/ably-php/pull/63) ([jdavid](https://github.com/jdavid)) +- RSH1a New push.admin.publish [\#59](https://github.com/ably/ably-php/pull/59) ([jdavid](https://github.com/jdavid)) +- Idempotent [\#58](https://github.com/ably/ably-php/pull/58) ([jdavid](https://github.com/jdavid)) +- Add missing `$` to presence history example [\#55](https://github.com/ably/ably-php/pull/55) ([Quezler](https://github.com/Quezler)) +- Fix failing tests [\#53](https://github.com/ably/ably-php/pull/53) ([funkyboy](https://github.com/funkyboy)) +- Use "http\_proxy" env variable if defined to set the CURLOPT\_PROXY opt… [\#51](https://github.com/ably/ably-php/pull/51) ([DamienHarper](https://github.com/DamienHarper)) +- Add supported platforms to README [\#49](https://github.com/ably/ably-php/pull/49) ([funkyboy](https://github.com/funkyboy)) +- WIP: Update PHP versions tested on Travis [\#48](https://github.com/ably/ably-php/pull/48) ([funkyboy](https://github.com/funkyboy)) + +## [1.0.1](https://github.com/ably/ably-php/tree/1.0.1) (2017-05-16) +[Full Changelog](https://github.com/ably/ably-php/compare/1.0.0...1.0.1) + +**Implemented enhancements:** + +- Fix HttpRequest & HttpRetry timeouts [\#42](https://github.com/ably/ably-php/issues/42) + +**Closed issues:** + +- 0.9: implement TM3; TP4 \(fromEncoded, fromEncodedArray\) [\#40](https://github.com/ably/ably-php/issues/40) + +**Merged pull requests:** + +- v1.0.1 update [\#45](https://github.com/ably/ably-php/pull/45) ([jdavid](https://github.com/jdavid)) +- Fixes issues \#40 and \#42 [\#44](https://github.com/ably/ably-php/pull/44) ([jdavid](https://github.com/jdavid)) + +## [1.0.0](https://github.com/ably/ably-php/tree/1.0.0) (2017-03-07) [Full Changelog](https://github.com/ably/ably-php/compare/0.9.0...1.0.0) ### v1.0 release and upgrade notes from v0.8 @@ -12,6 +59,10 @@ - PaginatedResult hasNext and isLast are attributes [\#41](https://github.com/ably/ably-php/issues/41) +**Closed issues:** + +- 1.0 version bump [\#43](https://github.com/ably/ably-php/issues/43) + ## [0.9.0](https://github.com/ably/ably-php/tree/0.9.0) (2016-08-12) [Full Changelog](https://github.com/ably/ably-php/compare/0.8.4...0.9.0) diff --git a/README.md b/README.md index fb43c59..72a950d 100644 --- a/README.md +++ b/README.md @@ -163,8 +163,9 @@ The client library uses the Ably sandbox environment to provision an app and run This library uses [semantic versioning](http://semver.org/). For each release, the following needs to be done: -* Update the version number in [src/AblyRest.php](./src/AblyRest.php) and commit the change. -* Run [`github_changelog_generator`](https://github.com/skywinder/Github-Changelog-Generator) to automate the update of the [CHANGELOG](./CHANGELOG.md). Once the `CHANGELOG` update has completed, manually change the `Unreleased` heading and link with the current version number such as `1.0.0`. Also ensure that the `Full Changelog` link points to the new version tag instead of the `HEAD`. Commit this change. +* Update the version number in [src/AblyRest.php](./src/AblyRest.php) +* Run [`github_changelog_generator`](https://github.com/skywinder/Github-Changelog-Generator) to automate the update of the [CHANGELOG](./CHANGELOG.md). Once the `CHANGELOG` update has completed, manually change the `Unreleased` heading and link with the current version number such as `1.0.0`. Also ensure that the `Full Changelog` link points to the new version tag instead of the `HEAD`. +* Commit * Add a tag and push to origin such as `git tag 1.0.0 && git push origin 1.0.0` * Visit https://github.com/ably/ably-php/tags and add release notes for the release including links to the changelog entry. * Visit https://packagist.org/packages/ably/ably-php, log in to Packagist, and click the "Update" button. diff --git a/src/AblyRest.php b/src/AblyRest.php index 42482d0..568c56d 100644 --- a/src/AblyRest.php +++ b/src/AblyRest.php @@ -12,8 +12,8 @@ */ class AblyRest { - const API_VERSION = '1.0'; - const LIB_VERSION = '1.0.1'; + const API_VERSION = '1.1'; + const LIB_VERSION = '1.1.0'; public $options; protected static $libFlavour = ''; diff --git a/tests/HttpTest.php b/tests/HttpTest.php index 5d8ed8a..b0d96f3 100644 --- a/tests/HttpTest.php +++ b/tests/HttpTest.php @@ -39,7 +39,7 @@ public function testVersionHeaderPresence() { $curlParams = $ably->http->getCurlLastParams(); - $expectedVersion = '1.0'; + $expectedVersion = '1.1'; $this->assertArrayHasKey( 'X-Ably-Version', $curlParams[CURLOPT_HTTPHEADER], 'Expected Ably version header in HTTP request' ); $this->assertEquals( $expectedVersion, $curlParams[CURLOPT_HTTPHEADER]['X-Ably-Version'], 'Expected Ably version in HTTP header to match AblyRest constant' );