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
26 © INRIA 1995-2020.26 © INRIA 1995-2020.
27 HTML27 HTML
28 28
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
29 end34 end
30end35end