[logaling-commit] logaling/logaling-command [master] Add PersonalProject#expand_path

Back to archive index

SHIMADA Koji null+****@clear*****
Wed Nov 21 13:56:08 JST 2012


SHIMADA Koji	2012-11-21 13:56:08 +0900 (Wed, 21 Nov 2012)

  New Revision: 622415a9bbc8f9e193c50b5b9ce2b2d549e7cc17
  https://github.com/logaling/logaling-command/commit/622415a9bbc8f9e193c50b5b9ce2b2d549e7cc17

  Merged 6a87d99: Merge pull request #90 from logaling/change-glossarysourcepath-fullpath-to-relativepath

  Log:
    Add PersonalProject#expand_path

  Modified files:
    lib/logaling/command/application.rb
    lib/logaling/project.rb

  Modified: lib/logaling/command/application.rb (+1 -1)
===================================================================
--- lib/logaling/command/application.rb    2012-11-21 13:49:52 +0900 (46f6ddb)
+++ lib/logaling/command/application.rb    2012-11-21 13:56:08 +0900 (962e85f)
@@ -90,7 +90,7 @@ module Logaling::Command
       else
         raise Logaling::CommandFailed, "[TARGET-LANGUAGE] is required when you use '--personal'" unless target_language
         personal_project =****@repos*****_personal_project(project_name, source_language, target_language)
-        say "Successfully created #{@repository.expand_path(personal_project.path)}"
+        say "Successfully created #{personal_project.expand_path}"
       end
     rescue Logaling::CommandFailed => e
       say e.message

  Modified: lib/logaling/project.rb (+2 -1)
===================================================================
--- lib/logaling/project.rb    2012-11-21 13:49:52 +0900 (74ab220)
+++ lib/logaling/project.rb    2012-11-21 13:56:08 +0900 (f0ccea8)
@@ -168,9 +168,10 @@ module Logaling
       [GlossarySource.create(@path, glossary(source_language, target_language))]
     end
 
-    def glossary_source_path
+    def expand_path
       @repository.expand_path(@path)
     end
+    alias_method :glossary_source_path, :expand_path
 
     def initialize_glossary(source_language, target_language)
       glossary(source_language, target_language).initialize_glossary_source
-------------- next part --------------
An HTML attachment was scrubbed...
Télécharger 



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