Browse Source

redis: fix get_latest_version

Simon Legner 6 days ago
parent
commit
4c17e46f8d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lib/docs/scrapers/redis.rb

+ 1 - 2
lib/docs/scrapers/redis.rb

@@ -21,8 +21,7 @@ module Docs
     HTML
     HTML
 
 
     def get_latest_version(opts)
     def get_latest_version(opts)
-      body = fetch('http://download.redis.io/redis-stable/00-RELEASENOTES', opts)
-      body.scan(/^Redis ([0-9.]+)\s+Released/).first.first
+      get_latest_github_release('redis', 'redis', opts)
     end
     end
 
 
     private
     private