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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c305d823be3919b3529858dede7d0a813ace993304a9545dbe71e0acddb23f96
4
- data.tar.gz: 11ea5f374242a587bbbee7e4757951eeea1d198f2b320c82d98502d3a24d0371
3
+ metadata.gz: e97295099cd092539892551cd56a8250cab627aee5430db05788ecc23ceff50c
4
+ data.tar.gz: 6dcaa310c5accd75fa359941cc8617f8b84572308325c9d154fd48e946875a0d
5
5
  SHA512:
6
- metadata.gz: 57bf8e89dd23af5ea48b5ba1e775a5d6aca634e444cb768f066a8c633f459eca0d3bcdcbea247435989e02954085c4356d9b63342a5e97a60a3defe3f11b12d6
7
- data.tar.gz: 9d49f883b18f9630db7aaad0c7ec6465db55ca09426217795a1fead3ac53639e395ec58c30725b73782d9785848461f0e9000771ab51247a233821c148b98583
6
+ metadata.gz: 1eef482e73637b4472b122bbedcecc642bd6e4ddf3e495c424996a3a509cfb64c495f0fd68c02b592992815543d9a08bd237492edd2c71225f1b28e449261706
7
+ data.tar.gz: 8fd9372aaf54b72446209e957e046b211de9ba49756aa52c8f9951cbde0098018bc02f03c7e4b15068ce25da648b3f954e3e81400d78ffd15623d21afa99b132
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.3.8: 2018-10-23
4
+
5
+ ### Improvements
6
+
7
+ * {Groonga::Command::Delete#table}: Added.
8
+
3
9
  ## 1.3.7: 2018-10-23
4
10
 
5
11
  ### Improvements
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
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
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Groonga
18
18
  module Command
19
- VERSION = "1.3.7"
19
+ VERSION = "1.3.8"
20
20
  end
21
21
  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-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
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.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou