Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 0a5eca4

Browse files
author
Max Matteo Staack
committed
cleanup
1 parent 61c307b commit 0a5eca4

File tree

9 files changed

+11
-150
lines changed

9 files changed

+11
-150
lines changed

.github/workflows/composer-normalize.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [8.0, 7.4]
11+
php: [8.1, 8.0, 7.4]
1212
laravel: [8.*, 7.*]
1313
dependency-version: [prefer-lowest, prefer-stable]
1414
include:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/vendor/
2-
/vendor-bin/**/vendor
32
/composer.lock
43
/phpunit.xml

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ php artisan vendor:publish --provider="Elbgoods\TrashmailRule\TrashmailRuleServi
2828

2929
The package provides a configuration to define the rule behaviour.
3030

31-
### Dead-Letter.Email
32-
33-
By default the package uses an up-to-date list by [Dead-Letter.Email](https://www.dead-letter.email/).
34-
You can disable this in the config and control the caching behaviour.
35-
3631
### Denied domains
3732

3833
You can add your own list of denied domains, these domains will always be blocked.
@@ -44,7 +39,6 @@ You can add your own list of allowed domains, these domains will always pass.
4439
# supported Providers
4540

4641
* local configuration - `\Elbgoods\TrashmailRule\Providers\ConfigProvider`
47-
* https://dead-letter.email - `\Elbgoods\TrashmailRule\Providers\DeadLetterProvider`
4842
* https://disposable-email-detector.com - `\Elbgoods\TrashmailRule\Providers\DisposableEmailDetectorProvider`
4943
* https://verifier.meetchopra.com - `\Elbgoods\TrashmailRule\Providers\VerifierProvider`
5044

composer.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,23 @@
1515
"email": "twitkowski@elbgoods.de",
1616
"homepage": "https://gummibeer.de",
1717
"role": "Developer"
18+
},
19+
{
20+
"name": "Max Staack",
21+
"email": "mstaack@elbgoods.de",
22+
"role": "Developer"
1823
}
1924
],
2025
"require": {
2126
"php": "^7.4 || ^8.0",
2227
"ext-json": "*",
2328
"astrotomic/laravel-guzzle": "^2.1",
24-
"illuminate/cache": "^7.0 || ^8.0",
25-
"illuminate/support": "^7.0 || ^8.0"
29+
"illuminate/cache": "^7.0 || ^8.0 || ^9.0",
30+
"illuminate/support": "^7.0 || ^8.0 || ^9.0"
2631
},
2732
"require-dev": {
28-
"bamarni/composer-bin-plugin": "^1.3",
29-
"orchestra/testbench": "^5.0 || ^6.0",
33+
"roave/security-advisories": "dev-latest",
34+
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0",
3035
"phpunit/phpunit": "^9.3"
3136
},
3237
"config": {
@@ -50,13 +55,5 @@
5055
}
5156
},
5257
"minimum-stability": "dev",
53-
"prefer-stable": true,
54-
"scripts": {
55-
"post-install-cmd": [
56-
"@composer bin all install --ansi"
57-
],
58-
"post-update-cmd": [
59-
"@composer bin all update --ansi"
60-
]
61-
}
58+
"prefer-stable": true
6259
}

config/trashmail.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@
99
'config',
1010
'disposable_email_detector',
1111
'verifier',
12-
'dead_letter',
13-
],
14-
15-
/*
16-
* This package can load a remote blacklist from https://www.dead-letter.email
17-
*/
18-
'dead_letter' => [
19-
'enabled' => false,
20-
'cache' => [
21-
'enabled' => true,
22-
'store' => null,
23-
'key' => 'elbgoods.trashmail.dead_letter',
24-
'ttl' => 60 * 60 * 24, // one day
25-
],
2612
],
2713

2814
/*

src/Providers/DeadLetterProvider.php

Lines changed: 0 additions & 78 deletions
This file was deleted.

tests/Rules/TrashmailRuleTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,6 @@ public function it_passes_allowed_addresses(): void
4747
$this->assertTrue($rule->passes('email', 'example@'.$domain));
4848
}
4949

50-
/** @test */
51-
public function dead_letter_fails_with_disposable_email(): void
52-
{
53-
$this->app['config']->set('trashmail.dead_letter.enabled', true);
54-
55-
$rule = new TrashmailRule();
56-
57-
$this->assertFalse($rule->passes('email', 'example@0815.ru'));
58-
}
59-
6050
/** @test */
6151
public function disposable_email_fails_with_disposable_email(): void
6252
{

vendor-bin/elbgoods/composer.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)