Add get_latest_version to latex

pull/1555/head
Enoc 4 years ago
parent 5d966ea058
commit 589aeb7f6e

@ -1,8 +1,10 @@
# coding: utf-8
module Docs
class Latex < UrlScraper
self.name = 'LaTeX'
self.slug = 'latex'
self.type = 'simple'
self.release = 'April 2021'
self.links = {
home: 'https://ctan.org/pkg/latex2e-help-texinfo/'
}
@ -18,5 +20,12 @@ module Docs
Public Domain Software
HTML
def get_latest_version(opts)
body = fetch('https://latexref.xyz/', opts)
body = body.scan(/\(\w+\s\d+\)/)[0]
body.sub!('(', '')
body.sub!(')', '')
end
end
end

Loading…
Cancel
Save