[Groonga-commit] droonga/droonga-client-ruby at 821d693 [master] Support non JSON response

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 27 18:14:54 JST 2014


Kouhei Sutou	2014-01-27 18:14:54 +0900 (Mon, 27 Jan 2014)

  New Revision: 821d6932b6112fd77d595b8d5998bbd5cbcd92d5
  https://github.com/droonga/droonga-client-ruby/commit/821d6932b6112fd77d595b8d5998bbd5cbcd92d5

  Message:
    Support non JSON response

  Modified files:
    sample/droonga-request.rb

  Modified: sample/droonga-request.rb (+6 -2)
===================================================================
--- sample/droonga-request.rb    2014-01-27 18:05:09 +0900 (2455f25)
+++ sample/droonga-request.rb    2014-01-27 18:14:54 +0900 (162bbbe)
@@ -76,5 +76,9 @@ request_json_file = rest.first
 
 client = Droonga::Client.new(options)
 request = JSON.parse(File.read(request_json_file))
-puts(JSON.pretty_generate(client.request(request)))
-
+response = client.request(request)
+begin
+  puts(JSON.pretty_generate(response))
+rescue
+  p(response)
+end
-------------- next part --------------
HTML����������������������������...
Download 



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