[Groonga-commit] droonga/droonga-engine at eef79ab [master] Fix mismatched path to constant

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 12:12:41 JST 2015


YUKI Hiroshi	2015-04-21 12:12:41 +0900 (Tue, 21 Apr 2015)

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

  Message:
    Fix mismatched path to constant

  Modified files:
    lib/droonga/engine_node.rb

  Modified: lib/droonga/engine_node.rb (+9 -9)
===================================================================
--- lib/droonga/engine_node.rb    2015-04-21 12:11:51 +0900 (3063bdb)
+++ lib/droonga/engine_node.rb    2015-04-21 12:12:41 +0900 (82f7e03)
@@ -95,11 +95,11 @@ module Droonga
 
     def writable?
       case NodeRole.my_role
-      when NodeMetadata::Role::SERVICE_PROVIDER
+      when NodeRole::SERVICE_PROVIDER
         true
-      when NodeMetadata::Role::ABSORB_SOURCE
+      when NodeRole::ABSORB_SOURCE
         absorb_source?
-      when NodeMetadata::Role::ABSORB_DESTINATION
+      when NodeRole::ABSORB_DESTINATION
         absorb_destination?
       else
         false
@@ -157,7 +157,7 @@ module Droonga
       if @state
         @state["role"]
       else
-        NodeMetadata::Role::SERVICE_PROVIDER
+        NodeRole::SERVICE_PROVIDER
       end
     end
 
@@ -183,15 +183,15 @@ module Droonga
     end
 
     def service_provider?
-      role == NodeMetadata::Role::SERVICE_PROVIDER
+      role == NodeRole::SERVICE_PROVIDER
     end
 
     def absorb_source?
-      role == NodeMetadata::Role::ABSORB_SOURCE
+      role == NodeRole::ABSORB_SOURCE
     end
 
     def absorb_destination?
-      role == NodeMetadata::Role::ABSORB_DESTINATION
+      role == NodeRole::ABSORB_DESTINATION
     end
 
     def complete_service_provider?
@@ -201,9 +201,9 @@ module Droonga
     def really_writable?
       return false unless writable?
       case NodeRole.my_role
-      when NodeMetadata::Role::SERVICE_PROVIDER
+      when NodeRole::SERVICE_PROVIDER
         service_provider?
-      when NodeMetadata::Role::ABSORB_SOURCE
+      when NodeRole::ABSORB_SOURCE
         not absorb_destination?
       else
         true
-------------- next part --------------
HTML����������������������������...
다운로드 



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