[Groonga-commit] droonga/fluent-plugin-droonga at 706e5f6 [master] Use more meaningful name

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Dec 17 17:27:41 JST 2013


Kouhei Sutou	2013-12-17 17:27:41 +0900 (Tue, 17 Dec 2013)

  New Revision: 706e5f6decd2f56cbbcf037ada1ddb2e9ce9b202
  https://github.com/droonga/fluent-plugin-droonga/commit/706e5f6decd2f56cbbcf037ada1ddb2e9ce9b202

  Message:
    Use more meaningful name
    
    Plan ->
    Planner
    
    It is not plan itself. It plans.

  Modified files:
    lib/droonga/plugin/distributor/search.rb
  Renamed files:
    lib/droonga/plugin/distributor/distributed_search_planner.rb
      (from lib/droonga/plugin/distributor/distributed_search_plan.rb)
    test/unit/plugin/distributor/test_search_planner.rb
      (from test/unit/plugin/distributor/test_search_plan.rb)

  Renamed: lib/droonga/plugin/distributor/distributed_search_planner.rb (+1 -1) 99%
===================================================================
--- lib/droonga/plugin/distributor/distributed_search_plan.rb    2013-12-17 17:22:30 +0900 (9a770c4)
+++ lib/droonga/plugin/distributor/distributed_search_planner.rb    2013-12-17 17:27:41 +0900 (7933ef9)
@@ -16,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 module Droonga
-  class DistributedSearchPlan
+  class DistributedSearchPlanner
     attr_reader :messages
 
     def initialize(search_request_envelope)

  Modified: lib/droonga/plugin/distributor/search.rb (+3 -3)
===================================================================
--- lib/droonga/plugin/distributor/search.rb    2013-12-17 17:22:30 +0900 (b5290d4)
+++ lib/droonga/plugin/distributor/search.rb    2013-12-17 17:27:41 +0900 (db76874)
@@ -16,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 require "droonga/distributor_plugin"
-require "droonga/plugin/distributor/distributed_search_plan"
+require "droonga/plugin/distributor/distributed_search_planner"
 
 module Droonga
   class SearchDistributor < Droonga::DistributorPlugin
@@ -24,8 +24,8 @@ module Droonga
 
     command :search
     def search(envelope)
-      plan = DistributedSearchPlan.new(envelope)
-      post(plan.messages)
+      planner = DistributedSearchPlanner.new(envelope)
+      post(planner.messages)
     end
   end
 end

  Renamed: test/unit/plugin/distributor/test_search_planner.rb (+3 -3) 99%
===================================================================
--- test/unit/plugin/distributor/test_search_plan.rb    2013-12-17 17:22:30 +0900 (9deb5c9)
+++ test/unit/plugin/distributor/test_search_planner.rb    2013-12-17 17:27:41 +0900 (1dc31df)
@@ -13,11 +13,11 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "droonga/plugin/distributor/distributed_search_plan"
+require "droonga/plugin/distributor/distributed_search_planner"
 
-class DistributedSearchPlanTest < Test::Unit::TestCase
+class DistributedSearchPlannerTest < Test::Unit::TestCase
   def assert_planned(expected, search_request_envelope)
-    plan = Droonga::DistributedSearchPlan.new(search_request_envelope)
+    plan = Droonga::DistributedSearchPlanner.new(search_request_envelope)
     actual = plan.messages
     assert_equal(expected, actual)
   end
-------------- next part --------------
HTML����������������������������...
Download 



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