History

ocaml: implement get_latest_version

Simon Legner committed 5 years ago

Commit 6d629051 parent 655a0d91 file · +5 −0Browse files

Unified · Split

lib/docs/scrapers/ocaml.rb+5−0
@@ -26,5 +26,10 @@ module Docs · 25 unmodified lines
2626 © INRIA 1995-2020.
2727 HTML
2828
29+ def get_latest_version(opts)
30+ doc = fetch_doc('https://www.ocaml.org/releases/', opts)
31+ doc.css('#main-contents li > a').first.content
32+ end
33+
2934 end
3035 end