| @@ -16,18 +16,23 @@ module Docs · 15 unmodified lines |
| 16 | options[:follow_links] = false | 16 | options[:follow_links] = false |
| 17 | | 17 | |
| 18 | options[:attribution] = <<-HTML | 18 | options[:attribution] = <<-HTML |
| 19 | © 2021 Willy Tarreau, HAProxy contributors<br> | 19 | © 2022 Willy Tarreau, HAProxy contributors<br> |
| 20 | Licensed under the GNU General Public License version 2. | 20 | Licensed under the GNU General Public License version 2. |
| 21 | HTML | 21 | HTML |
| 22 | | 22 | |
| | 23 | version '2.6' do |
| | 24 | self.release = '2.6.5' |
| | 25 | self.base_url = "https://docs.haproxy.org/#{self.version}/" |
| | 26 | end |
| | 27 | |
| 23 | version '2.5' do | 28 | version '2.5' do |
| 24 | self.release = '2.5.0' | 29 | self.release = '2.5.8' |
| 25 | self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/" | 30 | self.base_url = "https://docs.haproxy.org/#{self.version}/" |
| 26 | end | 31 | end |
| 27 | | 32 | |
| 28 | version '2.4' do | 33 | version '2.4' do |
| 29 | self.release = '2.4.0' | 34 | self.release = '2.4.18' |
| 30 | self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/" | 35 | self.base_url = "https://docs.haproxy.org/#{self.version}/" |
| 31 | end | 36 | end |
| 32 | | 37 | |
| 33 | version '2.3' do | 38 | version '2.3' do |
| @@ -66,8 +71,8 @@ module Docs · 32 unmodified lines |
| 66 | end | 71 | end |
| 67 | | 72 | |
| 68 | def get_latest_version(opts) | 73 | def get_latest_version(opts) |
| 69 | doc = fetch_doc('http://www.haproxy.org', opts) | 74 | doc = fetch_doc('https://www.haproxy.org', opts) |
| 70 | doc.at_css('table[cols=6]').css('tr')[1].at_css('td').content | 75 | doc.at_css('table[cols=6]').at_css('tr:not(:first-child) > td:first-child:not(:contains("dev"))').content |
| 71 | end | 76 | end |
| 72 | end | 77 | end |
| 73 | end | 78 | end |