Skip to content

Commit 934cee4

Browse files
committed
wordpress: implement get_latest_version
1 parent b9b454a commit 934cee4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/docs/scrapers/wordpress.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@ class Wordpress < UrlScraper
3535
&copy; 2003&ndash;2019 WordPress Foundation<br>
3636
Licensed under the GNU GPLv2+ License.
3737
HTML
38+
39+
def get_latest_version(opts)
40+
doc = fetch_doc('https://wordpress.org/download/releases/', opts)
41+
doc.at_css('.releases.latest td').content
42+
end
3843
end
3944
end

0 commit comments

Comments
 (0)