SHIMADA Koji
null+****@clear*****
Mon Aug 13 11:37:41 JST 2012
SHIMADA Koji 2012-08-13 11:37:41 +0900 (Mon, 13 Aug 2012) New Revision: f40dbd1a287b9c41eec5fc93d612fbf5cb69376a https://github.com/logaling/logaling-command/commit/f40dbd1a287b9c41eec5fc93d612fbf5cb69376a Log: Displace concrete action after validation Modified files: lib/logaling/repository.rb Modified: lib/logaling/repository.rb (+1 -1) =================================================================== --- lib/logaling/repository.rb 2012-08-13 11:14:26 +0900 (677c9e1) +++ lib/logaling/repository.rb 2012-08-13 11:37:41 +0900 (50314f5) @@ -45,10 +45,10 @@ module Logaling end def create_personal_glossary(glossary_name, source_language, target_language) - FileUtils.mkdir_p(personal_glossary_root_path) if glossary_exists?(glossary_name, source_language, target_language) raise Logaling::GlossaryAlreadyRegistered end + FileUtils.mkdir_p(personal_glossary_root_path) glossary_source_name = [glossary_name, source_language, target_language,'yml'].join('.') FileUtils.touch(File.join(personal_glossary_root_path, glossary_source_name)) rescue -------------- next part -------------- An HTML attachment was scrubbed... 下载