[Groonga-commit] ranguba/rroonga at 6c3e3c6 [master] Use Enumerable

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Mar 5 22:54:35 JST 2016


Kouhei Sutou	2016-03-05 22:54:35 +0900 (Sat, 05 Mar 2016)

  New Revision: 6c3e3c66df6adbfb98a5b149fc6310930bb723c7
  https://github.com/ranguba/rroonga/commit/6c3e3c66df6adbfb98a5b149fc6310930bb723c7

  Message:
    Use Enumerable

  Modified files:
    ext/groonga/rb-grn-config.c
    test/test-config.rb

  Modified: ext/groonga/rb-grn-config.c (+2 -0)
===================================================================
--- ext/groonga/rb-grn-config.c    2016-03-05 22:52:41 +0900 (32719a2)
+++ ext/groonga/rb-grn-config.c    2016-03-05 22:54:35 +0900 (b019260)
@@ -229,6 +229,8 @@ rb_grn_init_config (VALUE mGrn)
     cGrnConfig = rb_define_class_under(mGrn, "Config", rb_cObject);
     rb_define_const(mGrn, "Conf", cGrnConfig);
 
+    rb_include_module(cGrnConfig, rb_mEnumerable);
+
     rb_define_method(cGrnConfig, "initialize", rb_grn_config_initialize, 1);
 
     rb_define_method(cGrnConfig, "[]", rb_grn_config_get, 1);

  Modified: test/test-config.rb (+1 -1)
===================================================================
--- test/test-config.rb    2016-03-05 22:52:41 +0900 (a7dce34)
+++ test/test-config.rb    2016-03-05 22:54:35 +0900 (c8a6792)
@@ -44,6 +44,6 @@ class ConfigTest < Test::Unit::TestCase
                     ["rroonga.key1", "value1"],
                     ["rroonga.key2", "value2"],
                  ],
-                 context.config.each.to_a)
+                 context.config.to_a)
   end
 end
-------------- next part --------------
HTML����������������������������...
Télécharger 



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