Skip to content

Commit

Permalink
Huge code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vkartaviy committed May 6, 2015
1 parent e02ed76 commit 93d49ae
Show file tree
Hide file tree
Showing 57 changed files with 1,790 additions and 1,297 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea

composer.phar
composer.lock
vendor
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ Batch

The library for repeatable and retryable operations.

[![Build Status](https://secure.travis-ci.org/vkartaviy/batch.png?branch=master)](http://travis-ci.org/vkartaviy/batch)
[![Build Status](https://secure.travis-ci.org/vkartaviy/retry.png?branch=master)](http://travis-ci.org/vkartaviy/retry)


Here is a simple example:

```php
<?php

use Batch\Retry\RetryProxy;
use Batch\Retry\Policy\SimpleRetryPolicy;
use Batch\Retry\BackOff\ExponentialBackOffPolicy;
use Retry\RetryProxy;
use Retry\Policy\SimpleRetryPolicy;
use Retry\BackOff\ExponentialBackOffPolicy;

$retryPolicy = new SimpleRetryPolicy(3);
$backOffPolicy = new ExponentialBackOffPolicy();
Expand Down
13 changes: 9 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "vkartaviy/batch",
"name": "vkartaviy/retry",
"description": "The library for repeatable and retryable operations",
"keywords": ["proxy", "retry", "repeat", "backoff"],
"homepage": "https://github.com/vkartaviy/batch",
"homepage": "https://github.com/vkartaviy/retry",
"license": "MIT",
"authors": [
{
Expand All @@ -12,9 +12,14 @@
}
],
"require": {
"php": ">=5.3.3"
"php": ">=5.4"
},
"require-dev": {
"phpunit/phpunit": "3.7.*"
},
"autoload": {
"psr-0": { "Batch": "src/" }
"psr-0": {
"Retry": "src"
}
}
}
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

<phpunit bootstrap="./tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="Batch Test Suite">
<directory suffix="Test.php">./tests/Batch/Test/</directory>
<testsuite name="Retry Test Suite">
<directory suffix="Test.php">./tests/Retry/Test/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">./src/Batch/</directory>
<directory suffix=".php">./src/Retry/</directory>
</whitelist>
</filter>
</phpunit>
10 changes: 0 additions & 10 deletions src/Batch/Retry/BackOff/AbstractBackOffPolicy.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Batch/Retry/BackOff/BackOffContext.php

This file was deleted.

20 changes: 0 additions & 20 deletions src/Batch/Retry/BackOff/BackOffPolicyInterface.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/Batch/Retry/BackOff/StatelessBackOffPolicy.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Batch/Retry/Policy/AbstractRetryPolicy.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Batch/Retry/Policy/AlwaysRetryPolicy.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/Batch/Retry/Policy/NeverRetryPolicy.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/Batch/Retry/Policy/RetryPolicyInterface.php

This file was deleted.

48 changes: 0 additions & 48 deletions src/Batch/Retry/RetryContext.php

This file was deleted.

86 changes: 0 additions & 86 deletions src/Batch/Retry/RetryProxy.php

This file was deleted.

8 changes: 0 additions & 8 deletions src/Batch/Retry/RetryProxyInterface.php

This file was deleted.

Loading

0 comments on commit 93d49ae

Please sign in to comment.