Unified · Split
| @@ -71,7 +71,7 @@ module Docs · 70 unmodified lines | ||
| 71 | 71 | |
| 72 | 72 | def get_latest_version(opts) |
| 73 | 73 | doc = fetch_doc('https://docs.ansible.com/ansible/latest/index.html', opts) |
| 74 | − doc.at_css('.DocSiteProduct-CurrentVersion').content.strip | |
| 74 | + doc.at_css('.version').content.strip | |
| 75 | 75 | end |
| 76 | 76 | end |
| 77 | 77 | end |
| @@ -33,7 +33,7 @@ module Docs · 32 unmodified lines | ||
| 33 | 33 | def get_latest_version(opts) |
| 34 | 34 | doc = fetch_doc('https://api.dartlang.org/', opts) |
| 35 | 35 | label = doc.at_css('footer > span').content.strip |
| 36 | − label.sub(/Dart /, '') | |
| 36 | + label.sub(/Dart\s*/, '') | |
| 37 | 37 | end |
| 38 | 38 | end |
| 39 | 39 | end |
| @@ -37,5 +37,11 @@ module Docs · 36 unmodified lines | ||
| 37 | 37 | Distributed under the <a href="https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright">gnuplot license</a> (rights to distribute modified versions are withheld). |
| 38 | 38 | HTML |
| 39 | 39 | |
| 40 | + def get_latest_version(opts) | |
| 41 | + doc = fetch_doc('http://www.gnuplot.info/download.html', opts) | |
| 42 | + label = doc.at_css('h2').content.strip | |
| 43 | + label.sub(/[^0-9.]*/, '') | |
| 44 | + end | |
| 45 | + | |
| 40 | 46 | end |
| 41 | 47 | end |
| @@ -62,9 +62,7 @@ module Docs · 61 unmodified lines | ||
| 62 | 62 | end |
| 63 | 63 | |
| 64 | 64 | def get_latest_version(opts) |
| 65 | − doc = fetch_doc('http://pandas.pydata.org/pandas-docs/stable/', opts) | |
| 66 | − label = doc.at_css('.body > .section > p').content | |
| 67 | − label.scan(/Version: ([0-9.]+)/)[0][0] | |
| 65 | + get_latest_github_release('pandas-dev', 'pandas', opts) | |
| 68 | 66 | end |
| 69 | 67 | end |
| 70 | 68 | end |