Unified · Split
| @@ -173,7 +173,7 @@ credits = [ · 172 unmodified lines | ||
| 173 | 173 | 'https://github.com/clojure/clojure/blob/master/epl-v10.html' |
| 174 | 174 | ], [ |
| 175 | 175 | 'CMake', |
| 176 | − '2000-2019 Kitware, Inc. and Contributors', | |
| 176 | + '2000-2022 Kitware, Inc. and Contributors', | |
| 177 | 177 | 'BSD', |
| 178 | 178 | 'https://cmake.org/licensing/' |
| 179 | 179 | ], [ |
| @@ -16,10 +16,25 @@ module Docs · 15 unmodified lines | ||
| 16 | 16 | options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/] |
| 17 | 17 | |
| 18 | 18 | options[:attribution] = <<-HTML |
| 19 | − © 2000–2021 Kitware, Inc. and Contributors<br> | |
| 19 | + © 2000–2022 Kitware, Inc. and Contributors<br> | |
| 20 | 20 | Licensed under the BSD 3-clause License. |
| 21 | 21 | HTML |
| 22 | 22 | |
| 23 | + version '3.24' do | |
| 24 | + self.release = '3.24' | |
| 25 | + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" | |
| 26 | + end | |
| 27 | + | |
| 28 | + version '3.23' do | |
| 29 | + self.release = '3.23' | |
| 30 | + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" | |
| 31 | + end | |
| 32 | + | |
| 33 | + version '3.22' do | |
| 34 | + self.release = '3.22' | |
| 35 | + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" | |
| 36 | + end | |
| 37 | + | |
| 23 | 38 | version '3.21' do |
| 24 | 39 | self.release = '3.21' |
| 25 | 40 | self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" |
| @@ -106,9 +121,8 @@ module Docs · 80 unmodified lines | ||
| 106 | 121 | end |
| 107 | 122 | |
| 108 | 123 | def get_latest_version(opts) |
| 109 | − doc = fetch_doc('https://cmake.org/documentation/', opts) | |
| 110 | − link = doc.at_css('.entry-content ul > li > strong > a > big') | |
| 111 | − link.content.scan(/([0-9.]+)/)[0][0] | |
| 124 | + tags = get_gitlab_tags('gitlab.kitware.com', 'cmake', 'cmake', opts) | |
| 125 | + tags[0]['name'][1..] | |
| 112 | 126 | end |
| 113 | 127 | end |
| 114 | 128 | end |