[Groonga-commit] droonga/droonga-engine at 94167c1 [master] Rename Cataog::LiveNodes to Catalog::LiveNodesList

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 8 18:32:04 JST 2014


YUKI Hiroshi	2014-05-08 18:32:04 +0900 (Thu, 08 May 2014)

  New Revision: 94167c12da2c06140009a6d4f5816b33695b5d39
  https://github.com/droonga/droonga-engine/commit/94167c12da2c06140009a6d4f5816b33695b5d39

  Message:
    Rename Cataog::LiveNodes to Catalog::LiveNodesList

  Modified files:
    lib/droonga/catalog/base.rb
  Renamed files:
    lib/droonga/catalog/live_nodes_list.rb
      (from lib/droonga/catalog/live_nodes.rb)

  Modified: lib/droonga/catalog/base.rb (+3 -3)
===================================================================
--- lib/droonga/catalog/base.rb    2014-05-08 18:26:38 +0900 (482ae6f)
+++ lib/droonga/catalog/base.rb    2014-05-08 18:32:04 +0900 (a521b1c)
@@ -18,7 +18,7 @@ require "zlib"
 require "time"
 require "droonga/error_messages"
 require "droonga/catalog/errors"
-require "droonga/catalog/live_nodes"
+require "droonga/catalog/live_nodes_list"
 
 module Droonga
   module Catalog
@@ -39,8 +39,8 @@ module Droonga
         datasets[name]
       end
 
-      def live_nodes
-        @live_nodes ||= LiveNodes.new(@options[:live_nodes_file])
+      def live_nodes_list
+        @live_nodes_list ||= LiveNodesList.new(@options[:live_nodes_file])
       end
     end
   end

  Renamed: lib/droonga/catalog/live_nodes_list.rb (+2 -3) 94%
===================================================================
--- lib/droonga/catalog/live_nodes.rb    2014-05-08 18:26:38 +0900 (31edf9e)
+++ lib/droonga/catalog/live_nodes_list.rb    2014-05-08 18:32:04 +0900 (368c98c)
@@ -18,14 +18,13 @@ require "json"
 
 module Droonga
   module Catalog
-    class LiveNodes
-      attr_reader :path, :base_path
+    class LiveNodesList
       def initialize(list_file)
         @list_file = Pathname(list_file)
         @list = parse_list_file
       end
 
-      def live?(node)
+      def live_node?(node)
         @list.key?(node)
       end
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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