null+****@clear*****
null+****@clear*****
Mon Jun 25 11:50:49 JST 2012
SHIMADA Koji 2012-06-25 11:50:49 +0900 (Mon, 25 Jun 2012) New Revision: 5805ada0cf0f0fa83c991d21ae3651caafebda1f https://github.com/logaling/logaling-command/commit/5805ada0cf0f0fa83c991d21ae3651caafebda1f Merged 7228757: Merge pull request #60 from logaling/refactor-structure Log: Split 'dir' between temporary variable and argument Modified files: lib/logaling/project.rb Modified: lib/logaling/project.rb (+2 -1) =================================================================== --- lib/logaling/project.rb 2012-06-25 11:40:01 +0900 (8444d15) +++ lib/logaling/project.rb 2012-06-25 11:50:49 +0900 (4356a6a) @@ -16,8 +16,9 @@ module Logaling class Project class << self - def find_dotfile(dir=Dir.pwd) + def find_dotfile(base_dir=Dir.pwd) searched_path = [] + dir = base_dir loop do path = File.join(dir, '.logaling') if File.exist?(path) -------------- next part -------------- An HTML attachment was scrubbed... 다운로드