From 597afd046dcb40bc3b3a32f972c1b3c67f5601f1 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Tue, 17 Nov 2020 08:14:55 +0100 Subject: [PATCH] babel: retain version 6 docs --- lib/docs/scrapers/babel.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/docs/scrapers/babel.rb b/lib/docs/scrapers/babel.rb index e26848f7..78d52d78 100644 --- a/lib/docs/scrapers/babel.rb +++ b/lib/docs/scrapers/babel.rb @@ -2,7 +2,6 @@ module Docs class Babel < UrlScraper self.type = 'simple' self.base_url = 'https://babeljs.io/docs/en/' - self.release = '7.12.6' self.links = { home: 'https://babeljs.io/', code: 'https://github.com/babel/babel' @@ -30,6 +29,14 @@ module Docs Licensed under the MIT License. HTML + version '7' do + self.release = '7.12.6' + end + + version '6' do + self.release = '6.26.1' + end + def get_latest_version(opts) get_latest_github_release('babel', 'babel', opts) end