Kouhei Sutou
null+****@clear*****
Mon Apr 13 15:53:16 JST 2015
Kouhei Sutou 2015-04-13 15:53:16 +0900 (Mon, 13 Apr 2015) New Revision: 84298a527adedc752e98eb167b7eb1918d31494d https://github.com/ranguba/rroonga/commit/84298a527adedc752e98eb167b7eb1918d31494d Message: Use "_p" instead of "is_" for predicate Modified files: ext/groonga/rb-grn-column.c ext/groonga/rb-grn-table.c Modified: ext/groonga/rb-grn-column.c (+2 -2) =================================================================== --- ext/groonga/rb-grn-column.c 2015-04-13 15:50:38 +0900 (ee24794) +++ ext/groonga/rb-grn-column.c 2015-04-13 15:53:16 +0900 (352029d) @@ -531,7 +531,7 @@ rb_grn_column_clear_lock (VALUE self) * @return [Boolean] `true` if the `column` is locked, `false` otherwise. */ static VALUE -rb_grn_column_is_locked (VALUE self) +rb_grn_column_locked_p (VALUE self) { grn_ctx *context; grn_obj *column; @@ -799,7 +799,7 @@ rb_grn_init_column (VALUE mGrn) rb_define_method(rb_cGrnColumn, "lock", rb_grn_column_lock, -1); rb_define_method(rb_cGrnColumn, "unlock", rb_grn_column_unlock, -1); rb_define_method(rb_cGrnColumn, "clear_lock", rb_grn_column_clear_lock, 0); - rb_define_method(rb_cGrnColumn, "locked?", rb_grn_column_is_locked, 0); + rb_define_method(rb_cGrnColumn, "locked?", rb_grn_column_locked_p, 0); rb_define_method(rb_cGrnColumn, "reference?", rb_grn_column_reference_p, 0); rb_define_method(rb_cGrnColumn, "truncate", rb_grn_column_truncate, 0); /* deprecated: backward compatibility */ Modified: ext/groonga/rb-grn-table.c (+2 -2) =================================================================== --- ext/groonga/rb-grn-table.c 2015-04-13 15:50:38 +0900 (bc930f7) +++ ext/groonga/rb-grn-table.c 2015-04-13 15:53:16 +0900 (ff17ec4) @@ -2067,7 +2067,7 @@ rb_grn_table_clear_lock (VALUE self) * @return [Boolean] `true` if the `table` is locked, `false` otherwise. */ static VALUE -rb_grn_table_is_locked (VALUE self) +rb_grn_table_locked_p (VALUE self) { grn_ctx *context; grn_obj *table; @@ -2618,7 +2618,7 @@ rb_grn_init_table (VALUE mGrn) rb_define_method(rb_cGrnTable, "lock", rb_grn_table_lock, -1); rb_define_method(rb_cGrnTable, "unlock", rb_grn_table_unlock, -1); rb_define_method(rb_cGrnTable, "clear_lock", rb_grn_table_clear_lock, 0); - rb_define_method(rb_cGrnTable, "locked?", rb_grn_table_is_locked, 0); + rb_define_method(rb_cGrnTable, "locked?", rb_grn_table_locked_p, 0); rb_define_method(rb_cGrnTable, "select", rb_grn_table_select, -1); -------------- next part -------------- HTML����������������������������...Download