groonga-command 1.2.3 → 1.2.4

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: 30abb0016a8e9632deb60d737274606a85a823cb
4
- data.tar.gz: 62c78851cf80c3faa7017747d9952329431cc590
3
+ metadata.gz: 748847b083d41d27aacd92385ca2ff6b38391770
4
+ data.tar.gz: e62bb8baf128c52c6a3b8eee11358ff4c4b9a671
5
5
  SHA512:
6
- metadata.gz: ed570003c29725944a8cc5db8d1272cbbd292c79f59fa86b1d91117d6ab2e456362812334f5307196eb48d684cab83e2b50a88ed9e15700010abe0ba0d67d163
7
- data.tar.gz: 64603b78e8e3ed43032a54baec45aa6e4d3725dd17166d99833b31676d09048f5f864f63ad732772bf4243807c6c02b64cc4d6227be7afbcb594fea41317df92
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
@@ -43,6 +43,13 @@ module Groonga
43
43
  self[:table]
44
44
  end
45
45
 
46
+ # @return [String] The column name.
47
+ #
48
+ # @since 1.2.4
49
+ def name
50
+ self[:name]
51
+ end
52
+
46
53
  def flags
47
54
  @flags ||= (self[:flags] || "").split(/\s*\|\s*/)
48
55
  end
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
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
- # -*- coding: utf-8 -*-
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] `name` parameter value.
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] `force` parameter value.
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] `name` parameter value.
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] `dependent` parameter value.
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
- # -*- coding: utf-8 -*-
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
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Groonga
18
18
  module Command
19
- VERSION = "1.2.3"
19
+ VERSION = "1.2.4"
20
20
  end
21
21
  end
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
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
- # -*- coding: utf-8 -*-
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
- # -*- coding: utf-8 -*-
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
- # -*- coding: utf-8 -*-
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groonga-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou