Skip to content

Commit

Permalink
Bump version number to 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
YahnisElsts committed Nov 9, 2023
1 parent 00774ef commit 0b6bd7c
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\v5p2\PucFactory {
class PucFactory extends \YahnisElsts\PluginUpdateChecker\v5p3\PucFactory {
}

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

namespace YahnisElsts\PluginUpdateChecker\v5p2;
namespace YahnisElsts\PluginUpdateChecker\v5p3;

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\v5p2\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p2\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p2\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p3\UpdateChecker;

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

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

use YahnisElsts\PluginUpdateChecker\v5p2\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p2\Plugin\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p2\Plugin\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p2\Theme\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2;
namespace YahnisElsts\PluginUpdateChecker\v5p3;

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

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

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

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

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

use YahnisElsts\PluginUpdateChecker\v5p2\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p2\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p3\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p3\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p2\Metadata;
use YahnisElsts\PluginUpdateChecker\v5p3\Metadata;

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

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

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

use YahnisElsts\PluginUpdateChecker\v5p2\Update as BaseUpdate;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p3\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p2\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p2\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p2\DebugBar;
use YahnisElsts\PluginUpdateChecker\v5p3\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p3\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;

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

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

namespace YahnisElsts\PluginUpdateChecker\v5p2;
namespace YahnisElsts\PluginUpdateChecker\v5p3;

use YahnisElsts\PluginUpdateChecker\v5p2\Plugin;
use YahnisElsts\PluginUpdateChecker\v5p2\Theme;
use YahnisElsts\PluginUpdateChecker\v5p2\Vcs;
use YahnisElsts\PluginUpdateChecker\v5p3\Plugin;
use YahnisElsts\PluginUpdateChecker\v5p3\Theme;
use YahnisElsts\PluginUpdateChecker\v5p3\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.2)
* This version adapted from WP 4.8.2 (unchanged since 4.5.3)
*
* @param string $path Path to normalize.
* @return string Normalized path.
Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p2/Scheduler.php → Puc/v5p3/Scheduler.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p2;
namespace YahnisElsts\PluginUpdateChecker\v5p3;

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

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

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

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

use YahnisElsts\PluginUpdateChecker\v5p2\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p3\InstalledPackage;

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

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

namespace YahnisElsts\PluginUpdateChecker\v5p2\Theme;
namespace YahnisElsts\PluginUpdateChecker\v5p3\Theme;

use YahnisElsts\PluginUpdateChecker\v5p2\Update as BaseUpdate;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Theme;
namespace YahnisElsts\PluginUpdateChecker\v5p3\Theme;

use YahnisElsts\PluginUpdateChecker\v5p2\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p2\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p2\DebugBar;
use YahnisElsts\PluginUpdateChecker\v5p3\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p3\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;

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

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

use stdClass;

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

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\v5p2;
namespace YahnisElsts\PluginUpdateChecker\v5p3;

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

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

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

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

namespace YahnisElsts\PluginUpdateChecker\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\Vcs;

use YahnisElsts\PluginUpdateChecker\v5p2\OAuthSignature;
use YahnisElsts\PluginUpdateChecker\v5p2\Utils;
use YahnisElsts\PluginUpdateChecker\v5p3\OAuthSignature;
use YahnisElsts\PluginUpdateChecker\v5p3\Utils;

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

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

namespace YahnisElsts\PluginUpdateChecker\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\Vcs;

use Parsedown;

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

namespace YahnisElsts\PluginUpdateChecker\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\Vcs;

use YahnisElsts\PluginUpdateChecker\v5p2\Plugin;
use YahnisElsts\PluginUpdateChecker\v5p3\Plugin;

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

Expand Down
2 changes: 1 addition & 1 deletion Puc/v5p2/Vcs/Reference.php → Puc/v5p3/Vcs/Reference.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\Vcs;

use YahnisElsts\PluginUpdateChecker\v5p2\Theme;
use YahnisElsts\PluginUpdateChecker\v5p2\Utils;
use YahnisElsts\PluginUpdateChecker\v5p3\Theme;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs;
namespace YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs\PluginUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\Vcs\GitLabApi;
use YahnisElsts\PluginUpdateChecker\v5p3\Vcs\PluginUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\Vcs\PluginUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\Vcs\GitLabApi;
use YahnisElsts\PluginUpdateChecker\v5p3\Vcs\PluginUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p3\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\v5p2\PucFactory` |
| `Puc_v4p13_Plugin_UpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p2\Plugin\UpdateChecker` |
| `Puc_v4p13_Theme_UpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p2\Theme\UpdateChecker` |
| `Puc_v4p13_Vcs_PluginUpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p2\Vcs\PluginUpdateChecker` |
| `Puc_v4p13_Vcs_ThemeUpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p2\Vcs\ThemeUpdateChecker` |
| `Puc_v4p13_Vcs_GitHubApi` | `YahnisElsts\PluginUpdateChecker\v5p2\Vcs\GitHubApi` |
| `Puc_v4p13_Vcs_GitLabApi` | `YahnisElsts\PluginUpdateChecker\v5p2\Vcs\GitLabApi` |
| `Puc_v4p13_Vcs_BitBucketApi` | `YahnisElsts\PluginUpdateChecker\v5p2\Vcs\BitBucketApi` |
| `Puc_v4p13_Factory` | `YahnisElsts\PluginUpdateChecker\v5p3\PucFactory` |
| `Puc_v4p13_Plugin_UpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p3\Plugin\UpdateChecker` |
| `Puc_v4p13_Theme_UpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p3\Theme\UpdateChecker` |
| `Puc_v4p13_Vcs_PluginUpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p3\Vcs\PluginUpdateChecker` |
| `Puc_v4p13_Vcs_ThemeUpdateChecker` | `YahnisElsts\PluginUpdateChecker\v5p3\Vcs\ThemeUpdateChecker` |
| `Puc_v4p13_Vcs_GitHubApi` | `YahnisElsts\PluginUpdateChecker\v5p3\Vcs\GitHubApi` |
| `Puc_v4p13_Vcs_GitLabApi` | `YahnisElsts\PluginUpdateChecker\v5p3\Vcs\GitLabApi` |
| `Puc_v4p13_Vcs_BitBucketApi` | `YahnisElsts\PluginUpdateChecker\v5p3\Vcs\BitBucketApi` |

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

0 comments on commit 0b6bd7c

Please sign in to comment.