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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8292fde2e0f476c6debeaabe0b41d37b8c66f731
|
4
|
+
data.tar.gz: 31daa786ee3345ee8134670d17ce6faffd3a1b05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 115acca826fbca886c043b57de60b6dc9a416e026cfba439d9301416fb2ec676093f677e08a47f05a36e459ab1969a391240a1ae48317b8256804d39ef3afe1d
|
7
|
+
data.tar.gz: 599402230f792b175d6e5208238bf8c094d75bec9a56aaa0d0c88f402680da7e4278929adfee4b35912de41745b04e40bc09786b3837b392625ba642c92972bd
|
data/doc/text/news.md
CHANGED
@@ -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
|
-
|
258
|
-
|
259
|
-
|
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.
|
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.
|
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-
|
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
|