module Docs class NginxLuaModule < Github self.name = 'nginx / Lua Module' self.slug = 'nginx_lua_module' self.release = '0.10.13' self.base_url = "https://github.com/openresty/lua-nginx-module/tree/v#{self.release}/" self.links = { code: 'https://github.com/openresty/lua-nginx-module' } html_filters.push 'nginx_lua_module/clean_html', 'nginx_lua_module/entries', 'title' options[:root_title] = 'ngx_http_lua_module' options[:container] = '#readme > article' options[:attribution] = <<-HTML © 2009–2017 Xiaozhe Wang (chaoslawful)
© 2009–2018 Yichun "agentzh" Zhang (章亦春), OpenResty Inc.
Licensed under the BSD License. HTML def get_latest_version(opts) tags = get_github_tags('openresty', 'lua-nginx-module', opts) tag = tags.find {|tag| !tag['name'].include?('rc')} tag['name'][1..-1] end end end