Kouhei Sutou
null+****@clear*****
Fri Feb 26 14:45:58 JST 2016
Kouhei Sutou 2016-02-26 14:45:58 +0900 (Fri, 26 Feb 2016) New Revision: b9275b46edc12b00359d4d8e5d22a553561816a7 https://github.com/groonga/groonga-command/commit/b9275b46edc12b00359d4d8e5d22a553561816a7 Message: Follow command name change Modified files: lib/groonga/command.rb Renamed files: lib/groonga/command/object-inspect.rb (from lib/groonga/command/inspect.rb) test/command/test-object-inspect.rb (from test/command/test-inspect.rb) Modified: lib/groonga/command.rb (+1 -1) =================================================================== --- lib/groonga/command.rb 2016-02-09 11:10:29 +0900 (108de77) +++ lib/groonga/command.rb 2016-02-26 14:45:58 +0900 (98af192) @@ -31,7 +31,6 @@ require "groonga/command/config-set" require "groonga/command/delete" require "groonga/command/dump" require "groonga/command/get" -require "groonga/command/inspect" require "groonga/command/io-flush" require "groonga/command/load" require "groonga/command/logical-count" @@ -43,6 +42,7 @@ require "groonga/command/log-level" require "groonga/command/log-put" require "groonga/command/normalize" require "groonga/command/object-exist" +require "groonga/command/object-inspect" require "groonga/command/object-remove" require "groonga/command/plugin-register" require "groonga/command/plugin-unregister" Renamed: lib/groonga/command/object-inspect.rb (+9 -9) 77% =================================================================== --- lib/groonga/command/inspect.rb 2016-02-09 11:10:29 +0900 (1196567) +++ lib/groonga/command/object-inspect.rb 2016-02-26 14:45:58 +0900 (f38d6e7) @@ -18,25 +18,25 @@ require "groonga/command/base" module Groonga module Command - # A command class that represents `inspect` command. + # A command class that represents `object_inspect` command. # - # @since 1.1.6 - class Inspect < Base - Command.register("inspect", self) + # @since 1.1.7 + class ObjectInspect < Base + Command.register("object_inspect", self) class << self def parameter_names [ - :target_name, + :name, ] end end - # @return [String] `target_name` parameter value. + # @return [String] `name` parameter value. # - # @since 1.1.6 - def target_name - self[:target_name] + # @since 1.1.7 + def name + self[:name] end end end Renamed: test/command/test-object-inspect.rb (+12 -12) 65% =================================================================== --- test/command/test-inspect.rb 2016-02-09 11:10:29 +0900 (ae23901) +++ test/command/test-object-inspect.rb 2016-02-26 14:45:58 +0900 (6020d01) @@ -14,33 +14,33 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -class InspectCommandTest < Test::Unit::TestCase +class ObjectInspectCommandTest < Test::Unit::TestCase private - def inspect_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Inspect.new("inspect", - pair_arguments, - ordered_arguments) + def object_inspect_command(pair_arguments={}, ordered_arguments=[]) + Groonga::Command::ObjectInspect.new("object_inspect", + pair_arguments, + ordered_arguments) end class ConstructorTest < self def test_ordered_arguments - target_name = "Users" + name = "Users" - command = inspect_command({}, + command = object_inspect_command({}, [ - target_name, + name, ]) assert_equal({ - :target_name => target_name, + :name => name, }, command.arguments) end end - class TargetNameTest < self + class NameTest < self def test_reader - command = inspect_command(:target_name => "Users") - assert_equal("Users", command.target_name) + command = object_inspect_command(:name => "Users") + assert_equal("Users", command.name) end end end -------------- next part -------------- HTML����������������������������...Download