From 10fcee337fd77154a3a321de966119dfa060cace Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Mon, 13 Jul 2020 13:20:29 +0200 Subject: [PATCH] Lock aeon-php/process dependency to ^0.1.0 --- CHANGELOG.md | 10 ++++ README.md | 47 +--------------- composer.json | 2 +- composer.lock | 144 +++++++++++++++++++++----------------------------- 4 files changed, 71 insertions(+), 132 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b94d982 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,10 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.1.0] - 2020-07-13 +### First release :tada: +- initial release \ No newline at end of file diff --git a/README.md b/README.md index 98f3c48..93c86ba 100644 --- a/README.md +++ b/README.md @@ -12,49 +12,4 @@ Time Management Framework for PHP [Source: Wikipedia](https://en.wikipedia.org/wiki/Aeon) -Retry operations that might fail like for example http requests, with different -delay modifiers. - -```php -modifyDelay( - new RetryMultiplyDelay() - )->execute(function (Execution $execution) { - $random = \random_int(1, 3); - - if ($random === 2) { - throw new \RuntimeException('exception'); - } - - return $random; - }); -``` +Please read [Official Documentation](https://aeon-php.org/docs/retry). diff --git a/composer.json b/composer.json index e4fc7f2..f19321e 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "minimum-stability": "dev", "require": { "php": ">=7.4.2", - "aeon-php/process": "^1.0@dev" + "aeon-php/process": "^0.1.0" }, "require-dev": { "phpunit/phpunit": "^9.1", diff --git a/composer.lock b/composer.lock index 1cf908b..52cd728 100644 --- a/composer.lock +++ b/composer.lock @@ -4,26 +4,27 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c85ed1ba9f9c72173f907da3ede3748e", + "content-hash": "eb14dfb0f3564d62e22c15510f3e3e35", "packages": [ { "name": "aeon-php/calendar", - "version": "1.x-dev", + "version": "0.1.0", "source": { "type": "git", "url": "https://github.com/aeon-php/calendar.git", - "reference": "5755044cdac7e279b835db324a5b786a5b3926ea" + "reference": "fb8454b381df974b40ca2c374cc3f0afe9e7b25e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aeon-php/calendar/zipball/5755044cdac7e279b835db324a5b786a5b3926ea", - "reference": "5755044cdac7e279b835db324a5b786a5b3926ea", + "url": "https://api.github.com/repos/aeon-php/calendar/zipball/fb8454b381df974b40ca2c374cc3f0afe9e7b25e", + "reference": "fb8454b381df974b40ca2c374cc3f0afe9e7b25e", "shasum": "" }, "require": { "php": ">=7.4.2" }, "require-dev": { + "ext-bcmath": "*", "friendsofphp/php-cs-fixer": "^2.16.3", "infection/infection": "^0.16.3", "phpstan/phpstan": "^0.12.26", @@ -32,7 +33,9 @@ "psalm/plugin-phpunit": "^0.10.1", "vimeo/psalm": "^3.11" }, - "default-branch": true, + "suggest": { + "ext-bcmath": "Compare time units with high precision" + }, "type": "library", "autoload": { "psr-4": { @@ -52,28 +55,24 @@ "immutable", "sleep" ], - "support": { - "issues": "https://github.com/aeon-php/calendar/issues", - "source": "https://github.com/aeon-php/calendar/tree/1.x" - }, - "time": "2020-07-07T08:25:36+00:00" + "time": "2020-07-10T20:32:51+00:00" }, { "name": "aeon-php/process", - "version": "1.x-dev", + "version": "0.1.0", "source": { "type": "git", "url": "https://github.com/aeon-php/process.git", - "reference": "70d8fa94b47129e15ddeab7fc2f2caefebd54e88" + "reference": "fcc56bb5190085cdb3a85bc5f7b6562a7c25124f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aeon-php/process/zipball/70d8fa94b47129e15ddeab7fc2f2caefebd54e88", - "reference": "70d8fa94b47129e15ddeab7fc2f2caefebd54e88", + "url": "https://api.github.com/repos/aeon-php/process/zipball/fcc56bb5190085cdb3a85bc5f7b6562a7c25124f", + "reference": "fcc56bb5190085cdb3a85bc5f7b6562a7c25124f", "shasum": "" }, "require": { - "aeon-php/calendar": "1.x-dev", + "aeon-php/calendar": "^0.1.0", "php": ">=7.4.2" }, "require-dev": { @@ -85,13 +84,7 @@ "psalm/plugin-phpunit": "^0.10.1", "vimeo/psalm": "^3.11" }, - "default-branch": true, "type": "library", - "extra": { - "branch-alias": { - "dev-latest": "1.0-dev" - } - }, "autoload": { "files": [ "src/Aeon/Calendar/System/sleep.php" @@ -113,10 +106,7 @@ "immutable", "sleep" ], - "support": { - "source": "https://github.com/aeon-php/process/tree/1.x" - }, - "time": "2020-07-06T12:09:45+00:00" + "time": "2020-07-13T11:07:54+00:00" } ], "packages-dev": [ @@ -1876,33 +1866,33 @@ }, { "name": "phpspec/prophecy", - "version": "v1.10.3", + "version": "1.11.1", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "451c3cd1418cf640de218914901e51b064abb093" + "reference": "b20034be5efcdab4fb60ca3a29cba2949aead160" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", - "reference": "451c3cd1418cf640de218914901e51b064abb093", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/b20034be5efcdab4fb60ca3a29cba2949aead160", + "reference": "b20034be5efcdab4fb60ca3a29cba2949aead160", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", - "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" + "doctrine/instantiator": "^1.2", + "php": "^7.2", + "phpdocumentor/reflection-docblock": "^5.0", + "sebastian/comparator": "^3.0 || ^4.0", + "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { - "phpspec/phpspec": "^2.5 || ^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" + "phpspec/phpspec": "^6.0", + "phpunit/phpunit": "^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.10.x-dev" + "dev-master": "1.11.x-dev" } }, "autoload": { @@ -1935,11 +1925,7 @@ "spy", "stub" ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.10.3" - }, - "time": "2020-03-05T15:02:03+00:00" + "time": "2020-07-08T12:44:21+00:00" }, { "name": "phpstan/phpstan", @@ -2137,16 +2123,16 @@ }, { "name": "phpunit/php-file-iterator", - "version": "3.0.3", + "version": "3.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "8e282e5f5e2db5fb2271b3962ad69875c34a6f41" + "reference": "25fefc5b19835ca653877fe081644a3f8c1d915e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/8e282e5f5e2db5fb2271b3962ad69875c34a6f41", - "reference": "8e282e5f5e2db5fb2271b3962ad69875c34a6f41", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/25fefc5b19835ca653877fe081644a3f8c1d915e", + "reference": "25fefc5b19835ca653877fe081644a3f8c1d915e", "shasum": "" }, "require": { @@ -2183,17 +2169,13 @@ "filesystem", "iterator" ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/master" - }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" } ], - "time": "2020-06-26T11:50:37+00:00" + "time": "2020-07-11T05:18:21+00:00" }, { "name": "phpunit/php-invoker", @@ -5134,16 +5116,16 @@ }, { "name": "thecodingmachine/safe", - "version": "v1.1.2", + "version": "v1.1.3", "source": { "type": "git", "url": "https://github.com/thecodingmachine/safe.git", - "reference": "85e21ee4c4118fd0cb85e9f2c778dfcb781acd1b" + "reference": "9f277171e296a3c8629c04ac93ec95ff0f208ccb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/85e21ee4c4118fd0cb85e9f2c778dfcb781acd1b", - "reference": "85e21ee4c4118fd0cb85e9f2c778dfcb781acd1b", + "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/9f277171e296a3c8629c04ac93ec95ff0f208ccb", + "reference": "9f277171e296a3c8629c04ac93ec95ff0f208ccb", "shasum": "" }, "require": { @@ -5263,31 +5245,27 @@ "MIT" ], "description": "PHP core functions that throw exceptions instead of returning FALSE on error", - "support": { - "issues": "https://github.com/thecodingmachine/safe/issues", - "source": "https://github.com/thecodingmachine/safe/tree/master" - }, - "time": "2020-06-11T08:39:56+00:00" + "time": "2020-07-10T09:34:29+00:00" }, { "name": "theseer/tokenizer", - "version": "1.1.3", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9" + "reference": "75a63c33a8577608444246075ea0af0d052e452a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9", - "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a", + "reference": "75a63c33a8577608444246075ea0af0d052e452a", "shasum": "" }, "require": { "ext-dom": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", - "php": "^7.0" + "php": "^7.2 || ^8.0" }, "type": "library", "autoload": { @@ -5307,11 +5285,13 @@ } ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "support": { - "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/master" - }, - "time": "2019-06-13T22:48:21+00:00" + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2020-07-12T23:59:07+00:00" }, { "name": "vimeo/psalm", @@ -5416,20 +5396,20 @@ }, { "name": "webmozart/assert", - "version": "1.9.0", + "version": "1.9.1", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "9dc4f203e36f2b486149058bade43c851dd97451" + "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/9dc4f203e36f2b486149058bade43c851dd97451", - "reference": "9dc4f203e36f2b486149058bade43c851dd97451", + "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0", + "php": "^5.3.3 || ^7.0 || ^8.0", "symfony/polyfill-ctype": "^1.8" }, "conflict": { @@ -5461,11 +5441,7 @@ "check", "validate" ], - "support": { - "issues": "https://github.com/webmozart/assert/issues", - "source": "https://github.com/webmozart/assert/tree/1.9.0" - }, - "time": "2020-06-16T10:16:42+00:00" + "time": "2020-07-08T17:02:28+00:00" }, { "name": "webmozart/glob", @@ -5571,14 +5547,12 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": { - "aeon-php/process": 20 - }, + "stability-flags": [], "prefer-stable": true, "prefer-lowest": false, "platform": { "php": ">=7.4.2" }, "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "1.1.0" }