History

ocaml: implement get_latest_version

Simon Legner committed 5 years ago

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

Showing the changes to lib (1 of 1 file). Show all

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t