From 891d0ab3fc0c33a2365cafbd31f08ed829248fff Mon Sep 17 00:00:00 2001 From: Cooper Dalrymple Date: Fri, 5 Jun 2026 15:35:20 -0500 Subject: [PATCH] Switch to updatepulse --- composer.json | 45 +++++--- composer.lock | 273 +++++++++++++++++++++++++++++++++-------------- gulpfile.js | 6 +- updatepulse.json | 3 + 4 files changed, 230 insertions(+), 97 deletions(-) create mode 100644 updatepulse.json diff --git a/composer.json b/composer.json index cc319f2..358421a 100644 --- a/composer.json +++ b/composer.json @@ -15,21 +15,21 @@ ], "homepage": "https://cleverogre.com", "repositories": { + "cleverogre/plugin-update-checker": { + "type": "vcs", + "url": "git@git.cleverogre.com:cleverogre/plugin-update-checker.git" + }, + "cleverogre/updatepulse-updater": { + "type": "vcs", + "url": "git@git.cleverogre.com:cleverogre/updatepulse-updater.git" + }, "cleverogre/plugin-framework": { "type": "vcs", "url": "git@git.cleverogre.com:cleverogre/plugin-framework.git" }, - "wp-package-updater": { - "type": "package", - "package": { - "name": "froger-me/wp-package-updater", - "version": "1.4.0", - "source": { - "url": "https://github.com/froger-me/wp-package-updater.git", - "type": "git", - "reference": "master" - } - } + "advancedcustomfields": { + "type": "composer", + "url": "https://connect.advancedcustomfields.com" } }, "require": { @@ -38,17 +38,28 @@ "replace": { "wpengine/advanced-custom-fields-pro": "*" }, - "scripts": { - "post-update-cmd": [ - "php vendor/magicoli/wp-package-updater-lib/install.php" - ] - }, "config": { + "allow-plugins": { + "composer/installers": true + }, "optimize-autoloader": true }, + "extra": { + "installer-paths": { + "acf/": [ + "wpengine/advanced-custom-fields-pro" + ], + "lib/{$name}/": [ + "cleverogre/plugin-update-checker", + "cleverogre/updatepulse-updater" + ] + } + }, "autoload": { "files": [ "ogre-captcha.php" ] - } + }, + "minimum-stability": "dev", + "prefer-stable": true } diff --git a/composer.lock b/composer.lock index 18a20bc..3a62212 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "978b7fe126b61796750d67c4c7231417", + "content-hash": "58638c9a456e7f5d17440e11821a51bd", "packages": [ { "name": "cleverogre/plugin-framework", @@ -12,13 +12,12 @@ "source": { "type": "git", "url": "git@git.cleverogre.com:cleverogre/plugin-framework.git", - "reference": "6ba78008013665151d0ffecb94d732baa522caec" + "reference": "74700a249ae3b5e559c071e2467764da4645a26f" }, "require": { - "froger-me/wp-package-updater": "^1.4.0", - "magicoli/wp-package-updater-lib": "^0.1.9", - "wpengine/advanced-custom-fields-pro": "^6.4.2", - "yahnis-elsts/plugin-update-checker": "^5.0" + "cleverogre/plugin-update-checker": "dev-main", + "cleverogre/updatepulse-updater": "dev-main", + "wpengine/advanced-custom-fields-pro": "^6.4.2" }, "default-branch": true, "type": "library", @@ -26,6 +25,10 @@ "installer-paths": { "acf/": [ "wpengine/advanced-custom-fields-pro" + ], + "lib/{$name}/": [ + "cleverogre/plugin-update-checker", + "cleverogre/updatepulse-updater" ] } }, @@ -38,11 +41,6 @@ "inc/abstract-plugin.php" ] }, - "scripts": { - "post-update-cmd": [ - "php vendor/magicoli/wp-package-updater-lib/install.php" - ] - }, "license": [ "GPL-3.0+" ], @@ -53,77 +51,26 @@ "Plugin", "WordPress" ], - "time": "2026-04-28T13:19:19+00:00" + "time": "2026-06-05T20:21:23+00:00" }, { - "name": "froger-me/wp-package-updater", - "version": "1.4.0", + "name": "cleverogre/plugin-update-checker", + "version": "dev-main", "source": { "type": "git", - "url": "https://github.com/froger-me/wp-package-updater.git", - "reference": "master" - }, - "type": "library" - }, - { - "name": "magicoli/wp-package-updater-lib", - "version": "v0.1.10", - "source": { - "type": "git", - "url": "https://github.com/magicoli/wp-package-updater-lib.git", - "reference": "e822132741c08d054fb97f249b1143c220f30e6f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/magicoli/wp-package-updater-lib/zipball/e822132741c08d054fb97f249b1143c220f30e6f", - "reference": "e822132741c08d054fb97f249b1143c220f30e6f", - "shasum": "" - }, - "require-dev": { - "froger-me/wp-plugin-update-server": "*" - }, - "type": "library", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "AGPL-3.0-or-later" - ], - "authors": [ - { - "name": "Magiiic" - } - ], - "description": "Composer package for wp-package-updater library.", - "support": { - "issues": "https://github.com/magicoli/wp-package-updater-lib/issues", - "source": "https://github.com/magicoli/wp-package-updater-lib/tree/v0.1.10" - }, - "time": "2023-06-09T12:42:28+00:00" - }, - { - "name": "yahnis-elsts/plugin-update-checker", - "version": "v5.7", - "source": { - "type": "git", - "url": "https://github.com/YahnisElsts/plugin-update-checker.git", - "reference": "275a96a2a18d03c34c87f35cb68673c8c49ac3b1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/YahnisElsts/plugin-update-checker/zipball/275a96a2a18d03c34c87f35cb68673c8c49ac3b1", - "reference": "275a96a2a18d03c34c87f35cb68673c8c49ac3b1", - "shasum": "" + "url": "git@git.cleverogre.com:cleverogre/plugin-update-checker.git", + "reference": "010b7cf90b5df60d6d98256d48594ae423b951b7" }, "require": { + "composer/installers": "~1.0", "ext-json": "*", "php": ">=5.6.20" }, - "type": "library", - "autoload": { - "files": [ - "load-v5p7.php" - ] + "default-branch": true, + "type": "wordpress-plugin", + "extra": { + "installer-name": "update-plugin-checker" }, - "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], @@ -143,20 +90,190 @@ "theme updates", "wordpress" ], - "support": { - "issues": "https://github.com/YahnisElsts/plugin-update-checker/issues", - "source": "https://github.com/YahnisElsts/plugin-update-checker/tree/v5.7" + "time": "2026-06-05T20:17:06+00:00" + }, + { + "name": "cleverogre/updatepulse-updater", + "version": "dev-main", + "source": { + "type": "git", + "url": "git@git.cleverogre.com:cleverogre/updatepulse-updater.git", + "reference": "0e57c729b09f426d26add0d7c872ce60d3c8cacf" }, - "time": "2026-05-26T12:48:45+00:00" + "require": { + "composer/installers": "~1.0" + }, + "default-branch": true, + "type": "wordpress-plugin", + "extra": { + "installer-name": "updatepulse-updater" + }, + "license": [ + "GPL-3.0+" + ], + "description": "Used to enable updates for plugins and themes distributed via UpdatePulse Server.", + "homepage": "https://github.com/Anyape/updatepulse-server-integration/tree/main/dummy-plugin/lib/updatepulse-updater", + "time": "2026-06-05T20:17:30+00:00" + }, + { + "name": "composer/installers", + "version": "v1.12.0", + "source": { + "type": "git", + "url": "https://github.com/composer/installers.git", + "reference": "d20a64ed3c94748397ff5973488761b22f6d3f19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/installers/zipball/d20a64ed3c94748397ff5973488761b22f6d3f19", + "reference": "d20a64ed3c94748397ff5973488761b22f6d3f19", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0 || ^2.0" + }, + "replace": { + "roundcube/plugin-installer": "*", + "shama/baton": "*" + }, + "require-dev": { + "composer/composer": "1.6.* || ^2.0", + "composer/semver": "^1 || ^3", + "phpstan/phpstan": "^0.12.55", + "phpstan/phpstan-phpunit": "^0.12.16", + "symfony/phpunit-bridge": "^4.2 || ^5", + "symfony/process": "^2.3" + }, + "type": "composer-plugin", + "extra": { + "class": "Composer\\Installers\\Plugin", + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Installers\\": "src/Composer/Installers" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kyle Robinson Young", + "email": "kyle@dontkry.com", + "homepage": "https://github.com/shama" + } + ], + "description": "A multi-framework Composer library installer", + "homepage": "https://composer.github.io/installers/", + "keywords": [ + "Craft", + "Dolibarr", + "Eliasis", + "Hurad", + "ImageCMS", + "Kanboard", + "Lan Management System", + "MODX Evo", + "MantisBT", + "Mautic", + "Maya", + "OXID", + "Plentymarkets", + "Porto", + "RadPHP", + "SMF", + "Starbug", + "Thelia", + "Whmcs", + "WolfCMS", + "agl", + "aimeos", + "annotatecms", + "attogram", + "bitrix", + "cakephp", + "chef", + "cockpit", + "codeigniter", + "concrete5", + "croogo", + "dokuwiki", + "drupal", + "eZ Platform", + "elgg", + "expressionengine", + "fuelphp", + "grav", + "installer", + "itop", + "joomla", + "known", + "kohana", + "laravel", + "lavalite", + "lithium", + "magento", + "majima", + "mako", + "mediawiki", + "miaoxing", + "modulework", + "modx", + "moodle", + "osclass", + "pantheon", + "phpbb", + "piwik", + "ppi", + "processwire", + "puppet", + "pxcms", + "reindex", + "roundcube", + "shopware", + "silverstripe", + "sydes", + "sylius", + "symfony", + "tastyigniter", + "typo3", + "wordpress", + "yawik", + "zend", + "zikula" + ], + "support": { + "issues": "https://github.com/composer/installers/issues", + "source": "https://github.com/composer/installers/tree/v1.12.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-09-13T08:19:44+00:00" } ], "packages-dev": [], "aliases": [], - "minimum-stability": "stable", + "minimum-stability": "dev", "stability-flags": { "cleverogre/plugin-framework": 20 }, - "prefer-stable": false, + "prefer-stable": true, "prefer-lowest": false, "platform": {}, "platform-dev": {}, diff --git a/gulpfile.js b/gulpfile.js index f531e89..18e4f83 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -44,14 +44,16 @@ gulp.task( gulp.task('package-copy', () => { return gulp.src([ + (fs.existsSync('acf') ? 'acf/**/*' : null), 'inc/**/*', - 'lib/**/*', + (fs.existsSync('lib') ? 'lib/**/*' : null),, 'vendor/**/*', 'LICENSE', `${NAME}.php`, 'readme.txt', + (fs.existsSync('updatepulse.json') ? 'updatepulse.json' : null), '!vendor/**/node_modules/**/*', - ], { + ].filter(x => x), { base: './', encoding: false, }) diff --git a/updatepulse.json b/updatepulse.json new file mode 100644 index 0000000..8ef7d3e --- /dev/null +++ b/updatepulse.json @@ -0,0 +1,3 @@ +{ + "server": "https://plugins.cleverogre.com" +}