-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename project to ComposerDistributor
We decided to call the project ComposerDistributor during a video-session with Arne, Sebastian and myself before moving it over to phar.io
- Loading branch information
1 parent
720a9b7
commit bfbca6e
Showing
20 changed files
with
121 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright ComposerDistributor-Team | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
final class File | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
use Iterator; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<?php | ||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
use function current; | ||
use function key; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
use DirectoryIterator; | ||
use Iterator; | ||
|
9 changes: 4 additions & 5 deletions
9
src/Exception/NoSemanticVersioning.php → src/NoSemanticVersioning.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase\Exception; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
use RuntimeException; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
use Composer\Composer; | ||
use Composer\EventDispatcher\EventSubscriberInterface; | ||
use Composer\Installer\PackageEvent; | ||
use Composer\Installer\PackageEvents; | ||
use Composer\IO\IOInterface; | ||
use Composer\Plugin\PluginInterface; | ||
use PharIo\SinglePharPluginBase\Service\Installer; | ||
use PharIo\ComposerDistributor\Service\Installer; | ||
use SplFileInfo; | ||
|
||
abstract class PluginBase implements PluginInterface, EventSubscriberInterface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
use PharIo\SinglePharPluginBase\Exception\NoSemanticVersioning; | ||
use function explode; | ||
use function is_numeric; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase\Service; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor\Service; | ||
|
||
use PharIo\SinglePharPluginBase\Url; | ||
use PharIo\ComposerDistributor\Url; | ||
use SplFileInfo; | ||
use function feof; | ||
use function fwrite; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase\Service; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor\Service; | ||
|
||
use Composer\Installer\PackageEvent; | ||
use Composer\IO\IOInterface; | ||
use PharIo\FileSystem\Directory; | ||
use PharIo\GnuPG\Factory; | ||
use PharIo\SinglePharPluginBase\Exception\SomebodyElsesProblem; | ||
use PharIo\SinglePharPluginBase\File; | ||
use PharIo\SinglePharPluginBase\FileList; | ||
use PharIo\SinglePharPluginBase\KeyDirectory; | ||
use PharIo\SinglePharPluginBase\PackageVersion; | ||
use PharIo\SinglePharPluginBase\Url; | ||
use PharIo\ComposerDistributor\SomebodyElsesProblem; | ||
use PharIo\ComposerDistributor\File; | ||
use PharIo\ComposerDistributor\FileList; | ||
use PharIo\ComposerDistributor\KeyDirectory; | ||
use PharIo\ComposerDistributor\PackageVersion; | ||
use PharIo\ComposerDistributor\Url; | ||
use RuntimeException; | ||
use SplFileInfo; | ||
use function chmod; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase\Service; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor\Service; | ||
|
||
use GnuPG; | ||
use PharIo\SinglePharPluginBase\KeyDirectory; | ||
use PharIo\ComposerDistributor\KeyDirectory; | ||
use SplFileInfo; | ||
use function array_filter; | ||
use function count; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase\Service; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor\Service; | ||
|
||
use PharIo\SinglePharPluginBase\PackageVersion; | ||
use PharIo\ComposerDistributor\PackageVersion; | ||
|
||
final class VersionConstraintReplacer | ||
{ | ||
|
9 changes: 4 additions & 5 deletions
9
src/Exception/SomebodyElsesProblem.php → src/SomebodyElsesProblem.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase\Exception; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
use RuntimeException; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
namespace PharIo\SinglePharPluginBase; | ||
declare(strict_types=1); | ||
|
||
namespace PharIo\ComposerDistributor; | ||
|
||
use RuntimeException; | ||
use function parse_url; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright Andreas Heigl <[email protected]> | ||
* Copyright by the ComposerDistributor-Team | ||
* | ||
* Licenses under the MIT-license. For details see the included file LICENSE.md | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
if (! class_exists(\GnuPG::class)) { | ||
|
||
|
||
|
Oops, something went wrong.