Changeset 449
- Timestamp:
- 10/10/07 19:53:58 (6 years ago)
- Location:
- lang/ruby/cutagem
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/cutagem
-
Property
svn:ignore set
to
pkg
html
-
Property
svn:ignore set
to
-
lang/ruby/cutagem/ChangeLog
r436 r449 1 2007-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 1 7 2007-10-09 SATOH Hiroh <cho45@lowreal.net> 2 8 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. 6 12 7 13 2007-10-08 SATOH Hiroh <cho45@lowreal.net> 8 14 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. 12 18 13 19 2007-10-07 SATOH Hiroh <cho45@lowreal.net> 14 20 15 * 0.0.2 release 16 * use ~/.cutagem/config.yaml as user config.17 * Rename ChangeLog21 * 0.0.2 release: 22 * use ~/.cutagem/config.yaml as user config. 23 * Rename ChangeLog 18 24 19 25 2007-10-07 SATOH Hiroh <cho45@lowreal.net> 20 26 21 * 0.0.1 release 27 * 0.0.1 release: 22 28 23 29 -
lang/ruby/cutagem/lib/cutagem.rb
r436 r449 7 7 8 8 class CutAGemCommand 9 VERSION = "0.0. 4"9 VERSION = "0.0.5" 10 10 11 11 include FileUtils … … 46 46 47 47 parser.on("--copy-template NAME", "Copy template to user template dir naming NAME") do |name| 48 @select = true49 48 path = Pathname.new(ENV["HOME"]) + ".cutagem/templates" + name 50 49 if path.exist? … … 52 51 exit 1 53 52 end 54 template = select_template( )53 template = select_template(true) 55 54 cp_r template, path, :verbose => true 56 55 exit … … 83 82 description = @description 84 83 85 template = select_template( )84 template = select_template(@select) 86 85 87 86 gemdir = pwd + gemname … … 136 135 end 137 136 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) 139 140 @templates = Pathname.new(File.dirname(__FILE__)).realpath + '../templates' 140 141 @user_templates = Pathname.new(ENV["HOME"]).realpath + '.cutagem/templates' … … 162 163 templates = u_templates + templates 163 164 164 if @select165 if select 165 166 puts "Select template:" 166 167 templates.each_with_index do |item,index|
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)