1
0

nginx_lua_module.rb 938 B

12345678910111213141516171819202122232425262728
  1. module Docs
  2. class NginxLuaModule < Github
  3. self.name = 'nginx / Lua Module'
  4. self.slug = 'nginx_lua_module'
  5. self.release = '0.10.13'
  6. self.base_url = "https://github.com/openresty/lua-nginx-module/tree/v#{self.release}/"
  7. self.links = {
  8. code: 'https://github.com/openresty/lua-nginx-module'
  9. }
  10. html_filters.push 'nginx_lua_module/clean_html', 'nginx_lua_module/entries', 'title'
  11. options[:root_title] = 'ngx_http_lua_module'
  12. options[:container] = '#readme > article'
  13. options[:attribution] = <<-HTML
  14. &copy; 2009&ndash;2017 Xiaozhe Wang (chaoslawful)<br>
  15. &copy; 2009&ndash;2018 Yichun "agentzh" Zhang (章亦春), OpenResty Inc.<br>
  16. Licensed under the BSD License.
  17. HTML
  18. def get_latest_version(opts)
  19. tags = get_github_tags('openresty', 'lua-nginx-module', opts)
  20. tag = tags.find {|tag| !tag['name'].include?('rc')}
  21. tag['name'][1..-1]
  22. end
  23. end
  24. end