Skip to content

Commit 30b3f25

Browse files
author
Chris Gårdenberg
committed
ci: Fixed gulp-script to insert Required PHP version into base file for plugin, also dynamic end year for license.
1 parent 57b7b25 commit 30b3f25

6 files changed

Lines changed: 33 additions & 12 deletions

File tree

Gulpfile.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ gulp.task("eduadmin-version", function () {
4242
.pipe(replace("$PLUGINVERSION$", pinfo.version))
4343
.pipe(replace("$PLUGINATLEAST$", pinfo.config.eduadmin.requiresAtLeast))
4444
.pipe(replace("$PLUGINTESTEDTO$", pinfo.config.eduadmin.testedUpTo))
45+
.pipe(
46+
replace(
47+
"$PLUGINREQUIREDPHP$",
48+
pinfo.config.eduadmin.minimumPhpVersion
49+
)
50+
)
51+
.pipe(replace("$CURRENTYEAR$", new Date().getFullYear()))
4552
.pipe(gulp.dest("./"));
4653
});
4754

eduadmin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
* Version: 3.0.0
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
15-
* Requires at least: 5.0
16-
* Tested up to: 5.8
15+
* Requires at least: 5.8
16+
* Tested up to: 5.9
17+
* Requires PHP: 7.0
1718
* Author: Chris Gårdenberg, MultiNet Interactive AB
1819
* Author URI: https://www.multinet.com
1920
* License: GPL3
@@ -22,7 +23,7 @@
2223
*/
2324
/*
2425
EduAdmin Booking plugin
25-
Copyright (C) 2015-2018 Chris Gårdenberg, MultiNet Interactive AB
26+
Copyright (C) 2015-2022 Chris Gårdenberg, MultiNet Interactive AB
2627
2728
This program is free software: you can redistribute it and/or modify
2829
it under the terms of the GNU General Public License as published by
@@ -309,7 +310,7 @@ public function get_news() {
309310
}
310311

311312
return $news_items;
312-
}, HOUR_IN_SECONDS );
313+
}, HOUR_IN_SECONDS );
313314
}
314315

315316
private function new_version_needed_notice() {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"path": "./node_modules/cz-conventional-changelog"
3030
},
3131
"eduadmin": {
32-
"testedUpTo": "5.8",
33-
"requiresAtLeast": "5.0",
32+
"testedUpTo": "5.9",
33+
"requiresAtLeast": "5.8",
3434
"minimumPhpVersion": "7.0"
3535
}
3636
}

readme.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
=== EduAdmin Booking ===
22
Contributors: mnchga
33
Tags: booking, participants, courses, events, eduadmin, lega online
4-
Requires at least: 5.0
5-
Tested up to: 5.8
4+
Requires at least: 5.8
5+
Tested up to: 5.9
66
Stable tag: 3.0.0
77
Requires PHP: 7.0
88
License: GPL3
9-
License-URI: https://www.gnu.org/licenses/gpl-3.0.en.html
9+
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10+
1011
EduAdmin plugin to allow visitors to book courses at your website. Requires EduAdmin-account.
1112

1213
== Description ==
@@ -36,7 +37,12 @@ Requires the following PHP-modules
3637

3738
== Upgrade Notice ==
3839

40+
= 3.0 =
41+
42+
Styles have been remade for the end user login page, and the booking list page. Please check that any custom styles are still working, or you might need to fix them.
43+
3944
= 2.0 =
45+
4046
We have replaced everything with a new API-client, so some things may be broken. If you experience any bugs (not new feature-requests), please contact the MultiNet Support.
4147
If you notice that your API key doesn't work any more, you have to contact us.
4248

src/eduadmin.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1515
* Requires at least: $PLUGINATLEAST$
1616
* Tested up to: $PLUGINTESTEDTO$
17+
* Requires PHP: $PLUGINREQUIREDPHP$
1718
* Author: Chris Gårdenberg, MultiNet Interactive AB
1819
* Author URI: https://www.multinet.com
1920
* License: GPL3
@@ -22,7 +23,7 @@
2223
*/
2324
/*
2425
EduAdmin Booking plugin
25-
Copyright (C) 2015-2018 Chris Gårdenberg, MultiNet Interactive AB
26+
Copyright (C) 2015-$CURRENTYEAR$ Chris Gårdenberg, MultiNet Interactive AB
2627
2728
This program is free software: you can redistribute it and/or modify
2829
it under the terms of the GNU General Public License as published by
@@ -309,7 +310,7 @@ public function get_news() {
309310
}
310311

311312
return $news_items;
312-
}, HOUR_IN_SECONDS );
313+
}, HOUR_IN_SECONDS );
313314
}
314315

315316
private function new_version_needed_notice() {

src/readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Tested up to: $PLUGINTESTEDTO$
66
Stable tag: $PLUGINVERSION$
77
Requires PHP: $PLUGINREQUIREDPHP$
88
License: GPL3
9-
License-URI: https://www.gnu.org/licenses/gpl-3.0.en.html
9+
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10+
1011
EduAdmin plugin to allow visitors to book courses at your website. Requires EduAdmin-account.
1112

1213
== Description ==
@@ -36,7 +37,12 @@ Requires the following PHP-modules
3637

3738
== Upgrade Notice ==
3839

40+
= 3.0 =
41+
42+
Styles have been remade for the end user login page, and the booking list page. Please check that any custom styles are still working, or you might need to fix them.
43+
3944
= 2.0 =
45+
4046
We have replaced everything with a new API-client, so some things may be broken. If you experience any bugs (not new feature-requests), please contact the MultiNet Support.
4147
If you notice that your API key doesn't work any more, you have to contact us.
4248

0 commit comments

Comments
 (0)