diff --git a/lib/docs/scrapers/less.rb b/lib/docs/scrapers/less.rb index fba9d2ac..744b529f 100644 --- a/lib/docs/scrapers/less.rb +++ b/lib/docs/scrapers/less.rb @@ -1,7 +1,6 @@ module Docs class Less < UrlScraper self.type = 'simple' - self.release = '3.12.0' self.base_url = 'http://lesscss.org' self.root_path = '/features' self.initial_paths = %w(/functions) @@ -22,6 +21,14 @@ module Docs Licensed under the Creative Commons Attribution License 3.0. HTML + version '3' do + self.release = '3.12.0' + end + + version '2' do + self.release = '2.7.2' + end + def get_latest_version(opts) doc = fetch_doc('http://lesscss.org/features/', opts) label = doc.at_css('.footer-links > li').content