Skip to content

Commit b2c2841

Browse files
authored
Merge pull request #317 from afragen/add-git-updater-lite
Integration of `afragen/git updater lite`
2 parents f1ac8bd + 6e201eb commit b2c2841

File tree

8 files changed

+677
-4
lines changed

8 files changed

+677
-4
lines changed

aspire-update.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
2121
* Text Domain: aspireupdate
2222
* Domain Path: /languages
23-
* GitHub Plugin URI: https://github.com/aspirepress/aspireupdate
24-
* Primary Branch: main
23+
* Update URI: https://aspirepress.org
2524
*/
2625

2726
if ( ! defined( 'ABSPATH' ) ) {
@@ -47,6 +46,8 @@ function aspire_update() {
4746
if ( ! defined( 'AP_RUN_TESTS' ) ) {
4847
new AspireUpdate\Controller();
4948
}
49+
require_once __DIR__ . '/vendor/afragen/git-updater-lite/Lite.php';
50+
( new \Fragen\Git_Updater\Lite( __FILE__ ) )->run();
5051
}
5152

5253
register_activation_hook( __FILE__, 'aspire_update_activation_hook' );

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"require": {
1212
"php": ">=7.4.0",
1313
"afragen/autoloader": "dev-master",
14-
"afragen/translations-updater": "^1"
14+
"afragen/translations-updater": "^1",
15+
"afragen/git-updater-lite": "^2"
1516
},
1617
"require-dev": {
1718
"squizlabs/php_codesniffer": "3.10.3",

composer.lock

+60-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Andy Fragen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)