groonga-command 1.3.8 → 1.3.9

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
  SHA256:
3
- metadata.gz: e97295099cd092539892551cd56a8250cab627aee5430db05788ecc23ceff50c
4
- data.tar.gz: 6dcaa310c5accd75fa359941cc8617f8b84572308325c9d154fd48e946875a0d
3
+ metadata.gz: df5f0941b5d73fcc9d7375e5fe8962025092023641ca609002589ce0f1933fc9
4
+ data.tar.gz: 1fc0f07a6703553d9552f43880bccfd3c7003235f185dfca08f1a5bf221fd4ab
5
5
  SHA512:
6
- metadata.gz: 1eef482e73637b4472b122bbedcecc642bd6e4ddf3e495c424996a3a509cfb64c495f0fd68c02b592992815543d9a08bd237492edd2c71225f1b28e449261706
7
- data.tar.gz: 8fd9372aaf54b72446209e957e046b211de9ba49756aa52c8f9951cbde0098018bc02f03c7e4b15068ce25da648b3f954e3e81400d78ffd15623d21afa99b132
6
+ metadata.gz: 672af58bbf47ae2e9e97a2eec2340fc2892b46f07a436c957a031e328c5de8ea28a8d018d0120fc79ef21d19e92bec327dbf5934984a31431c11f31fb6c7ba5c
7
+ data.tar.gz: 80b33c5adf0266ab0383d960d0e5c849ea01f9c023b52177728193d2fc4df2fca3b16ed4a2e99daa9b66e477c56f1b4af99fb5928ff6106f95038ebe123e24ba
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.3.9: 2019-03-19
4
+
5
+ ### Improvements
6
+
7
+ * {Groonga::Command::IndexColumnDiff}: Added.
8
+
3
9
  ## 1.3.8: 2018-10-23
4
10
 
5
11
  ### Improvements
@@ -29,6 +29,7 @@ require "groonga/command/config-set"
29
29
  require "groonga/command/delete"
30
30
  require "groonga/command/dump"
31
31
  require "groonga/command/get"
32
+ require "groonga/command/index-column-diff"
32
33
  require "groonga/command/io-flush"
33
34
  require "groonga/command/load"
34
35
  require "groonga/command/logical-count"
@@ -0,0 +1,50 @@
1
+ # Copyright (C) 2019 Kouhei Sutou <kou@clear-code.com>
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "groonga/command/base"
18
+
19
+ module Groonga
20
+ module Command
21
+ class IndexColumnDiff < Base
22
+ class << self
23
+ def command_name
24
+ "index_column_diff"
25
+ end
26
+
27
+ def parameter_names
28
+ [
29
+ :table,
30
+ :name,
31
+ ]
32
+ end
33
+ end
34
+
35
+ Command.register(command_name, self)
36
+
37
+ # @return [String] The table name.
38
+ # @since 1.3.9
39
+ def table
40
+ self[:table]
41
+ end
42
+
43
+ # @return [String] The tcolumn name.
44
+ # @since 1.3.9
45
+ def name
46
+ self[:name]
47
+ end
48
+ end
49
+ end
50
+ end
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Groonga
18
18
  module Command
19
- VERSION = "1.3.8"
19
+ VERSION = "1.3.9"
20
20
  end
21
21
  end
@@ -0,0 +1,53 @@
1
+ # Copyright (C) 2019 Kouhei Sutou <kou@clear-code.com>
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ class IndexColumnDiffCommandTest < Test::Unit::TestCase
18
+ private
19
+ def index_column_diff_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::IndexColumnDiff.new(pair_arguments,
21
+ ordered_arguments)
22
+ end
23
+
24
+ class ConstructorTest < self
25
+ def test_ordered_arguments
26
+ table = "Lexicon"
27
+ name = "content_index"
28
+
29
+ command = index_column_diff_command({}, [table, name])
30
+ assert_equal({
31
+ :table => table,
32
+ :name => name,
33
+ },
34
+ command.arguments)
35
+ end
36
+ end
37
+
38
+ class TableTest < self
39
+ def test_reader
40
+ command = index_column_diff_command({"table" => "Lexicon"})
41
+ assert_equal("Lexicon",
42
+ command.table)
43
+ end
44
+ end
45
+
46
+ class NameTest < self
47
+ def test_reader
48
+ command = index_column_diff_command({"name" => "index"})
49
+ assert_equal("index",
50
+ command.name)
51
+ end
52
+ end
53
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groonga-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-23 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -152,6 +152,7 @@ files:
152
152
  - lib/groonga/command/format/command.rb
153
153
  - lib/groonga/command/format/uri.rb
154
154
  - lib/groonga/command/get.rb
155
+ - lib/groonga/command/index-column-diff.rb
155
156
  - lib/groonga/command/io-flush.rb
156
157
  - lib/groonga/command/load.rb
157
158
  - lib/groonga/command/log-level.rb
@@ -207,6 +208,7 @@ files:
207
208
  - test/command/test-delete.rb
208
209
  - test/command/test-dump.rb
209
210
  - test/command/test-get.rb
211
+ - test/command/test-index-column-diff.rb
210
212
  - test/command/test-io-flush.rb
211
213
  - test/command/test-load.rb
212
214
  - test/command/test-log-level.rb
@@ -269,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
271
  version: '0'
270
272
  requirements: []
271
273
  rubyforge_project:
272
- rubygems_version: 3.0.0.beta1
274
+ rubygems_version: 2.7.6
273
275
  signing_key:
274
276
  specification_version: 4
275
277
  summary: Groonga-command is a library that represents [Groonga](http://groonga.org/)'s
@@ -284,6 +286,7 @@ test_files:
284
286
  - test/command/test-column-remove.rb
285
287
  - test/command/test-column-create.rb
286
288
  - test/command/test-config-get.rb
289
+ - test/command/test-index-column-diff.rb
287
290
  - test/command/test-logical-table-remove.rb
288
291
  - test/command/test-query-log-flags-get.rb
289
292
  - test/command/test-reindex.rb