update_check: add support for rubygems.org

This commit is contained in:
maxice8 2018-11-05 19:12:23 -02:00 committed by maxice8
parent 56d8f13acb
commit 9ead6eef92

View file

@ -66,6 +66,9 @@ update_check() {
*download.kde.org/stable/applications*|*download.kde.org/stable/frameworks*|*download.kde.org/stable/plasma*)
url="${url%%${version%.*}*}"
rx='href="\K[\d\.]+(?=/")';;
*rubygems.org*)
url="https://rubygems.org/gems/${pkgname#ruby-}"
rx='versions/\K[\d\.]+' ;;
esac
fi