nginx_lua_module.rb 982 B

1234567891011121314151617181920212223242526272829
  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(options, &block)
  19. get_github_tags('openresty', 'lua-nginx-module', options) do |tags|
  20. tag = tags.find { |tag| !tag['name'].include?('rc') }
  21. block.call tag['name'][1..-1]
  22. end
  23. end
  24. end
  25. end