Skip to content

Commit

Permalink
Bump version number to 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
YahnisElsts committed May 20, 2023
1 parent 98f17e4 commit 48b03e9
Show file tree
Hide file tree
Showing 41 changed files with 92 additions and 92 deletions.
2 changes: 1 addition & 1 deletion Puc/v5/PucFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

if ( !class_exists(PucFactory::class, false) ):

class PucFactory extends \YahnisElsts\PluginUpdateChecker\v5p0\PucFactory {
class PucFactory extends \YahnisElsts\PluginUpdateChecker\v5p1\PucFactory {
}

endif;
2 changes: 1 addition & 1 deletion Puc/v5p0/Autoloader.php → Puc/v5p1/Autoloader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

if ( !class_exists(Autoloader::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p0\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p0\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p1\UpdateChecker;

if ( !class_exists(Extension::class, false) ):

Expand Down
4 changes: 2 additions & 2 deletions Puc/v5p0/DebugBar/Panel.php → Puc/v5p1/DebugBar/Panel.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p0\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\UpdateChecker;

if ( !class_exists(Panel::class, false) && class_exists('Debug_Bar_Panel', false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p0\Plugin\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\Plugin\UpdateChecker;

if ( !class_exists(PluginExtension::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p0\Plugin\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\Plugin\UpdateChecker;

if ( !class_exists(PluginPanel::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p0\Theme\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\Theme\UpdateChecker;

if ( !class_exists(ThemePanel::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

if ( !class_exists(InstalledPackage::class, false) ):

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Metadata.php → Puc/v5p1/Metadata.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

use LogicException;
use stdClass;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

if ( !class_exists(OAuthSignature::class, false) ):

Expand Down
6 changes: 3 additions & 3 deletions Puc/v5p0/Plugin/Package.php → Puc/v5p1/Plugin/Package.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p0\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p0\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p1\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p1\PucFactory;

if ( !class_exists(Package::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p0\Metadata;
use YahnisElsts\PluginUpdateChecker\v5p1\Metadata;

if ( !class_exists(PluginInfo::class, false) ):

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Plugin/Ui.php → Puc/v5p1/Plugin/Ui.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;

if ( !class_exists('Ui', false) ):
/**
Expand Down
4 changes: 2 additions & 2 deletions Puc/v5p0/Plugin/Update.php → Puc/v5p1/Plugin/Update.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p0\Update as BaseUpdate;
use YahnisElsts\PluginUpdateChecker\v5p1\Update as BaseUpdate;

if ( !class_exists(Update::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p0\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p0\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p0\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p0\DebugBar;
use YahnisElsts\PluginUpdateChecker\v5p1\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p1\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;

if ( !class_exists(UpdateChecker::class, false) ):

Expand Down
10 changes: 5 additions & 5 deletions Puc/v5p0/PucFactory.php → Puc/v5p1/PucFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

use YahnisElsts\PluginUpdateChecker\v5p0\Plugin;
use YahnisElsts\PluginUpdateChecker\v5p0\Theme;
use YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
use YahnisElsts\PluginUpdateChecker\v5p1\Plugin;
use YahnisElsts\PluginUpdateChecker\v5p1\Theme;
use YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

if ( !class_exists(PucFactory::class, false) ):

Expand Down Expand Up @@ -147,7 +147,7 @@ public static function buildUpdateChecker($metadataUrl, $fullPath, $slug = '', $
*
* Normalize a filesystem path. Introduced in WP 3.9.
* Copying here allows use of the class on earlier versions.
* This version adapted from WP 4.8.2 (unchanged since 4.5.0)
* This version adapted from WP 4.8.2 (unchanged since 4.5.1)
*
* @param string $path Path to normalize.
* @return string Normalized path.
Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Scheduler.php → Puc/v5p1/Scheduler.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

if ( !class_exists(Scheduler::class, false) ):

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/StateStore.php → Puc/v5p1/StateStore.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

if ( !class_exists(StateStore::class, false) ):

Expand Down
4 changes: 2 additions & 2 deletions Puc/v5p0/Theme/Package.php → Puc/v5p1/Theme/Package.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\Theme;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Theme;

use YahnisElsts\PluginUpdateChecker\v5p0\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p1\InstalledPackage;

if ( !class_exists(Package::class, false) ):

Expand Down
4 changes: 2 additions & 2 deletions Puc/v5p0/Theme/Update.php → Puc/v5p1/Theme/Update.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Theme;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Theme;

use YahnisElsts\PluginUpdateChecker\v5p0\Update as BaseUpdate;
use YahnisElsts\PluginUpdateChecker\v5p1\Update as BaseUpdate;

if ( !class_exists(Update::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Theme;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Theme;

use YahnisElsts\PluginUpdateChecker\v5p0\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p0\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p0\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p0\DebugBar;
use YahnisElsts\PluginUpdateChecker\v5p1\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p1\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;

if ( !class_exists(UpdateChecker::class, false) ):

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Update.php → Puc/v5p1/Update.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

use stdClass;

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/UpdateChecker.php → Puc/v5p1/UpdateChecker.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

use stdClass;
use WP_Error;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

if ( !class_exists(UpgraderStatus::class, false) ):

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Utils.php → Puc/v5p1/Utils.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0;
namespace YahnisElsts\PluginUpdateChecker\v5p1;

if ( !class_exists(Utils::class, false) ):

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Vcs/Api.php → Puc/v5p1/Vcs/Api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

use Parsedown;
use PucReadmeParser;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

if ( !interface_exists(BaseChecker::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

use YahnisElsts\PluginUpdateChecker\v5p0\OAuthSignature;
use YahnisElsts\PluginUpdateChecker\v5p0\Utils;
use YahnisElsts\PluginUpdateChecker\v5p1\OAuthSignature;
use YahnisElsts\PluginUpdateChecker\v5p1\Utils;

if ( !class_exists(BitBucketApi::class, false) ):

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Vcs/GitHubApi.php → Puc/v5p1/Vcs/GitHubApi.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

use Parsedown;

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Vcs/GitLabApi.php → Puc/v5p1/Vcs/GitLabApi.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

if ( !class_exists(GitLabApi::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

use YahnisElsts\PluginUpdateChecker\v5p0\Plugin;
use YahnisElsts\PluginUpdateChecker\v5p1\Plugin;

if ( !class_exists(PluginUpdateChecker::class, false) ):

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p0/Vcs/Reference.php → Puc/v5p1/Vcs/Reference.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

if ( !class_exists(Reference::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

if ( !trait_exists(ReleaseAssetSupport::class, false) ) :

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

if ( !trait_exists(ReleaseFilteringFeature::class, false) ) :

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

use YahnisElsts\PluginUpdateChecker\v5p0\Theme;
use YahnisElsts\PluginUpdateChecker\v5p0\Utils;
use YahnisElsts\PluginUpdateChecker\v5p1\Theme;
use YahnisElsts\PluginUpdateChecker\v5p1\Utils;

if ( !class_exists(ThemeUpdateChecker::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p1\Vcs;

if ( !trait_exists(VcsCheckerMethods::class, false) ) :

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ BitBucket doesn't have an equivalent to GitHub's releases, so the process is sli

Alternatively, if you're using a self-hosted GitLab instance, initialize the update checker like this:
```php
use YahnisElsts\PluginUpdateChecker\v5p0\Vcs\PluginUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p0\Vcs\GitLabApi;
use YahnisElsts\PluginUpdateChecker\v5p1\Vcs\PluginUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\Vcs\GitLabApi;

$myUpdateChecker = new PluginUpdateChecker(
new GitLabApi('https://myserver.com/user-name/repo-name/'),
Expand All @@ -264,8 +264,8 @@ BitBucket doesn't have an equivalent to GitHub's releases, so the process is sli
```
If you're using a self-hosted GitLab instance and [subgroups or nested groups](https://docs.gitlab.com/ce/user/group/subgroups/index.html), you have to tell the update checker which parts of the URL are subgroups:
```php
use YahnisElsts\PluginUpdateChecker\v5p0\Vcs\PluginUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p0\Vcs\GitLabApi;
use YahnisElsts\PluginUpdateChecker\v5p1\Vcs\PluginUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\Vcs\GitLabApi;

$myUpdateChecker = new PluginUpdateChecker(
new GitLabApi(
Expand Down Expand Up @@ -347,14 +347,14 @@ Other classes have also been renamed, usually by simply removing the `Puc_vXpY_`
| Old class name | New class name |
|-------------------------------------|----------------------------------------------------------------|
| `Puc_v4_Factory` | `YahnisElsts\PluginUpdateChecker\v5\PucFactory` |
| `Puc_v4p13_Factory` | `YahnisElsts\PluginUpdateChecker\v5p0\PucFactory` |
| `Puc_v4p13_Plugin_UpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p0\Plugin\UpdateChecker` |
| `Puc_v4p13_Theme_UpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p0\Theme\UpdateChecker` |
| `Puc_v4p13_Vcs_PluginUpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p0\Vcs\PluginUpdateChecker` |
| `Puc_v4p13_Vcs_ThemeUpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p0\Vcs\ThemeUpdateChecker` |
| `Puc_v4p13_Vcs_GitHubApi` | `YahnisElsts\PluginUpdateChecker\v5p0\Vcs\GitHubApi` |
| `Puc_v4p13_Vcs_GitLabApi` | `YahnisElsts\PluginUpdateChecker\v5p0\Vcs\GitLabApi` |
| `Puc_v4p13_Vcs_BitBucketApi` | `YahnisElsts\PluginUpdateChecker\v5p0\Vcs\BitBucketApi` |
| `Puc_v4p13_Factory` | `YahnisElsts\PluginUpdateChecker\v5p1\PucFactory` |
| `Puc_v4p13_Plugin_UpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p1\Plugin\UpdateChecker` |
| `Puc_v4p13_Theme_UpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p1\Theme\UpdateChecker` |
| `Puc_v4p13_Vcs_PluginUpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p1\Vcs\PluginUpdateChecker` |
| `Puc_v4p13_Vcs_ThemeUpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p1\Vcs\ThemeUpdateChecker` |
| `Puc_v4p13_Vcs_GitHubApi` | `YahnisElsts\PluginUpdateChecker\v5p1\Vcs\GitHubApi` |
| `Puc_v4p13_Vcs_GitLabApi` | `YahnisElsts\PluginUpdateChecker\v5p1\Vcs\GitLabApi` |
| `Puc_v4p13_Vcs_BitBucketApi` | `YahnisElsts\PluginUpdateChecker\v5p1\Vcs\BitBucketApi` |

License Management
------------------
Expand Down
Loading

0 comments on commit 48b03e9

Please sign in to comment.