From db655520a2b847fce7dcc3609e222f5b86a5ab8a Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Feb 2024 19:26:42 +0100 Subject: [PATCH] nim: keep 1.4 docs --- lib/docs/scrapers/nim.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/docs/scrapers/nim.rb b/lib/docs/scrapers/nim.rb index d24e19b2..9001dbee 100644 --- a/lib/docs/scrapers/nim.rb +++ b/lib/docs/scrapers/nim.rb @@ -1,7 +1,6 @@ module Docs class Nim < UrlScraper self.type = 'simple' - self.release = '2.0.2' self.base_url = 'https://nim-lang.org/docs/' self.root_path = 'overview.html' self.links = { @@ -18,6 +17,14 @@ module Docs Licensed under the MIT License. HTML + version do + self.release = '2.0.2' + end + + version '1' do + self.release = '1.4.8' + end + def get_latest_version(opts) doc = fetch_doc('https://nim-lang.org/docs/overview.html', opts) doc.at_css('.container > .docinfo > tbody > tr:last-child > td').content.strip