groonga-client 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b31699984e9b4cfb9751dc8cf4481031d10a2fa1
4
- data.tar.gz: ea990b190ba221e32990e5b2f08118acb3b2ca63
3
+ metadata.gz: 1b0bd5e24f62c75ab3b044cc600439181e885923
4
+ data.tar.gz: e9b6f31ae557a851f8c9e69df2d0234f28d80c91
5
5
  SHA512:
6
- metadata.gz: 3485123969cc7cdf43b7c1a8afba2ec7b58d5eff387c3506bcdc344bd0a6d4da3ddf5c65dca1018fe58fa94531510c5f47ba4b5e455ac988fbc44fd0b831631e
7
- data.tar.gz: fc4ce6ee9206924e5b44d59243fb8a1544e15cf5cf7adcd87105c977443c4aa233e4165a99d3df01d1914841f3178a3c274779172d49449d835eb4fd1fc02dc0
6
+ metadata.gz: 7d72469d952dba06f1e9f9ef3aa04440cba5bad47d063e044b412d4cc344dec143b989c26995bf36e854102a29b69dbe495b40d7402c5631529a5e735ddc91ff
7
+ data.tar.gz: 584ffaa316938d2aee1c7056b0596db2882920a68110a9432c0c2eb97fc1a49672c01cd11d831d00cf8e16886f8565836506a6bf1fc54f513931fbf5e831a8ec
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.5.6 - 2017-11-09
4
+
5
+ ### Improvements
6
+
7
+ * `groonga-client-index-check`: Added `Time` key index support.
8
+
3
9
  ## 0.5.5 - 2017-10-31
4
10
 
5
11
  ### Improvements
@@ -10,7 +16,7 @@
10
16
 
11
17
  * Disabled auto retry feature by `net/http` explicitly because `GET`
12
18
  isn't idempotent request in Groonga such as `delete` command.
13
-
19
+
14
20
  ## 0.5.4 - 2017-10-27
15
21
 
16
22
  ### Improvements
@@ -135,6 +135,8 @@ module Groonga
135
135
  case token
136
136
  when String
137
137
  value = Groonga::Client::ScriptSyntax.format_string(token)
138
+ when Time
139
+ value = token.to_f
138
140
  else
139
141
  value = token
140
142
  end
@@ -174,6 +176,7 @@ module Groonga
174
176
  full_index_column_name,
175
177
  full_new_index_column_name,
176
178
  token)
179
+ token = token.to_f if token.is_a?(Time)
177
180
  $stderr.puts("Broken: #{index_column.full_name}: <#{token}>")
178
181
  return false
179
182
  end
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Groonga
18
18
  class Client
19
- VERSION = "0.5.5"
19
+ VERSION = "0.5.6"
20
20
  end
21
21
  end
@@ -288,5 +288,33 @@ delete Scores --key 9
288
288
  assert_equal([false, "", "Broken: Scores.memos_score: <9>\n"],
289
289
  index_check("--method=content"))
290
290
  end
291
+
292
+ def test_time
293
+ time = Time.parse("2017-11-09T15:40:50+09:00")
294
+ restore(<<-COMMANDS)
295
+ table_create Memos TABLE_HASH_KEY ShortText
296
+ column_create Memos created_at COLUMN_SCALAR Time
297
+
298
+ table_create Times TABLE_PAT_KEY Time
299
+ column_create Times memos_created_at \
300
+ COLUMN_INDEX \
301
+ Memos created_at
302
+
303
+ load --table Memos
304
+ [
305
+ {"_key": "groonga", "created_at": #{time.to_i}},
306
+ {"_key": "mroonga", "created_at": #{time.to_i * 1}}
307
+ ]
308
+
309
+ delete Times --key #{time.to_i}
310
+ COMMANDS
311
+
312
+ assert_equal([
313
+ false,
314
+ "",
315
+ "Broken: Times.memos_created_at: <#{time.to_f}>\n",
316
+ ],
317
+ index_check("--method=content"))
318
+ end
291
319
  end
292
320
  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.5.5
4
+ version: 0.5.6
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: 2017-10-31 00:00:00.000000000 Z
13
+ date: 2017-11-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gqtp
@@ -161,9 +161,9 @@ email:
161
161
  - kou@clear-code.com
162
162
  - tfortress58@gmail.com
163
163
  executables:
164
- - groonga-client
165
164
  - groonga-client-index-check
166
165
  - groonga-client-index-recreate
166
+ - groonga-client
167
167
  extensions: []
168
168
  extra_rdoc_files: []
169
169
  files:
@@ -281,41 +281,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  version: '0'
282
282
  requirements: []
283
283
  rubyforge_project:
284
- rubygems_version: 2.6.13
284
+ rubygems_version: 2.5.2.1
285
285
  signing_key:
286
286
  specification_version: 4
287
287
  summary: Groonga-client is a client for Groonga (http://groonga.org/) implemented
288
288
  with pure Ruby. You can use it without Groonga.
289
289
  test_files:
290
- - test/run-test.rb
290
+ - test/test-client.rb
291
+ - test/command-line/test-index-check.rb
292
+ - test/command-line/helper.rb
293
+ - test/command-line/test-index-recreate.rb
294
+ - test/test-script-syntax.rb
295
+ - test/request/select/test-backward-compatible-sort-keys-parameter.rb
291
296
  - test/request/select/test-filter.rb
292
297
  - test/request/select/test-sort-keys-parameter.rb
298
+ - test/request/select/test-output-columns-parameter.rb
293
299
  - test/request/select/test-values-parameter.rb
294
300
  - test/request/select/test-scorer.rb
295
- - test/request/select/test-output-columns-parameter.rb
296
- - test/request/select/test-backward-compatible-sort-keys-parameter.rb
297
301
  - test/request/test-merger.rb
298
- - test/request/test-select.rb
299
302
  - test/request/test-generic.rb
300
- - test/test-script-syntax.rb
303
+ - test/request/test-select.rb
304
+ - test/test-command.rb
305
+ - test/protocol/test-gqtp.rb
306
+ - test/protocol/test-http.rb
307
+ - test/run-test.rb
308
+ - test/response/test-base.rb
309
+ - test/response/test-load.rb
310
+ - test/response/test-column-list.rb
301
311
  - test/response/helper.rb
312
+ - test/response/test-error.rb
302
313
  - test/response/test-table-list.rb
303
314
  - test/response/test-status.rb
304
- - test/response/test-load.rb
305
- - test/response/test-select-command-version1.rb
306
- - test/response/test-base.rb
307
- - test/response/test-table-remove.rb
315
+ - test/response/test-select-xml.rb
308
316
  - test/response/test-schema.rb
309
- - test/response/test-column-list.rb
310
- - test/response/test-table-create.rb
311
317
  - test/response/test-select-command-version3.rb
312
- - test/response/test-select-xml.rb
313
- - test/response/test-error.rb
314
- - test/command-line/test-index-check.rb
315
- - test/command-line/helper.rb
316
- - test/command-line/test-index-recreate.rb
317
- - test/test-command.rb
318
+ - test/response/test-select-command-version1.rb
319
+ - test/response/test-table-create.rb
320
+ - test/response/test-table-remove.rb
318
321
  - test/results/test-table-list.rb
319
- - test/protocol/test-http.rb
320
- - test/protocol/test-gqtp.rb
321
- - test/test-client.rb