groonga-client 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 421c54a9bc6c48ecfa2324010d0fd8e51d1bfb5d
4
- data.tar.gz: 2588991abfffd393e18b43e5ebe8db807af463a5
3
+ metadata.gz: 3c50b276ffa5a1f9020c6414018c089ac76943b9
4
+ data.tar.gz: 0e9f0189f9f19e1b94e27f1e1fce4363783c7753
5
5
  SHA512:
6
- metadata.gz: f7a4b01cee40b67dd1c8225c90ae22c2fc4e0b9403df4345c68f8fb641cdb4c5282fbcb4668b2c4646092a36fc275cb408ff7fb0a84b1a719d903cd97e0ef6cd
7
- data.tar.gz: a846c1f591bb17d996a521b6c4d5b7e28f5f8d2c0b06d9ec09a4b8feda6967e3057073464fa3f5413058bb1e09f401c7db9415b181b9936a3d7f6cbe1a74c3b7
6
+ metadata.gz: 38b205d2086d409e3c604f7db19d8327f8cfa585481996f7c4cabbe4f52f5b53dfe6a4502032d2eb1180e117e7b93d6de40bbf81806b85efbd8d95a409ce1c93
7
+ data.tar.gz: ddd34bc40409ea4fe7d2ef3684f760c6ac5b01e23b51990bfc1d88fbb4671a2cb9c3626e7017694bbcaf382e07a586bb9bdd0a96fc786660c7feed2815e6d82e
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.0.6 - 2014-03-25
4
+
5
+ ### Fixes
6
+
7
+ * HTTP, Cool.io: Fixed a bug that body is handled when body is
8
+ partially read.
9
+
3
10
  ## 0.0.5 - 2014-03-25
4
11
 
5
12
  ### Improvements
@@ -40,6 +40,7 @@ module Groonga
40
40
  class GroongaHTTPClient < ::Coolio::HttpClient
41
41
  def initialize(socket, callback)
42
42
  super(socket)
43
+ @body = ""
43
44
  @callback = callback
44
45
  @finished = false
45
46
  end
@@ -49,7 +50,11 @@ module Groonga
49
50
  end
50
51
 
51
52
  def on_body_data(data)
52
- @callback.call(data)
53
+ @body << data
54
+ end
55
+
56
+ def on_request_complete
57
+ @callback.call(@body)
53
58
  end
54
59
 
55
60
  def on_close
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2013-2014 Kouhei Sutou <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Groonga
20
20
  class Client
21
- VERSION = "0.0.5"
21
+ VERSION = "0.0.6"
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groonga-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Haruka Yoshihara