From 2018cd101a2c8cc424eed42eb3b7451f98f071a7 Mon Sep 17 00:00:00 2001 From: Julien Desgats Date: Fri, 29 Jan 2016 00:12:47 +0100 Subject: [PATCH] Version Lua documentation (5.1, 5.2, 5.3) --- lib/docs/scrapers/lua.rb | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/lua.rb b/lib/docs/scrapers/lua.rb index 5fb4f070..5ca5b813 100644 --- a/lib/docs/scrapers/lua.rb +++ b/lib/docs/scrapers/lua.rb @@ -1,8 +1,6 @@ module Docs class Lua < UrlScraper self.type = 'lua' - self.release = '5.3' - self.base_url = 'http://www.lua.org/manual/5.3/' self.root_path = 'manual.html' html_filters.push 'lua/clean_html', 'lua/entries' @@ -13,5 +11,20 @@ module Docs © 1994–2015 Lua.org, PUC-Rio.
Licensed under the MIT License. HTML + + version '5.1' do + self.release = '5.1' + self.base_url = 'http://www.lua.org/manual/5.1/' + end + + version '5.2' do + self.release = '5.2' + self.base_url = 'http://www.lua.org/manual/5.2/' + end + + version '5.3' do + self.release = '5.3' + self.base_url = 'http://www.lua.org/manual/5.3/' + end end end