droonga-client 0.1.1 → 0.1.2

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: 1425d0688ad70bf175cc34babb4a93fe23d7d0d7
4
- data.tar.gz: cab9ce24171ee59feb0c95097bf21b9c3917dc2e
3
+ metadata.gz: 8292fde2e0f476c6debeaabe0b41d37b8c66f731
4
+ data.tar.gz: 31daa786ee3345ee8134670d17ce6faffd3a1b05
5
5
  SHA512:
6
- metadata.gz: afdf8921e65d0d48c5ce50634ec2da10fc6adffa909308955b621bfa1f36af981470264133bca566f8b5906de9034fa5216f1761fe6c9e74ffaa9c7280b1fccc
7
- data.tar.gz: 2990e9883d037f64c12de491bbd05bc26ce5be990112598c09e6e588f06452acce43774610f585f72aad319a538b94fdbd01b86cfc6c6013fab9f3401531fc2a
6
+ metadata.gz: 115acca826fbca886c043b57de60b6dc9a416e026cfba439d9301416fb2ec676093f677e08a47f05a36e459ab1969a391240a1ae48317b8256804d39ef3afe1d
7
+ data.tar.gz: 599402230f792b175d6e5208238bf8c094d75bec9a56aaa0d0c88f402680da7e4278929adfee4b35912de41745b04e40bc09786b3837b392625ba642c92972bd
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ #
1
3
  # Copyright (C) 2014 Droonga Project
2
4
  #
3
5
  # This library is free software; you can redistribute it and/or
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 0.1.2: 2014-02-09
4
+
5
+ ### Improvements
6
+
7
+ * Supported a large response.
8
+ * Added droonga-request command.
9
+
3
10
  ## 0.1.1: 2014-01-29
4
11
 
5
12
  ### Improvements
@@ -254,9 +254,13 @@ module Droonga
254
254
  @read_ios << client
255
255
  @client_handlers[client] = lambda do
256
256
  unpacker = MessagePack::Unpacker.new
257
- data = client.read_nonblock(BUFFER_SIZE)
258
- unpacker.feed_each(data) do |object|
259
- yield(object)
257
+ loop do
258
+ readable, = IO.select([client], nil, nil, 0)
259
+ break unless readable
260
+ data = client.read_nonblock(BUFFER_SIZE)
261
+ unpacker.feed_each(data) do |object|
262
+ yield(object)
263
+ end
260
264
  end
261
265
  client.close
262
266
  @read_ios.delete(client)
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Droonga Project
3
+ # Copyright (C) 2013-2014 Droonga Project
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
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Droonga
19
19
  class Client
20
- VERSION = "0.1.1"
20
+ VERSION = "0.1.2"
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: droonga-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Droonga Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-29 00:00:00.000000000 Z
11
+ date: 2014-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -111,7 +111,8 @@ dependencies:
111
111
  description: Droonga client for Ruby
112
112
  email:
113
113
  - droonga@groonga.org
114
- executables: []
114
+ executables:
115
+ - droonga-request
115
116
  extensions: []
116
117
  extra_rdoc_files: []
117
118
  files:
@@ -121,6 +122,7 @@ files:
121
122
  - LICENSE.txt
122
123
  - README.md
123
124
  - Rakefile
125
+ - bin/droonga-request
124
126
  - doc/text/news.md
125
127
  - droonga-client.gemspec
126
128
  - lib/droonga/client.rb
@@ -129,7 +131,6 @@ files:
129
131
  - lib/droonga/client/connection/http.rb
130
132
  - lib/droonga/client/error.rb
131
133
  - lib/droonga/client/version.rb
132
- - sample/droonga-request.rb
133
134
  homepage: https://github.com/droonga/droonga-client-ruby
134
135
  licenses:
135
136
  - LGPL-2.1