YUKI Hiroshi
null+****@clear*****
Thu Apr 23 14:22:25 JST 2015
YUKI Hiroshi 2015-04-23 14:22:25 +0900 (Thu, 23 Apr 2015) New Revision: 01cfd65188af39705282f0a7cbf889d224d7305e https://github.com/droonga/droonga-engine/commit/01cfd65188af39705282f0a7cbf889d224d7305e Message: Remove obsolete module Removed files: lib/droonga/restarter.rb Modified files: lib/droonga/path.rb Modified: lib/droonga/path.rb (+0 -5) =================================================================== --- lib/droonga/path.rb 2015-04-23 14:18:05 +0900 (cc62bd4) +++ lib/droonga/path.rb 2015-04-23 14:22:25 +0900 (b70be58) @@ -61,11 +61,6 @@ module Droonga Pathname.new(base_file_name).expand_path(base) end - # TODO: Re-consider this approach - def restart - base + "restart.txt" - end - def accidental_buffer state + "buffer" + "accidental" end Deleted: lib/droonga/restarter.rb (+0 -32) 100644 =================================================================== --- lib/droonga/restarter.rb 2015-04-23 14:18:05 +0900 (26f81cd) +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (C) 2015 Droonga Project -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License version 2.1 as published by the Free Software Foundation. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -require "fileutils" -require "droonga/path" - -module Droonga - class Restarter - class << self - def restart(wait_for_next=nil) - new.restart(wait_for_next) - end - end - - def restart(wait_for_next=nil) - FileUtils.touch(Path.restart.to_s) - sleep(wait_for_next) if wait_for_next - end - end -end -------------- next part -------------- HTML����������������������������... Descargar