Skip to content

Commit dd70a2f

Browse files
committed
Bump version and define minimum requirement in class constant
Framework version is now 1.3.2 The new FRAMEWORK_VERSION_REQUIRED constant makes it easier to identify and globally increase the required framework number in all plugins.
1 parent a49ab8b commit dd70a2f

File tree

11 files changed

+39
-11
lines changed

11 files changed

+39
-11
lines changed

Source/MantisSourceBase.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ abstract class MantisSourceBase extends MantisPlugin
1919
* a change in the minimum required MantisBT version: 0=1.2; 1=1.3, 2=2.x.
2020
* The framework version is incremented when the plugin's core file change.
2121
*/
22-
const FRAMEWORK_VERSION = '1.3.1';
22+
const FRAMEWORK_VERSION = '1.3.2';
2323

2424
/**
2525
* Minimum required MantisBT version.

SourceBitBucket/SourceBitBucket.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
require_once(config_get( 'core_path' ) . 'json_api.php');
1111

1212
class SourceBitBucketPlugin extends MantisSourcePlugin {
13+
14+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
15+
1316
protected $main_url = "https://bitbucket.org/";
1417
protected $api_url_10 = 'https://bitbucket.org/api/1.0/';
1518
protected $api_url_20 = 'https://bitbucket.org/api/2.0/';
@@ -23,7 +26,7 @@ public function register() {
2326
$this->version = '0.19';
2427
$this->requires = array(
2528
'MantisCore' => self::MANTIS_VERSION,
26-
'Source' => '0.18',
29+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
2730
);
2831

2932
$this->author = 'Sergey Marchenko';

SourceCgit/SourceCgit.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@
1515
}
1616

1717
class SourceCgitPlugin extends MantisSourcePlugin {
18+
19+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
20+
1821
public function register() {
1922
$this->name = plugin_lang_get( 'title' );
2023
$this->description = plugin_lang_get( 'description' );
2124

2225
$this->version = '0.16';
2326
$this->requires = array(
2427
'MantisCore' => self::MANTIS_VERSION,
25-
'Source' => '0.16',
28+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
2629
);
2730

2831
$this->author = 'Alexander';

SourceGithub/SourceGithub.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
class SourceGithubPlugin extends MantisSourcePlugin {
1313

14+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
15+
1416
const ERROR_INVALID_PRIMARY_BRANCH = 'invalid_branch';
1517

1618
public $linkPullRequest = '/pull/%s';
@@ -22,7 +24,7 @@ public function register() {
2224
$this->version = '1.3.0';
2325
$this->requires = array(
2426
'MantisCore' => self::MANTIS_VERSION,
25-
'Source' => '1.3.0',
27+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
2628
);
2729

2830
$this->author = 'John Reese';

SourceGitlab/SourceGitlab.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
class SourceGitlabPlugin extends MantisSourcePlugin {
1515

16+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
17+
1618
const ERROR_INVALID_PRIMARY_BRANCH = 'invalid_branch';
1719

1820
public function register() {
@@ -22,7 +24,7 @@ public function register() {
2224
$this->version = '1.0.4';
2325
$this->requires = array(
2426
'MantisCore' => self::MANTIS_VERSION,
25-
'Source' => '1.3.0',
27+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
2628
);
2729

2830
$this->author = 'Johannes Goehr';

SourceGitweb/SourceGitweb.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@
1010
require_once( config_get( 'core_path' ) . 'url_api.php' );
1111

1212
class SourceGitwebPlugin extends MantisSourcePlugin {
13+
14+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
15+
1316
public function register() {
1417
$this->name = plugin_lang_get( 'title' );
1518
$this->description = plugin_lang_get( 'description' );
1619

1720
$this->version = '0.18';
1821
$this->requires = array(
1922
'MantisCore' => self::MANTIS_VERSION,
20-
'Source' => '0.16',
23+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
2124
);
2225

2326
$this->author = 'John Reese';

SourceHgWeb/SourceHgWeb.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@
1818
require_once( config_get( 'core_path' ) . 'url_api.php' );
1919

2020
class SourceHgWebPlugin extends MantisSourcePlugin {
21+
22+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
23+
2124
function register() {
2225
$this->name = plugin_lang_get( 'title' );
2326
$this->description = plugin_lang_get( 'description' );
2427

2528
$this->version = '0.15';
2629
$this->requires = array(
2730
'MantisCore' => self::MANTIS_VERSION,
28-
'Source' => '0.14',
31+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
2932
);
3033

3134
$this->author = 'David Hicks';

SourceSFSVN/SourceSFSVN.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88
}
99

1010
class SourceSFSVNPlugin extends SourceSVNPlugin {
11+
12+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
13+
1114
public function register() {
1215
$this->name = lang_get( 'plugin_SourceSFSVN_title' );
1316
$this->description = lang_get( 'plugin_SourceSFSVN_description' );
1417

1518
$this->version = '0.16';
1619
$this->requires = array(
1720
'MantisCore' => self::MANTIS_VERSION,
18-
'Source' => '0.16',
21+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
1922
'SourceSVN' => '0.16',
2023
);
2124

SourceSVN/SourceSVN.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88
}
99

1010
class SourceSVNPlugin extends MantisSourcePlugin {
11+
12+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
13+
1114
public function register() {
1215
$this->name = plugin_lang_get( 'title' );
1316
$this->description = plugin_lang_get( 'description' );
1417

1518
$this->version = '0.19';
1619
$this->requires = array(
1720
'MantisCore' => self::MANTIS_VERSION,
18-
'Source' => '0.16',
21+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
1922
);
2023

2124
$this->author = 'John Reese';

SourceViewVC/SourceViewVC.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
}
1010

1111
class SourceViewVCPlugin extends SourceSVNPlugin {
12+
13+
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
14+
1215
public function register() {
1316
$this->name = lang_get( 'plugin_SourceViewVC_title' );
1417
$this->description = lang_get( 'plugin_SourceViewVC_description' );
1518

1619
$this->version = '0.1';
1720
$this->requires = array(
1821
'MantisCore' => self::MANTIS_VERSION,
19-
'Source' => '0.16',
22+
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
2023
'SourceSVN' => '0.16',
2124
);
2225

0 commit comments

Comments
 (0)