From 60aaec11413fa3385a70ad7709f3b13828703f15 Mon Sep 17 00:00:00 2001 From: a-komarev Date: Fri, 18 Oct 2019 16:18:07 +0300 Subject: [PATCH] Bump version. Add @asteisiunas contributor --- CHANGELOG.md | 10 +++++++++- LICENSE | 2 +- README.md | 4 ++-- composer.json | 5 +++-- contracts/Client/Client.php | 2 +- tests/Feature/Authenticator/CookieAuthorizerTest.php | 4 ++-- tests/Feature/Authenticator/TokenAuthorizerTest.php | 2 +- tests/FeatureTestCase.php | 2 +- 8 files changed, 20 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeca20a..b5cdb17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `cybercog/youtrack-rest-php` will be documented in this f ## [Unreleased] +## [6.2.0] - 2019-10-18 + +### Added + +- ([#43]) Configurable API endpoint prefix + ## [6.1.0] - 2018-06-30 ### Added @@ -98,7 +104,8 @@ All notable changes to `cybercog/youtrack-rest-php` will be documented in this f - Initial release. -[Unreleased]: https://github.com/cybercog/youtrack-rest-php/compare/6.1.0...master +[Unreleased]: https://github.com/cybercog/youtrack-rest-php/compare/6.2.0...master +[6.2.0]: https://github.com/cybercog/youtrack-rest-php/compare/6.1.0...6.2.0 [6.1.0]: https://github.com/cybercog/youtrack-rest-php/compare/6.0.2...6.1.0 [6.0.2]: https://github.com/cybercog/youtrack-rest-php/compare/6.0.1...6.0.2 [6.0.0]: https://github.com/cybercog/youtrack-rest-php/compare/5.0.0...6.0.0 @@ -109,6 +116,7 @@ All notable changes to `cybercog/youtrack-rest-php` will be documented in this f [3.0.0]: https://github.com/cybercog/youtrack-rest-php/compare/2.0.1...3.0.0 [2.0.1]: https://github.com/cybercog/youtrack-rest-php/compare/1.0.0...2.0.1 +[#43]: https://github.com/cybercog/youtrack-rest-php/pull/43 [#41]: https://github.com/cybercog/youtrack-rest-php/pull/41 [#40]: https://github.com/cybercog/youtrack-rest-php/pull/40 [#39]: https://github.com/cybercog/youtrack-rest-php/pull/39 diff --git a/LICENSE b/LICENSE index 68d46cf..8499ce5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018, Anton Komarev +Copyright (c) 2019, Anton Komarev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index cc6f4ae..27eeda3 100644 --- a/README.md +++ b/README.md @@ -113,8 +113,8 @@ If you discover any security related issues, please email open@cybercog.su inste ## Contributors -| ![@antonkomarev](https://avatars.githubusercontent.com/u/1849174?s=110)
Anton Komarev
| ![@adam187](https://avatars.githubusercontent.com/u/156628?s=110)
Adam Misiorny
|
dmkdev
| -| :---: | :---: | :---: | +| ![@antonkomarev](https://avatars.githubusercontent.com/u/1849174?s=110)
Anton Komarev
| ![@adam187](https://avatars.githubusercontent.com/u/156628?s=110)
Adam Misiorny
|
dmkdev
|
asteisiunas
| +| :---: | :---: | :---: | :---: | [PHP YouTrack REST contributors list](../../contributors) diff --git a/composer.json b/composer.json index 66b869d..ea1545e 100644 --- a/composer.json +++ b/composer.json @@ -36,8 +36,9 @@ "docs": "https://github.com/cybercog/youtrack-rest-php/wiki" }, "require": { - "guzzlehttp/guzzle": "^6.2", - "php": "^7.1" + "php": "^7.1", + "ext-json": "*", + "guzzlehttp/guzzle": "^6.2" }, "require-dev": { "friendsofphp/php-cs-fixer": "^1.11", diff --git a/contracts/Client/Client.php b/contracts/Client/Client.php index 3ecf47e..9e39c08 100644 --- a/contracts/Client/Client.php +++ b/contracts/Client/Client.php @@ -25,7 +25,7 @@ interface Client /** * Version of PHP YouTrack REST client. */ - const VERSION = '6.1.0'; + const VERSION = '6.2.0'; /** * Create and send an HTTP request. diff --git a/tests/Feature/Authenticator/CookieAuthorizerTest.php b/tests/Feature/Authenticator/CookieAuthorizerTest.php index e65b526..8674ee9 100644 --- a/tests/Feature/Authenticator/CookieAuthorizerTest.php +++ b/tests/Feature/Authenticator/CookieAuthorizerTest.php @@ -31,7 +31,7 @@ class CookieAuthorizerTest extends FeatureTestCase { /** @test */ - public function it_throws_exception_on_failed_cookie_authentication() + public function it_throws_exception_on_failed_cookie_authentication(): void { $mock = new MockHandler([ $this->createFakeResponse(403, 'incorrect-login'), @@ -48,7 +48,7 @@ public function it_throws_exception_on_failed_cookie_authentication() } /** @todo test */ - public function it_can_successfully_authenticate() + public function it_can_successfully_authenticate(): void { $http = new GuzzleHttpClient(new HttpClient([ 'base_uri' => 'http://localhost', diff --git a/tests/Feature/Authenticator/TokenAuthorizerTest.php b/tests/Feature/Authenticator/TokenAuthorizerTest.php index e8500a1..702086a 100644 --- a/tests/Feature/Authenticator/TokenAuthorizerTest.php +++ b/tests/Feature/Authenticator/TokenAuthorizerTest.php @@ -30,7 +30,7 @@ class TokenAuthorizerTest extends FeatureTestCase { /** @test */ - public function it_throws_exception_on_failed_token_authorization() + public function it_throws_exception_on_failed_token_authorization(): void { $mock = new MockHandler([ $this->createFakeResponse(401, 'unauthorized'), diff --git a/tests/FeatureTestCase.php b/tests/FeatureTestCase.php index 2e02a65..816c229 100644 --- a/tests/FeatureTestCase.php +++ b/tests/FeatureTestCase.php @@ -38,7 +38,7 @@ protected function initializeClient(): YouTrackClient return new YouTrackClient($http, $authorizer); } - protected function stubsPath($path): string + protected function stubsPath(string $path): string { return realpath(__DIR__ . '/stubs/' . $path); }