]> git.saurik.com Git - redis.git/blobdiff - utils/generate-command-help.rb
Merge pull request #430 from anydot/f-testsuite
[redis.git] / utils / generate-command-help.rb
index f730eaf10092ee781dd1e238d299a2883b95a4ba..f6ca8874b4ebb937d861f39aa5e6426465829569 100755 (executable)
@@ -10,7 +10,8 @@ GROUPS = [
   "pubsub",
   "transactions",
   "connection",
   "pubsub",
   "transactions",
   "connection",
-  "server"
+  "server",
+  "scripting"
 ].freeze
 
 GROUPS_BY_NAME = Hash[*
 ].freeze
 
 GROUPS_BY_NAME = Hash[*
@@ -42,12 +43,13 @@ end
 def commands
   return @commands if @commands
 
 def commands
   return @commands if @commands
 
+  require "rubygems"
   require "net/http"
   require "net/https"
   require "json"
   require "uri"
 
   require "net/http"
   require "net/https"
   require "json"
   require "uri"
 
-  url = URI.parse "https://github.com/antirez/redis-doc/raw/master/commands.json"
+  url = URI.parse "https://raw.github.com/antirez/redis-doc/master/commands.json"
   client = Net::HTTP.new url.host, url.port
   client.use_ssl = true
   response = client.get url.path
   client = Net::HTTP.new url.host, url.port
   client.use_ssl = true
   response = client.get url.path