From e9992982f5f3434f74a8b7550a3f1f1289416c3d Mon Sep 17 00:00:00 2001 From: Leandro Santos Date: Tue, 4 May 2021 17:54:41 -0300 Subject: [PATCH 1/2] Update requirements to Laravel 7 --- .phpunit.result.cache | 1 + composer.json | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .phpunit.result.cache diff --git a/.phpunit.result.cache b/.phpunit.result.cache new file mode 100644 index 0000000..9605d1e --- /dev/null +++ b/.phpunit.result.cache @@ -0,0 +1 @@ +C:37:"PHPUnit\Runner\DefaultTestResultCache":4099:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:29:{s:105:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_post_requests";d:0.686;s:104:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_put_requests";d:0.017;s:106:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_patch_requests";d:0.015;s:111:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_does_not_apply_the_idempotency_header_for_get_requests";d:0.015;s:114:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_does_not_apply_the_idempotency_header_for_delete_requests";d:0.015;s:106:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_separate_idempotency_keys_to_each_request";d:0.016;s:124:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_works_when_previous_middleware_doesnt_pass_the_request_by_reference";d:0.015;s:121:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_caches_the_response_to_the_specified_store";d:0.047;s:111:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_prefixes_the_key_with_the_prefix";d:0.016;s:129:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_will_set_the_time_to_live_to_the_configured_amount";d:0.015;s:137:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_will_set_the_time_to_live_to_a_day_when_none_is_configured";d:0.015;s:133:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::it_returns_with_null_when_trying_to_get_a_response_for_a_key_that_is_not_in_the_cache";d:0.015;s:112:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_returns_an_equivalent_response";d:0.016;s:125:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_fetched_the_response_from_the_correct_store";d:0.016;s:117:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_will_prefix_the_key_with_the_prefix";d:0.015;s:132:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.017;s:137:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_json_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.018;s:141:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_redirect_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.019;s:145:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::it_correctly_serialized_a_response_that_has_an_exception_that_cannot_be_serialized_attached_to_it";d:0.052;s:131:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_post_requests";d:0.016;s:130:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_put_requests";d:0.016;s:132:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_patch_requests";d:0.016;s:156:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_return_a_cached_response_if_there_is_not_cached_response_for_the_provided_idempotency_key";d:0.016;s:119:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_if_no_idempotency_key_is_provided";d:0.015;s:103:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_for_a_get_request";d:0.015;s:106:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_for_a_delete_request";d:0.015;s:118:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_returned_the_cached_response_if_the_header_is_wrong";d:0.016;s:128:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_does_not_execute_the_next_middleware_when_it_returns_a_cached_response";d:0.016;s:128:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_executes_the_next_middleware_when_it_does_not_return_a_cached_response";d:0.015;}}} \ No newline at end of file diff --git a/composer.json b/composer.json index 0ea7033..7632a92 100644 --- a/composer.json +++ b/composer.json @@ -3,11 +3,18 @@ "type": "library", "description": "A Laravel library that manages idempotency keys for a request", "license": "MIT", + "repositories": [ + { + "type": "path", + "url": "../fake-requests" + } + ], "require": { "ramsey/uuid": "^3.8", "guzzlehttp/psr7": "^1.4", - "illuminate/support": "^6.0" + "illuminate/support": "^7.0" }, + "autoload": { "psr-4": { "SoapBox\\Idempotency\\": "src/" @@ -20,8 +27,8 @@ }, "require-dev": { "phpunit/phpunit": "^8.0", - "orchestra/testbench": "^4.0", - "jshayes/fake-requests": "^3.0" + "orchestra/testbench": "^5.0", + "jshayes/fake-requests": "dev-master" }, "extra": { "laravel": { From 512381bff8ff1524fc55c8d674dd51fb1f3621e7 Mon Sep 17 00:00:00 2001 From: Leandro Santos Date: Tue, 4 May 2021 18:43:27 -0300 Subject: [PATCH 2/2] Change requirements to use the fork of fake-requests --- .phpunit.result.cache | 2 +- composer.json | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.phpunit.result.cache b/.phpunit.result.cache index 9605d1e..2027c63 100644 --- a/.phpunit.result.cache +++ b/.phpunit.result.cache @@ -1 +1 @@ -C:37:"PHPUnit\Runner\DefaultTestResultCache":4099:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:29:{s:105:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_post_requests";d:0.686;s:104:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_put_requests";d:0.017;s:106:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_patch_requests";d:0.015;s:111:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_does_not_apply_the_idempotency_header_for_get_requests";d:0.015;s:114:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_does_not_apply_the_idempotency_header_for_delete_requests";d:0.015;s:106:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_separate_idempotency_keys_to_each_request";d:0.016;s:124:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_works_when_previous_middleware_doesnt_pass_the_request_by_reference";d:0.015;s:121:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_caches_the_response_to_the_specified_store";d:0.047;s:111:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_prefixes_the_key_with_the_prefix";d:0.016;s:129:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_will_set_the_time_to_live_to_the_configured_amount";d:0.015;s:137:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_will_set_the_time_to_live_to_a_day_when_none_is_configured";d:0.015;s:133:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::it_returns_with_null_when_trying_to_get_a_response_for_a_key_that_is_not_in_the_cache";d:0.015;s:112:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_returns_an_equivalent_response";d:0.016;s:125:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_fetched_the_response_from_the_correct_store";d:0.016;s:117:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_will_prefix_the_key_with_the_prefix";d:0.015;s:132:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.017;s:137:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_json_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.018;s:141:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_redirect_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.019;s:145:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::it_correctly_serialized_a_response_that_has_an_exception_that_cannot_be_serialized_attached_to_it";d:0.052;s:131:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_post_requests";d:0.016;s:130:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_put_requests";d:0.016;s:132:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_patch_requests";d:0.016;s:156:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_return_a_cached_response_if_there_is_not_cached_response_for_the_provided_idempotency_key";d:0.016;s:119:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_if_no_idempotency_key_is_provided";d:0.015;s:103:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_for_a_get_request";d:0.015;s:106:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_for_a_delete_request";d:0.015;s:118:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_returned_the_cached_response_if_the_header_is_wrong";d:0.016;s:128:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_does_not_execute_the_next_middleware_when_it_returns_a_cached_response";d:0.016;s:128:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_executes_the_next_middleware_when_it_does_not_return_a_cached_response";d:0.015;}}} \ No newline at end of file +C:37:"PHPUnit\Runner\DefaultTestResultCache":4099:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:29:{s:105:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_post_requests";d:0.132;s:104:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_put_requests";d:0.015;s:106:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_the_idempotency_header_for_patch_requests";d:0.015;s:111:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_does_not_apply_the_idempotency_header_for_get_requests";d:0.015;s:114:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_does_not_apply_the_idempotency_header_for_delete_requests";d:0.015;s:106:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_applies_separate_idempotency_keys_to_each_request";d:0.016;s:124:"SoapBox\Idempotency\Tests\Unit\Guzzle\MiddlewareTest::it_works_when_previous_middleware_doesnt_pass_the_request_by_reference";d:0.015;s:121:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_caches_the_response_to_the_specified_store";d:0.026;s:111:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_prefixes_the_key_with_the_prefix";d:0.016;s:129:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_will_set_the_time_to_live_to_the_configured_amount";d:0.015;s:137:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::adding_a_response_to_the_cache_will_set_the_time_to_live_to_a_day_when_none_is_configured";d:0.014;s:133:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::it_returns_with_null_when_trying_to_get_a_response_for_a_key_that_is_not_in_the_cache";d:0.015;s:112:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_returns_an_equivalent_response";d:0.015;s:125:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_fetched_the_response_from_the_correct_store";d:0.015;s:117:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_will_prefix_the_key_with_the_prefix";d:0.016;s:132:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.016;s:137:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_json_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.017;s:141:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::getting_a_redirect_response_from_the_cache_returns_an_equivalent_response_after_serialization";d:0.016;s:145:"SoapBox\Idempotency\Tests\Unit\IdempotencyTest::it_correctly_serialized_a_response_that_has_an_exception_that_cannot_be_serialized_attached_to_it";d:0.028;s:131:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_post_requests";d:0.016;s:130:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_put_requests";d:0.016;s:132:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_return_the_cached_response_the_second_time_through_for_patch_requests";d:0.016;s:156:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_return_a_cached_response_if_there_is_not_cached_response_for_the_provided_idempotency_key";d:0.016;s:119:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_if_no_idempotency_key_is_provided";d:0.015;s:103:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_for_a_get_request";d:0.015;s:106:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_cache_the_response_for_a_delete_request";d:0.015;s:118:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_will_not_returned_the_cached_response_if_the_header_is_wrong";d:0.016;s:128:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_does_not_execute_the_next_middleware_when_it_returns_a_cached_response";d:0.016;s:128:"SoapBox\Idempotency\Tests\Unit\Laravel\MiddlewareTest::it_executes_the_next_middleware_when_it_does_not_return_a_cached_response";d:0.015;}}} \ No newline at end of file diff --git a/composer.json b/composer.json index 7632a92..ddd5227 100644 --- a/composer.json +++ b/composer.json @@ -3,18 +3,17 @@ "type": "library", "description": "A Laravel library that manages idempotency keys for a request", "license": "MIT", - "repositories": [ - { - "type": "path", - "url": "../fake-requests" - } - ], "require": { "ramsey/uuid": "^3.8", "guzzlehttp/psr7": "^1.4", "illuminate/support": "^7.0" }, - + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/Soapbox/fake-requests" + } + ], "autoload": { "psr-4": { "SoapBox\\Idempotency\\": "src/"