diff --git a/lib/docs/scrapers/ocaml.rb b/lib/docs/scrapers/ocaml.rb index 6a3e448c..bd98222e 100644 --- a/lib/docs/scrapers/ocaml.rb +++ b/lib/docs/scrapers/ocaml.rb @@ -26,5 +26,10 @@ module Docs © INRIA 1995-2020. HTML + def get_latest_version(opts) + doc = fetch_doc('https://www.ocaml.org/releases/', opts) + doc.css('#main-contents li > a').first.content + end + end end