groonga-command 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +6 -0
- data/lib/groonga/command/delete.rb +5 -3
- data/lib/groonga/command/version.rb +1 -1
- data/test/command/test-delete.rb +13 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e97295099cd092539892551cd56a8250cab627aee5430db05788ecc23ceff50c
|
4
|
+
data.tar.gz: 6dcaa310c5accd75fa359941cc8617f8b84572308325c9d154fd48e946875a0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eef482e73637b4472b122bbedcecc642bd6e4ddf3e495c424996a3a509cfb64c495f0fd68c02b592992815543d9a08bd237492edd2c71225f1b28e449261706
|
7
|
+
data.tar.gz: 8fd9372aaf54b72446209e957e046b211de9ba49756aa52c8f9951cbde0098018bc02f03c7e4b15068ce25da648b3f954e3e81400d78ffd15623d21afa99b132
|
data/doc/text/news.md
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2018 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
|
@@ -37,6 +35,10 @@ module Groonga
|
|
37
35
|
end
|
38
36
|
|
39
37
|
Command.register(command_name, self)
|
38
|
+
|
39
|
+
def table
|
40
|
+
@table ||= self[:table]
|
41
|
+
end
|
40
42
|
end
|
41
43
|
end
|
42
44
|
end
|
data/test/command/test-delete.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012-2013 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2018 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
|
@@ -40,4 +38,16 @@ class DeleteCommandTest < Test::Unit::TestCase
|
|
40
38
|
command.arguments)
|
41
39
|
end
|
42
40
|
end
|
41
|
+
|
42
|
+
class TableTest < self
|
43
|
+
def test_nil
|
44
|
+
command = delete_command
|
45
|
+
assert_nil(command.table)
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_specified
|
49
|
+
command = delete_command(:table => "Users")
|
50
|
+
assert_equal("Users", command.table)
|
51
|
+
end
|
52
|
+
end
|
43
53
|
end
|