Kouhei Sutou
null+****@clear*****
Sun Jan 4 23:55:01 JST 2015
Kouhei Sutou 2015-01-04 23:55:01 +0900 (Sun, 04 Jan 2015) New Revision: 719330c456ec7a47132d1f28e19b75864fa6390d https://github.com/groonga/groonga/commit/719330c456ec7a47132d1f28e19b75864fa6390d Message: grndb mrb: rename module name Command -> CommandLine Because "command" is used for "select command", "table_create command" and so on in Groonga. Modified files: lib/mrb/scripts/sources.am src/grndb.c Renamed files: lib/mrb/scripts/command_line/grndb.rb (from lib/mrb/scripts/command/grndb.rb) Renamed: lib/mrb/scripts/command_line/grndb.rb (+1 -1) 99% =================================================================== --- lib/mrb/scripts/command/grndb.rb 2015-01-03 14:59:13 +0900 (dded2a3) +++ lib/mrb/scripts/command_line/grndb.rb 2015-01-04 23:55:01 +0900 (96a99c8) @@ -1,5 +1,5 @@ module Groonga - module Command + module CommandLine class Grndb def initialize(argv) @command, *@arguments = argv Modified: lib/mrb/scripts/sources.am (+1 -1) =================================================================== --- lib/mrb/scripts/sources.am 2015-01-03 14:59:13 +0900 (4cf0e49) +++ lib/mrb/scripts/sources.am 2015-01-04 23:55:01 +0900 (cb79baa) @@ -1,6 +1,6 @@ RUBY_SCRIPT_FILES = \ backtrace_entry.rb \ - command/grndb.rb \ + command_line/grndb.rb \ context.rb \ context/error_level.rb \ context/rc.rb \ Modified: src/grndb.c (+5 -5) =================================================================== --- src/grndb.c 2015-01-03 14:59:13 +0900 (4416818) +++ src/grndb.c 2015-01-04 23:55:01 +0900 (8f17c17) @@ -32,18 +32,18 @@ run_command(grn_ctx *ctx, int argc, char **argv) int exit_code = EXIT_SUCCESS; grn_mrb_data *data = &(ctx->impl->mrb); mrb_state *mrb = data->state; - mrb_value mrb_command_module; + mrb_value mrb_command_line_module; mrb_value mrb_grndb_class; - mrb_command_module = mrb_const_get(mrb, - mrb_obj_value(data->module), - mrb_intern_cstr(mrb, "Command")); + mrb_command_line_module = mrb_const_get(mrb, + mrb_obj_value(data->module), + mrb_intern_cstr(mrb, "CommandLine")); if (mrb->exc) { goto exit; } mrb_grndb_class = mrb_const_get(mrb, - mrb_command_module, + mrb_command_line_module, mrb_intern_cstr(mrb, "Grndb")); if (mrb->exc) { goto exit; -------------- next part -------------- HTML����������������������������...Download