PatchBot/modules/RuuviTag.php

14 lines
341 B
PHP

<?php
class RuuviTag extends PatchBase {
function __construct() {
parent::__construct('Ruuvi Innovations', 'RuuviTag', 'https://lab.ruuvi.com/dfu/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/ruuvi/ruuvitag_fw/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>