Compare commits
3 commits
9cdf91384a
...
b38c8b8ff0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b38c8b8ff0 | ||
|
|
0f63efdec4 | ||
|
|
f19b4ed9e1 |
3 changed files with 5 additions and 5 deletions
|
|
@ -5,8 +5,8 @@ class DokuWiki extends PatchBase {
|
||||||
parent::__construct('Andreas Gohr', 'DokuWiki', 'https://download.dokuwiki.org/');
|
parent::__construct('Andreas Gohr', 'DokuWiki', 'https://download.dokuwiki.org/');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://www.dokuwiki.org/changes'))
|
if ($this->fetch_json('https://api.github.com/repos/dokuwiki/dokuwiki/releases/latest'))
|
||||||
return $this->parse('/Release ([\d-]+[a-z]? (\"|\xE2\x80\x9C)[A-Za-z ]+(\"|\xE2\x80\x9D))/');
|
return $this->parse_json('tag_name');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ class ESPurna extends PatchBase {
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch_json('https://api.github.com/repos/xoseperez/espurna/releases/latest'))
|
if ($this->fetch_json('https://api.github.com/repos/xoseperez/espurna/releases/latest'))
|
||||||
return $this->parse_json('tag_name');
|
return $this->parse_json('tag_name', '/github(.+)/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ class OpenVPN extends PatchBase {
|
||||||
parent::__construct('OpenVPN Inc.', 'OpenVPN', 'https://openvpn.net/community-downloads/');
|
parent::__construct('OpenVPN Inc.', 'OpenVPN', 'https://openvpn.net/community-downloads/');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch_json('https://api.github.com/repos/OpenVPN/openvpn/tags'))
|
if ($this->fetch_json('https://api.github.com/repos/OpenVPN/openvpn/releases/latest'))
|
||||||
return $this->parse_json('name');
|
return $this->parse_json('tag_name');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue