Moved branch tags to new attribute

This commit is contained in:
Steffen Lange 2020-04-01 17:28:09 +02:00
parent 3d037ec2b3
commit ffc5ce2b33
12 changed files with 21 additions and 9 deletions

View file

@ -2,7 +2,8 @@
class AdobeReader extends PatchBase { class AdobeReader extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Adobe', 'Acrobat Reader DC', 'https://get.adobe.com/reader/'); parent::__construct('Adobe', 'Acrobat Reader', 'https://get.adobe.com/reader/');
$this->patch->setBranch('DC');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html')) if ($this->fetch('https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html'))

View file

@ -2,7 +2,8 @@
class AdoptOpenJDK11 extends PatchBase { class AdoptOpenJDK11 extends PatchBase {
function __construct() { function __construct() {
parent::__construct('AdoptOpenJDK', 'OpenJDK JRE 11', 'https://adoptopenjdk.net/'); parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/');
$this->patch->setBranch('JRE 11');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk11?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true)) if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk11?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true))

View file

@ -2,7 +2,8 @@
class AdoptOpenJDK14 extends PatchBase { class AdoptOpenJDK14 extends PatchBase {
function __construct() { function __construct() {
parent::__construct('AdoptOpenJDK', 'OpenJDK JRE 14', 'https://adoptopenjdk.net/'); parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/');
$this->patch->setBranch('JRE 14');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk14?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true)) if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk14?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true))

View file

@ -2,7 +2,8 @@
class AdoptOpenJDK8 extends PatchBase { class AdoptOpenJDK8 extends PatchBase {
function __construct() { function __construct() {
parent::__construct('AdoptOpenJDK', 'OpenJDK JRE 8', 'https://adoptopenjdk.net/'); parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/');
$this->patch->setBranch('JRE 8');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk8?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true)) if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk8?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true))

View file

@ -2,7 +2,8 @@
class Bitwarden_rs extends PatchBase { class Bitwarden_rs extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Daniel García', 'Bitwarden Web Vault in Rust', 'https://github.com/dani-garcia/bw_web_builds'); parent::__construct('Daniel García', 'Bitwarden in Rust', 'https://github.com/dani-garcia/bw_web_builds');
$this->patch->setBranch('Web Vault');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest', true)) if ($this->fetch('https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest', true))

View file

@ -3,6 +3,7 @@
class Floccus extends PatchBase { class Floccus extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Marcel Klehr', 'floccus', 'https://addons.mozilla.org/en-US/firefox/addon/floccus/'); parent::__construct('Marcel Klehr', 'floccus', 'https://addons.mozilla.org/en-US/firefox/addon/floccus/');
$this->patch->setBranch('for Firefox');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/floccus/')) if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/floccus/'))

View file

@ -2,7 +2,8 @@
class LibreOfficeFresh extends PatchBase { class LibreOfficeFresh extends PatchBase {
function __construct() { function __construct() {
parent::__construct('The Document Foundation', 'LibreOffice - Fresh Branch', 'https://www.libreoffice.org/download/download/'); parent::__construct('The Document Foundation', 'LibreOffice', 'https://www.libreoffice.org/download/download/');
$this->patch->setBranch('Fresh');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.libreoffice.org/download/release-notes/')) if ($this->fetch('https://www.libreoffice.org/download/release-notes/'))

View file

@ -2,7 +2,8 @@
class LibreOfficeStill extends PatchBase { class LibreOfficeStill extends PatchBase {
function __construct() { function __construct() {
parent::__construct('The Document Foundation', 'LibreOffice - Still Branch', 'https://www.libreoffice.org/download/download/'); parent::__construct('The Document Foundation', 'LibreOffice', 'https://www.libreoffice.org/download/download/');
$this->patch->setBranch('Still');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.libreoffice.org/download/release-notes/')) if ($this->fetch('https://www.libreoffice.org/download/release-notes/'))

View file

@ -3,6 +3,7 @@
class MSOffice2019 extends PatchBase { class MSOffice2019 extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Microsoft', 'Office 2019', 'https://docs.microsoft.com/en-us/OfficeUpdates/update-history-office-2019#retail-versions-of-office-2016-c2r-and-office-2019'); parent::__construct('Microsoft', 'Office 2019', 'https://docs.microsoft.com/en-us/OfficeUpdates/update-history-office-2019#retail-versions-of-office-2016-c2r-and-office-2019');
$this->patch->setBranch('Retail');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://docs.microsoft.com/en-us/OfficeUpdates/update-history-office-2019')) { if ($this->fetch('https://docs.microsoft.com/en-us/OfficeUpdates/update-history-office-2019')) {

View file

@ -2,7 +2,8 @@
class MSOffice2019VL extends PatchBase { class MSOffice2019VL extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Microsoft', 'Office 2019 VL', 'https://docs.microsoft.com/en-us/OfficeUpdates/update-history-office-2019#volume-licensed-versions-of-office-2019'); parent::__construct('Microsoft', 'Office 2019', 'https://docs.microsoft.com/en-us/OfficeUpdates/update-history-office-2019#volume-licensed-versions-of-office-2019');
$this->patch->setBranch('Volume License');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://docs.microsoft.com/en-us/OfficeUpdates/update-history-office-2019')) { if ($this->fetch('https://docs.microsoft.com/en-us/OfficeUpdates/update-history-office-2019')) {

View file

@ -2,7 +2,8 @@
class MozillaFirefoxESR extends PatchBase { class MozillaFirefoxESR extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Mozilla', 'Firefox ESR', 'https://www.mozilla.org/en-US/firefox/organizations/all/'); parent::__construct('Mozilla', 'Firefox', 'https://www.mozilla.org/en-US/firefox/organizations/all/');
$this->patch->setBranch('ESR');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.mozilla.org/en-US/firefox/organizations/all/')) if ($this->fetch('https://www.mozilla.org/en-US/firefox/organizations/all/'))

View file

@ -3,6 +3,7 @@
class UBlock extends PatchBase { class UBlock extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Raymond Hill', 'uBlock Origin', 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/'); parent::__construct('Raymond Hill', 'uBlock Origin', 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/');
$this->patch->setBranch('for Firefox');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/')) if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/'))