Skip to content

Commit 7829830

Browse files
author
hieuvu
committed
Upgrade version for M4.5
1 parent e0c0809 commit 7829830

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
services:
99
postgres:
10-
image: postgres:13
10+
image: postgres:15
1111
env:
1212
POSTGRES_USER: 'postgres'
1313
POSTGRES_HOST_AUTH_METHOD: 'trust'
@@ -30,18 +30,12 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
include:
33-
- php: '8.2'
34-
moodle-branch: 'main'
35-
database: 'pgsql'
36-
- php: '8.1'
37-
moodle-branch: 'MOODLE_403_STABLE'
33+
- php: '8.3'
34+
moodle-branch: 'MOODLE_405_STABLE'
3835
database: 'mariadb'
39-
- php: '8.0'
40-
moodle-branch: 'MOODLE_402_STABLE'
36+
- php: '8.2'
37+
moodle-branch: 'MOODLE_404_STABLE'
4138
database: 'pgsql'
42-
- php: '7.4'
43-
moodle-branch: 'MOODLE_401_STABLE'
44-
database: 'mariadb'
4539

4640
steps:
4741
- name: Check out repository code

changes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Changes in 1.1
2+
* Added support for Moodle 4.5+
3+
14
## Changes in 1.0
25

36
* Initial release - a port of the equivalent Atto plugin.

classes/plugininfo.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3131
*/
3232
class plugininfo extends plugin implements plugin_with_configuration {
33-
33+
#[\Override]
3434
public static function is_enabled(context $context, array $options, array $fpoptions,
3535
?\editor_tiny\editor $editor = null): bool {
3636
// Users must have permission to embed content.
@@ -39,6 +39,7 @@ public static function is_enabled(context $context, array $options, array $fpopt
3939
return has_any_capability(['moodle/question:useall', 'moodle/question:usemine'], $context);
4040
}
4141

42+
#[\Override]
4243
public static function get_plugin_configuration_for_context(
4344
context $context,
4445
array $options,

classes/privacy/provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2525
*/
2626
class provider implements \core_privacy\local\metadata\null_provider {
27-
27+
#[\Override]
2828
public static function get_reason(): string {
2929
return 'privacy:metadata';
3030
}

version.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
$plugin->version = 2024011100;
28-
$plugin->requires = 2022112800;
27+
$plugin->version = 2025082700;
28+
$plugin->requires = 2024042200; // Requires Moodle 4.4.
2929
$plugin->component = 'tiny_embedquestion';
30-
$plugin->release = '1.0';
30+
$plugin->release = '1.1';
3131
$plugin->maturity = MATURITY_STABLE;
3232

3333
$plugin->dependencies = [
34-
'filter_embedquestion' => 2022032900,
34+
'filter_embedquestion' => 2025050100,
3535
];
3636

3737
$plugin->outestssufficient = true;

0 commit comments

Comments
 (0)