[Groonga-commit] groonga/groonga-command at fb45dcd [fix-travis-ci-error] Add status command

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 13 17:21:29 JST 2016


Kouhei Sutou	2013-09-30 16:46:57 +0900 (Mon, 30 Sep 2013)

  New Revision: fb45dcd27fe8b81b6c9e663a179c8170e6b95ad8
  https://github.com/groonga/groonga-command/commit/fb45dcd27fe8b81b6c9e663a179c8170e6b95ad8

  Message:
    Add status command

  Copied files:
    lib/groonga/command/status.rb
      (from lib/groonga/command.rb)
    test/command/test-status.rb
      (from lib/groonga/command.rb)
  Modified files:
    lib/groonga/command.rb

  Modified: lib/groonga/command.rb (+1 -0)
===================================================================
--- lib/groonga/command.rb    2013-09-29 18:59:36 +0900 (acdd9c6)
+++ lib/groonga/command.rb    2013-09-30 16:46:57 +0900 (5a63e4b)
@@ -29,6 +29,7 @@ require "groonga/command/get"
 require "groonga/command/load"
 require "groonga/command/register"
 require "groonga/command/select"
+require "groonga/command/status"
 require "groonga/command/suggest"
 require "groonga/command/table-create"
 require "groonga/command/table-remove"

  Copied: lib/groonga/command/status.rb (+9 -17) 54%
===================================================================
--- lib/groonga/command.rb    2013-09-29 18:59:36 +0900 (acdd9c6)
+++ lib/groonga/command/status.rb    2013-09-30 16:46:57 +0900 (2760852)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2012-2013  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2013  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,21 +16,13 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "groonga/command/version"
+require "groonga/command/base"
 
-require "groonga/command/error"
+module Groonga
+  module Command
+    class Status < Base
+      Command.register("status", self)
+    end
+  end
+end
 
-require "groonga/command/column-create"
-require "groonga/command/column-remove"
-require "groonga/command/column-rename"
-require "groonga/command/delete"
-require "groonga/command/dump"
-require "groonga/command/get"
-require "groonga/command/load"
-require "groonga/command/register"
-require "groonga/command/select"
-require "groonga/command/suggest"
-require "groonga/command/table-create"
-require "groonga/command/table-remove"
-require "groonga/command/table-rename"
-require "groonga/command/truncate"

  Copied: test/command/test-status.rb (+13 -18) 54%
===================================================================
--- lib/groonga/command.rb    2013-09-29 18:59:36 +0900 (acdd9c6)
+++ test/command/test-status.rb    2013-09-30 16:46:57 +0900 (215a356)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2012-2013  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2013  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,21 +16,16 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "groonga/command/version"
+class StatusCommandTest < Test::Unit::TestCase
+  private
+  def status_command(pair_arguments={}, ordered_arguments=[])
+    Groonga::Command::Status.new("status", pair_arguments, ordered_arguments)
+  end
 
-require "groonga/command/error"
-
-require "groonga/command/column-create"
-require "groonga/command/column-remove"
-require "groonga/command/column-rename"
-require "groonga/command/delete"
-require "groonga/command/dump"
-require "groonga/command/get"
-require "groonga/command/load"
-require "groonga/command/register"
-require "groonga/command/select"
-require "groonga/command/suggest"
-require "groonga/command/table-create"
-require "groonga/command/table-remove"
-require "groonga/command/table-rename"
-require "groonga/command/truncate"
+  class ConstructorTest < self
+    def test_ordered_arguments
+      command = status_command
+      assert_equal({}, command.arguments)
+    end
+  end
+end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index