SHIMADA Koji
null+****@clear*****
Mon Aug 13 10:56:31 JST 2012
SHIMADA Koji 2012-08-13 10:56:31 +0900 (Mon, 13 Aug 2012) New Revision: a7a719603c33b308aefbd1bc51a813d156223c4e https://github.com/logaling/logaling-command/commit/a7a719603c33b308aefbd1bc51a813d156223c4e Log: Rename #personal_path to #personal_glossary_root_path Modified files: lib/logaling/repository.rb Modified: lib/logaling/repository.rb (+4 -4) =================================================================== --- lib/logaling/repository.rb 2012-08-09 18:22:09 +0900 (c222bac) +++ lib/logaling/repository.rb 2012-08-13 10:56:31 +0900 (bc61a1c) @@ -45,14 +45,14 @@ module Logaling end def create_personal_glossary(glossary_name, source_language, target_language) - FileUtils.mkdir_p(personal_path) + FileUtils.mkdir_p(personal_glossary_root_path) if project = find_project(glossary_name) if project.glossaries.map(&:to_s).index([glossary_name, source_language, target_language].join('.')) raise Logaling::GlossaryAlreadyRegistered end end glossary_source_name = [glossary_name, source_language, target_language,'yml'].join('.') - FileUtils.touch(File.join(personal_path, glossary_source_name)) + FileUtils.touch(File.join(personal_glossary_root_path, glossary_source_name)) rescue raise Logaling::GlossaryAlreadyRegistered, "The glossary '#{glossary_name}' already exists." end @@ -146,7 +146,7 @@ module Logaling File.join(@path, "projects") end - def personal_path + def personal_glossary_root_path File.join(@path, "personal") end @@ -159,7 +159,7 @@ module Logaling end def personal_glossary_paths - Dir[File.join(personal_path, "*")] + Dir[File.join(personal_glossary_root_path, "*")] end def imported_glossary_paths -------------- next part -------------- An HTML attachment was scrubbed... 다운로드