From a972770d8f36687dbb34f23df7d6d76027bf2323 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 26 Sep 2016 11:59:01 -0400 Subject: [PATCH] Prepare v0.9.0 (#163) * Prepare v0.9.0 * Fix trailing newline and release generator --- dev/src/Release/Command/Release.php | 2 +- docs/manifest.json | 1 + src/ServiceBuilder.php | 2 +- tests/Datastore/OperationTest.php | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dev/src/Release/Command/Release.php b/dev/src/Release/Command/Release.php index 8487f35e4628..b6cb070957c1 100644 --- a/dev/src/Release/Command/Release.php +++ b/dev/src/Release/Command/Release.php @@ -85,7 +85,7 @@ private function addToManifest($version) array_unshift($manifest['versions'], 'v'. $version); - $result = file_put_contents($path, json_encode($manifest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); + $result = file_put_contents($path, json_encode($manifest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) ."\n"); if (!$result) { throw new RuntimeException('File write failed'); diff --git a/docs/manifest.json b/docs/manifest.json index ccf50f17fed2..7d3f7e2e26f1 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -6,6 +6,7 @@ "defaultService": "servicebuilder", "markdown": "php", "versions": [ + "v0.9.0", "v0.8.0", "v0.7.1", "v0.7.0", diff --git a/src/ServiceBuilder.php b/src/ServiceBuilder.php index 00fecbbce1bf..213d975b2b7f 100644 --- a/src/ServiceBuilder.php +++ b/src/ServiceBuilder.php @@ -47,7 +47,7 @@ */ class ServiceBuilder { - const VERSION = '0.8.0'; + const VERSION = '0.9.0'; /** * @var array Configuration options to be used between clients. diff --git a/tests/Datastore/OperationTest.php b/tests/Datastore/OperationTest.php index 21719e46d911..1d04bf44b2aa 100644 --- a/tests/Datastore/OperationTest.php +++ b/tests/Datastore/OperationTest.php @@ -412,7 +412,8 @@ public function testCommitWithMutation() public function testRollback() { $this->connection->rollback(Argument::exact(['projectId' => 'foo', 'transaction' => 'bar'])) - ->shouldBeCalled()->willReturn(null); + ->shouldBeCalled() + ->willReturn(null); $this->operation->setConnection($this->connection->reveal());