Commit Graph

27 Commits

Author SHA1 Message Date
Yahnis Elsts dc93f32388 Bump version number to 5.6 2025-05-20 15:20:21 +03:00
Yahnis Elsts c74a3bcde2 Bump version number to 5.5 2024-10-16 17:14:29 +03:00
Yahnis Elsts 1ee425c37b Bump version number to 5.4 2024-02-24 11:54:53 +02:00
Yahnis Elsts 0b6bd7cd32 Bump version number to 5.3 2023-11-09 10:34:00 +02:00
Yahnis Elsts 565a071b59 Bump version number to 5.2 2023-08-17 15:42:19 +03:00
Yahnis Elsts 48b03e93c9 Bump version number to 5.1 2023-05-20 14:55:43 +03:00
Yahnis Elsts 3960de8391 Minor: Change URL to HTTPS 2022-10-14 19:48:52 +03:00
Yahnis Elsts 0d4d717cde Bump version number to 5.0 2022-10-08 20:07:42 +03:00
Yahnis Elsts 1372e6fa7d Increase minimum PHP version to 5.6.20
This matches the minimum requirements for WordPress 6.0.2, which is currently the latest WP release. WordPress usage stats say that less than 3% of users are on PHP versions older than this.
2022-10-08 19:56:29 +03:00
Yahnis Elsts adbfa5dd3a Add a way to filter VCS update detection strategies
Example: 
```
$bitbucketPluginChecker->addFilter('vcs_update_detection_strategies', function($strategies) {
 	//Don't look for a "Stable tag" header in readme.txt.
 	unset($strategies['stable_tag']);
 	return $strategies;
});
```

To make this possible, the chooseReference() method was refactored into something that more closely resembles a "chain of responsibility" pattern. Instead of a tree of "if" conditions, it now gets an array of callables from another method, and it calls each of those in order until it gets a non-empty VCS reference.

You can filter this array to remove specific strategies, or even to add your own. Note that the item order matters.

Required PHP version was increased to 5.4 because some "strategies" take an argument and some don't, and I would rather just use closures for that than something more complex.

Coincidentally, testing this change revealed a bug where the HTTP filter name was not initialized correctly: it was missing the $slug. That should also be fixed now. 

Prompted by #378
2022-09-06 15:13:15 +03:00
Yahnis Elsts 6eb27a6911 Bump version to 4.13
Also updated the POT file. No new strings, but some of the source code references were out of date.
2022-07-29 15:36:25 +03:00
Yahnis Elsts 4525927a6b Rename loader file 2022-07-25 00:27:58 +03:00
Yahnis Elsts 06bc75f9af Change version infix from v4p10 to v4p11
Step 1 of version bump
2021-03-15 18:02:04 +02:00
Yahnis Elsts 5a98cfdae1 Change version number to 4.10 everywhere 2020-08-08 14:30:02 +03:00
Yahnis Elsts 28f29c940c Bump version number to 4.9 2020-02-07 13:07:19 +02:00
Yahnis Elsts 8e79543bf7 Minor: Add ext-json to composer.json 2020-02-04 17:43:31 +02:00
Yahnis Elsts 908249c92e Minor: Remove redundant autoloading mechanism 2019-10-08 15:15:30 +03:00
Yahnis Elsts 2a7c818f18 Alternative fix to Composer autoloading issues.
It may be possible to overcome the limitations of the "files" autoloading mechanism by changing the file name in every version.
2019-10-08 15:06:40 +03:00
Yahnis Elsts a78cbb71d3 Bump version number to 4.8 2019-09-28 15:47:47 +03:00
Yahnis Elsts f4167ca36c Another attempt to fix the Composer autoloader 2019-09-27 17:27:54 +03:00
Yahnis Elsts bbe88a70d6 Attempt to fix errors caused by using Composer-generated autoloaders when multiple versions of the library are loaded at the same time.
See #300. Apparently, when using the `files` autoloading mechanism, Composer will only include the files for one version of the library (i.e. the first one loaded). Let's see if we can fix that by switching to a `psr-0` autoloader. This requires a bunch of changes to the standalone autoloader and the factory registration process.
2019-09-27 17:06:01 +03:00
Yahnis Elsts 3ad92e3135 Minor: Change line endings from \r\n to \n for consistency with the rest of the project. 2019-04-18 23:11:33 +03:00
Yahnis Elsts 4643dec114 Minor: Add newlines to the end of each file.
Some code analysers require this.
2019-04-18 22:53:23 +03:00
Yahnis Elsts 749f364e4d Enable Composer autoloading.
Very bare-bones stuff, it just includes plugin-update-checker.php.
2017-02-08 16:45:19 +02:00
Yahnis Elsts 592453cffb Update description and add JSON examples 2016-12-30 13:28:13 +02:00
Yahnis Elsts a4d023e0c3 Change license to MIT/Expat 2014-12-17 12:22:29 +02:00
Yahnis Elsts dbe109557b Add a Composer manifest 2014-09-10 18:41:18 +03:00