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