[Groonga-commit] ranguba/groonga-client at db45037 [master] Remove Rails dependency

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Dec 12 11:37:26 JST 2016


Kouhei Sutou	2016-12-12 11:37:26 +0900 (Mon, 12 Dec 2016)

  New Revision: db450378e7c4bf3329daeb1f4c2dd2f286de90ba
  https://github.com/ranguba/groonga-client/commit/db450378e7c4bf3329daeb1f4c2dd2f286de90ba

  Message:
    Remove Rails dependency

  Modified files:
    lib/groonga/client/test/groonga-server-runner.rb

  Modified: lib/groonga/client/test/groonga-server-runner.rb (+1 -9)
===================================================================
--- lib/groonga/client/test/groonga-server-runner.rb    2016-12-12 11:31:45 +0900 (5aaaf64)
+++ lib/groonga/client/test/groonga-server-runner.rb    2016-12-12 11:37:26 +0900 (8a45f09)
@@ -45,7 +45,6 @@ module Groonga
                          "-n", db_path.to_s)
             wait_groonga_ready
           end
-          sync_schema
         end
 
         def stop
@@ -94,13 +93,6 @@ module Groonga
           end
         end
 
-        def sync_schema
-          ::Rails.application.eager_load!
-          ObjectSpace.each_object(Class) do |klass|
-            klass.sync_schema if klass < Searcher
-          end
-        end
-
         def find_groonga
           paths = ENV["PATH"].split(File::PATH_SEPARATOR)
           exeext = RbConfig::CONFIG["EXEEXT"]
@@ -116,7 +108,7 @@ module Groonga
           if File.directory?(tmpfs_dir)
             base_tmp_dir = Pathname(tmpfs_dir)
           else
-            base_tmp_dir = ::Rails.root + "tmp"
+            base_tmp_dir = Pathname("tmp")
           end
           tmp_dir = base_tmp_dir + "groonga-client.#{Process.pid}"
           FileUtils.rm_rf(tmp_dir)
-------------- next part --------------
HTML����������������������������...
다운로드 



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