diff --git a/Puc/v4p11/Vcs/GitLabApi.php b/Puc/v4p11/Vcs/GitLabApi.php index 32b62f5..7e9b943 100644 --- a/Puc/v4p11/Vcs/GitLabApi.php +++ b/Puc/v4p11/Vcs/GitLabApi.php @@ -389,7 +389,7 @@ if ( !class_exists('Puc_v4p11_Vcs_GitLabApi', false) ): $this->releasePackageEnabled = false; } - public function enableReleasePackage() { + public function enableReleasePackages() { $this->releaseAssetsEnabled = false; $this->releasePackageEnabled = true; } diff --git a/README.md b/README.md index 02fd12c..93d8a7d 100644 --- a/README.md +++ b/README.md @@ -280,7 +280,7 @@ A Gitlab repository can be checked for updates in 4 different ways. - Add the following code: ```php //Add the following code to your main plugin file or `functions.php` file to check for a new update from releases using generic packages - $myUpdateChecker->getVcsApi()->enableReleasePackage(); + $myUpdateChecker->getVcsApi()->enableReleasePackages(); ``` - PUC will periodically check the release version (i.e. the tag name of the release) and will display a notification if the release is a greater version than the installed version. - The release tag name should loosely follow [SemVer](http://semver.org/) but these are all valid release names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5` However, be warned that it's not smart enough to filter out alpha/beta/RC versions. If that's a problem, you might want to use GitLab branches instead.