[Groonga-commit] droonga/wikipedia-search at e8c63f5 [master] Implement --show-response

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 10 18:26:34 JST 2014


Kouhei Sutou	2014-04-10 18:26:34 +0900 (Thu, 10 Apr 2014)

  New Revision: e8c63f54cac69b3b2f7d945dd96fb176aba154f8
  https://github.com/droonga/wikipedia-search/commit/e8c63f54cac69b3b2f7d945dd96fb176aba154f8

  Message:
    Implement --show-response

  Modified files:
    bin/wikipedia-search.rb

  Modified: bin/wikipedia-search.rb (+4 -0)
===================================================================
--- bin/wikipedia-search.rb    2014-04-10 17:32:57 +0900 (37d2fb6)
+++ bin/wikipedia-search.rb    2014-04-10 18:26:34 +0900 (775a1a6)
@@ -1,5 +1,6 @@
 #!/usr/bin/env ruby
 
+require "pp"
 require "pathname"
 require "ostruct"
 require "optparse"
@@ -83,6 +84,9 @@ def send_request(query, client, options)
       n_hits = 0
     end
     p [elapsed, query, status_code, n_hits]
+    if options.show_response
+      pp response
+    end
     yield
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index