Kouhei Sutou
null+****@clear*****
Mon Sep 5 10:46:09 JST 2016
Kouhei Sutou 2016-09-05 10:46:09 +0900 (Mon, 05 Sep 2016) New Revision: 1a4b0305887ac9145c8f1d43d2cd16c58de6073c https://github.com/ranguba/groonga-client/commit/1a4b0305887ac9145c8f1d43d2cd16c58de6073c Message: Put all needed information into example If example isn't "run-able", user will be confused. Modified files: README.md Modified: README.md (+10 -2) =================================================================== --- README.md 2016-09-05 10:40:57 +0900 (0fce358) +++ README.md 2016-09-05 10:46:09 +0900 (388f94f) @@ -28,7 +28,11 @@ GQTP. Here is a sample to get list of tables via HTTP protocol. - Groonga::Client.open(:host => host, :port => port, :protocol => :http) do |client| + require "groonga/client" + + host = "127.0.0.1" + protocol = :http + Groonga::Client.open(:host => host, :protocol => protocol) do |client| tables = client.table_list tables.each do |table| table.name @@ -39,7 +43,11 @@ Here is a sample to get list of tables via HTTP protocol. Here is a sample to get list of tables via GQTP protocol. - Groonga::Client.open(:host => host, :port => port, :protocol => :gqtp) do |client| + require "groonga/client" + + host = "127.0.0.1" + protocol = :gqtp + Groonga::Client.open(:host => host, :protocol => protocol) do |client| tables = client.table_list tables.each do |table| table.name -------------- next part -------------- HTML����������������������������...Download