Changeset 449

Show
Ignore:
Timestamp:
10/10/07 19:53:58 (6 years ago)
Author:
cho45
Message:

lang/ruby/cutagem:pkg,htmlを無視lang/ruby/cutagem/lib/cutagem.rb,lang/ruby/cutagem/ChangeLog:0.0.5

Location:
lang/ruby/cutagem
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/cutagem

    • Property svn:ignore set to
      pkg
      html
  • lang/ruby/cutagem/ChangeLog

    r436 r449  
     12007-10-10  SATOH Hiroh <cho45@lowreal.net> 
     2 
     3        * 0.0.5 release: 
     4         * Fixed default template dependecy. 
     5         * Fixed default template README replacement. 
     6 
    172007-10-09  SATOH Hiroh <cho45@lowreal.net> 
    28 
    3         * 0.0.4 release 
    4         * Add dependency to Resh (resh). 
    5         * Fixed default template dependent. 
     9        * 0.0.4 release: 
     10         * Add dependency to Resh (resh). 
     11         * Fixed default template dependeny. 
    612 
    7132007-10-08  SATOH Hiroh <cho45@lowreal.net> 
    814 
    9         * 0.0.3 release 
    10         * Fix Rakefile for case-sensitive system. 
    11         * Output more verbosely. 
     15        * 0.0.3 release: 
     16         * Fix Rakefile for case-sensitive system. 
     17         * Output more verbosely. 
    1218 
    13192007-10-07  SATOH Hiroh <cho45@lowreal.net> 
    1420 
    15         * 0.0.2 release 
    16         * use ~/.cutagem/config.yaml as user config. 
    17         * Rename ChangeLog 
     21        * 0.0.2 release: 
     22         * use ~/.cutagem/config.yaml as user config. 
     23         * Rename ChangeLog 
    1824 
    19252007-10-07  SATOH Hiroh <cho45@lowreal.net> 
    2026 
    21         * 0.0.1 release 
     27        * 0.0.1 release: 
    2228 
    2329 
  • lang/ruby/cutagem/lib/cutagem.rb

    r436 r449  
    77 
    88class CutAGemCommand 
    9         VERSION = "0.0.4" 
     9        VERSION = "0.0.5" 
    1010 
    1111        include FileUtils 
     
    4646 
    4747                        parser.on("--copy-template NAME", "Copy template to user template dir naming NAME") do |name| 
    48                                 @select = true 
    4948                                path = Pathname.new(ENV["HOME"]) + ".cutagem/templates" + name 
    5049                                if path.exist? 
     
    5251                                        exit 1 
    5352                                end 
    54                                 template = select_template() 
     53                                template = select_template(true) 
    5554                                cp_r template, path, :verbose => true 
    5655                                exit 
     
    8382                description = @description 
    8483 
    85                 template = select_template() 
     84                template = select_template(@select) 
    8685 
    8786                gemdir = pwd + gemname 
     
    136135        end 
    137136 
    138         def select_template 
     137        # Select template from system templates and user templtes. 
     138        # if +select+ is true, select templates interactively. 
     139        def select_template(select) 
    139140                @templates = Pathname.new(File.dirname(__FILE__)).realpath + '../templates' 
    140141                @user_templates = Pathname.new(ENV["HOME"]).realpath + '.cutagem/templates' 
     
    162163                templates = u_templates + templates 
    163164 
    164                 if @select 
     165                if select 
    165166                        puts "Select template:" 
    166167                        templates.each_with_index do |item,index|