Skip to content

Commit 4c17e46

Browse files
committed
redis: fix get_latest_version
1 parent ecc4939 commit 4c17e46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/docs/scrapers/redis.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class Redis < UrlScraper
2121
HTML
2222

2323
def get_latest_version(opts)
24-
body = fetch('http://download.redis.io/redis-stable/00-RELEASENOTES', opts)
25-
body.scan(/^Redis ([0-9.]+)\s+Released/).first.first
24+
get_latest_github_release('redis', 'redis', opts)
2625
end
2726

2827
private

0 commit comments

Comments
 (0)