groonga-client 0.2.6 → 0.2.7

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: 37800c0ceaac12320a9c1d92cf63012703cf8b1d
4
- data.tar.gz: d7dfd6abd5db78f48e8602759245d110e593c632
3
+ metadata.gz: 67e208675166b5145f2f6aac4d0bc0354741be56
4
+ data.tar.gz: 1cb1905f24e1e1da9e89854adb2c7d0005896ec8
5
5
  SHA512:
6
- metadata.gz: 48a5b7f236ada9ad6aa43d29901ac253721cb101ecb37141320fc3cddb29b0f6d45bf5b4ba37b85ae6b3630ea4f70305acce34d4425def8ec72badc1d7f47a3c
7
- data.tar.gz: ff37c41507bcdf210f557eb6afa4b54443cd14b5ee9246bfc197b8c30691875ce1b78e66c601578e6726a37f63997d4f60d19e6685b6aa5ed9398758538efb2e
6
+ metadata.gz: 1f30907804cd22d7ad8ea20a096386cc8711e790a1679393280c74f267a3d96776b68529f5ab0d304ac6a681684841e20d3f959fcf248a096867a9d0946721fe
7
+ data.tar.gz: 36717b424a2160a875f457dd74a4f16d5d7e2025cf633241975b6afd35ec1d5bfea583949635967579dd715e3f5605239e0ca4b5a59d1c4e5e6c3e96ade699b4
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.2.7 - 2016-08-19
4
+
5
+ ### Improvements
6
+
7
+ * HTTP: Added `:chunk` option to use `Transfer-Encoding: chunked`
8
+ request.
9
+
3
10
  ## 0.2.6 - 2016-06-17
4
11
 
5
12
  ### Improvements
@@ -126,7 +126,11 @@ module Groonga
126
126
  command[:values] = raw_values
127
127
  request = Net::HTTP::Post.new(path, headers)
128
128
  request.content_type = "application/json"
129
- request.content_length = raw_values.bytesize
129
+ if @options[:chunk]
130
+ request["Transfer-Encoding"] = "chunked"
131
+ else
132
+ request.content_length = raw_values.bytesize
133
+ end
130
134
  request.body_stream = StringIO.new(raw_values)
131
135
  else
132
136
  path = resolve_path(@url, command.to_uri_format)
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Groonga
18
18
  class Client
19
- VERSION = "0.2.6"
19
+ VERSION = "0.2.7"
20
20
  end
21
21
  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.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Haruka Yoshihara
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-06-17 00:00:00.000000000 Z
13
+ date: 2016-08-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gqtp