groonga-command 1.2.3 → 1.2.4
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 +4 -4
- data/doc/text/news.md +22 -0
- data/lib/groonga/command/column-create.rb +7 -0
- data/lib/groonga/command/column-remove.rb +15 -3
- data/lib/groonga/command/column-rename.rb +22 -3
- data/lib/groonga/command/object-remove.rb +2 -2
- data/lib/groonga/command/table-create.rb +7 -0
- data/lib/groonga/command/table-remove.rb +3 -2
- data/lib/groonga/command/table-rename.rb +15 -3
- data/lib/groonga/command/version.rb +1 -1
- data/test/command/test-column-create.rb +9 -3
- data/test/command/test-column-remove.rb +17 -3
- data/test/command/test-column-rename.rb +25 -3
- data/test/command/test-table-create.rb +8 -0
- data/test/command/test-table-rename.rb +17 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 748847b083d41d27aacd92385ca2ff6b38391770
|
4
|
+
data.tar.gz: e62bb8baf128c52c6a3b8eee11358ff4c4b9a671
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af120b0681290fa280228e48965c994bf0c1cb0894752c029b7ff2001c10b192cb2d2d201a61dea67a3cc8e0014999a48787f89e5b907aa3991fd705465eb137
|
7
|
+
data.tar.gz: d24a55cf5ca9d779b94babc8157a839bd3a5e9eff1e52ef8ae224649b8ace9adc72055186c3fc009f7b9e1a2f052ae352378a04d1c681f7b26125964df0cf54e
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.2.4: 2016-08-08
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* {Groonga::Command::ColumnCreate#name}: Added.
|
8
|
+
|
9
|
+
* {Groonga::Command::ColumnRemove#table}: Added.
|
10
|
+
|
11
|
+
* {Groonga::Command::ColumnRemove#name}: Added.
|
12
|
+
|
13
|
+
* {Groonga::Command::ColumnRename#table}: Added.
|
14
|
+
|
15
|
+
* {Groonga::Command::ColumnRename#name}: Added.
|
16
|
+
|
17
|
+
* {Groonga::Command::ColumnRename#new_name}: Added.
|
18
|
+
|
19
|
+
* {Groonga::Command::TableCreate#name}: Added.
|
20
|
+
|
21
|
+
* {Groonga::Command::TableRename#name}: Added.
|
22
|
+
|
23
|
+
* {Groonga::Command::TableRename#new_name}: Added.
|
24
|
+
|
3
25
|
## 1.2.3: 2016-08-08
|
4
26
|
|
5
27
|
### Improvements
|
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
6
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -35,6 +33,20 @@ module Groonga
|
|
35
33
|
end
|
36
34
|
|
37
35
|
Command.register(command_name, self)
|
36
|
+
|
37
|
+
# @return [String] The table name of the column.
|
38
|
+
#
|
39
|
+
# @since 1.2.4
|
40
|
+
def table
|
41
|
+
self[:table]
|
42
|
+
end
|
43
|
+
|
44
|
+
# @return [String] The column name.
|
45
|
+
#
|
46
|
+
# @since 1.2.4
|
47
|
+
def name
|
48
|
+
self[:name]
|
49
|
+
end
|
38
50
|
end
|
39
51
|
end
|
40
52
|
end
|
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
6
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -36,6 +34,27 @@ module Groonga
|
|
36
34
|
end
|
37
35
|
|
38
36
|
Command.register(command_name, self)
|
37
|
+
|
38
|
+
# @return [String] The table name of the column.
|
39
|
+
#
|
40
|
+
# @since 1.2.4
|
41
|
+
def table
|
42
|
+
self[:table]
|
43
|
+
end
|
44
|
+
|
45
|
+
# @return [String] The current column name.
|
46
|
+
#
|
47
|
+
# @since 1.2.4
|
48
|
+
def name
|
49
|
+
self[:name]
|
50
|
+
end
|
51
|
+
|
52
|
+
# @return [String] The new column name.
|
53
|
+
#
|
54
|
+
# @since 1.2.4
|
55
|
+
def new_name
|
56
|
+
self[:new_name]
|
57
|
+
end
|
39
58
|
end
|
40
59
|
end
|
41
60
|
end
|
@@ -37,14 +37,14 @@ module Groonga
|
|
37
37
|
|
38
38
|
Command.register(command_name, self)
|
39
39
|
|
40
|
-
# @return [String]
|
40
|
+
# @return [String] The object name to be removed.
|
41
41
|
#
|
42
42
|
# @since 1.1.7
|
43
43
|
def name
|
44
44
|
self[:name]
|
45
45
|
end
|
46
46
|
|
47
|
-
# @return [Boolean]
|
47
|
+
# @return [Boolean] Whether force to remove the object or not.
|
48
48
|
#
|
49
49
|
# @since 1.1.7
|
50
50
|
def force?
|
@@ -39,6 +39,13 @@ module Groonga
|
|
39
39
|
|
40
40
|
Command.register(command_name, self)
|
41
41
|
|
42
|
+
# @return [String] The table name.
|
43
|
+
#
|
44
|
+
# @since 1.2.4
|
45
|
+
def name
|
46
|
+
self[:name]
|
47
|
+
end
|
48
|
+
|
42
49
|
# @return [String, nil] Key type name, nil for array no key table.
|
43
50
|
# @since 1.0.7
|
44
51
|
def key_type
|
@@ -34,14 +34,15 @@ module Groonga
|
|
34
34
|
|
35
35
|
Command.register(command_name, self)
|
36
36
|
|
37
|
-
# @return [String]
|
37
|
+
# @return [String] The table name to be removed.
|
38
38
|
#
|
39
39
|
# @since 1.1.8
|
40
40
|
def name
|
41
41
|
self[:name]
|
42
42
|
end
|
43
43
|
|
44
|
-
# @return [Boolean]
|
44
|
+
# @return [Boolean] Whether the dependent objects of the table
|
45
|
+
# are also removed or not.
|
45
46
|
#
|
46
47
|
# @since 1.1.8
|
47
48
|
def dependent?
|
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
6
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -35,6 +33,20 @@ module Groonga
|
|
35
33
|
end
|
36
34
|
|
37
35
|
Command.register(command_name, self)
|
36
|
+
|
37
|
+
# @return [String] The table name to be renamed.
|
38
|
+
#
|
39
|
+
# @since 1.2.4
|
40
|
+
def name
|
41
|
+
self[:name]
|
42
|
+
end
|
43
|
+
|
44
|
+
# @return [String] The new table name.
|
45
|
+
#
|
46
|
+
# @since 1.2.4
|
47
|
+
def new_name
|
48
|
+
self[:new_name]
|
49
|
+
end
|
38
50
|
end
|
39
51
|
end
|
40
52
|
end
|
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
6
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -51,6 +49,14 @@ class ColumnCreateCommandTest < Test::Unit::TestCase
|
|
51
49
|
end
|
52
50
|
end
|
53
51
|
|
52
|
+
class NameTest < self
|
53
|
+
def test_reader
|
54
|
+
command = column_create_command({"name" => "message"})
|
55
|
+
assert_equal("message",
|
56
|
+
command.name)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
54
60
|
class FlagsTest < self
|
55
61
|
def test_multiple
|
56
62
|
command = column_create_command({"flags" => "COLUMN_INDEX|WITH_POSITION"})
|
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012-2013 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
6
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -36,4 +34,20 @@ class ColumnRemoveCommandTest < Test::Unit::TestCase
|
|
36
34
|
command.arguments)
|
37
35
|
end
|
38
36
|
end
|
37
|
+
|
38
|
+
class TableTest < self
|
39
|
+
def test_reader
|
40
|
+
command = column_remove_command({"table" => "Logs"})
|
41
|
+
assert_equal("Logs",
|
42
|
+
command.table)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
class NameTest < self
|
47
|
+
def test_reader
|
48
|
+
command = column_remove_command({"name" => "message"})
|
49
|
+
assert_equal("message",
|
50
|
+
command.name)
|
51
|
+
end
|
52
|
+
end
|
39
53
|
end
|
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012-2013 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
6
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -38,4 +36,28 @@ class ColumnRenameCommandTest < Test::Unit::TestCase
|
|
38
36
|
command.arguments)
|
39
37
|
end
|
40
38
|
end
|
39
|
+
|
40
|
+
class TableTest < self
|
41
|
+
def test_reader
|
42
|
+
command = column_rename_command({"table" => "Logs"})
|
43
|
+
assert_equal("Logs",
|
44
|
+
command.table)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
class NameTest < self
|
49
|
+
def test_reader
|
50
|
+
command = column_rename_command({"name" => "message"})
|
51
|
+
assert_equal("message",
|
52
|
+
command.name)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class NewNameTest < self
|
57
|
+
def test_reader
|
58
|
+
command = column_rename_command({"new_name" => "content"})
|
59
|
+
assert_equal("content",
|
60
|
+
command.new_name)
|
61
|
+
end
|
62
|
+
end
|
41
63
|
end
|
@@ -54,6 +54,14 @@ class TableCreateCommandTest < Test::Unit::TestCase
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
+
class NameTest < self
|
58
|
+
def test_reader
|
59
|
+
command = table_create_command({"name" => "Users"})
|
60
|
+
assert_equal("Users",
|
61
|
+
command.name)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
57
65
|
class KeyTypeTest < self
|
58
66
|
def test_specified
|
59
67
|
command = table_create_command({"key_type" => "ShortText"})
|
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012-2013 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
6
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -36,4 +34,20 @@ class TableRenameCommandTest < Test::Unit::TestCase
|
|
36
34
|
command.arguments)
|
37
35
|
end
|
38
36
|
end
|
37
|
+
|
38
|
+
class NameTest < self
|
39
|
+
def test_reader
|
40
|
+
command = table_rename_command({"name" => "Users"})
|
41
|
+
assert_equal("Users",
|
42
|
+
command.name)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
class NewNameTest < self
|
47
|
+
def test_reader
|
48
|
+
command = table_rename_command({"new_name" => "People"})
|
49
|
+
assert_equal("People",
|
50
|
+
command.new_name)
|
51
|
+
end
|
52
|
+
end
|
39
53
|
end
|