rubigen 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.0.6 2007-10-18
2
+
3
+ * Templates can end with .erb (e.g. model.rb.erb) and template_copy_each will remove the .erb extension (create model.rb)
4
+
1
5
  == 1.0.5 2007-10-08
2
6
 
3
7
  * Added Jeremy Kemper to license/copyright/gem author list.
data/Manifest.txt CHANGED
@@ -10,7 +10,7 @@ app_generators/ruby_app/templates/README.txt
10
10
  app_generators/ruby_app/templates/Rakefile
11
11
  app_generators/ruby_app/templates/configs/empty.log
12
12
  app_generators/ruby_app/templates/lib/module.rb
13
- app_generators/ruby_app/templates/test/test_helper.rb
13
+ app_generators/ruby_app/templates/test/test_helper.rb.erb
14
14
  bin/install_rubigen_scripts
15
15
  bin/ruby_app
16
16
  examples/rails_generators/applications/app/USAGE
@@ -36,7 +36,7 @@ class RubyAppGenerator < RubiGen::Base
36
36
  m.template "lib/module.rb", "lib/#{app_name}.rb"
37
37
 
38
38
  # Test helper
39
- m.template_copy_each %w(test_helper.rb), "test"
39
+ m.template_copy_each %w(test_helper.rb.erb), "test"
40
40
 
41
41
  %w(debug).each { |file|
42
42
  m.file "configs/empty.log", "log/#{file}.log", :chmod => 0666
@@ -303,7 +303,7 @@ module RubiGen
303
303
  def template_copy_each(files, path = nil, options = {})
304
304
  path = path ? "#{path}/" : ""
305
305
  files.each do |file_name|
306
- template "#{path}#{file_name}", "#{path}#{file_name}", options
306
+ template "#{path}#{file_name}", "#{path}#{file_name.gsub(/\.erb$/,'')}", options
307
307
  end
308
308
  end
309
309
 
@@ -2,7 +2,7 @@ module Rubigen #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -31,7 +31,7 @@
31
31
  <h1>rubigen</h1>
32
32
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rubigen"; return false'>
33
33
  <p>Get Version</p>
34
- <a href="http://rubyforge.org/projects/rubigen" class="numbers">1.0.5</a>
34
+ <a href="http://rubyforge.org/projects/rubigen" class="numbers">1.0.6</a>
35
35
  </div>
36
36
  <h1>Ruby Generator Framework</h1>
37
37
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4.3
3
3
  specification_version: 1
4
4
  name: rubigen
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.5
7
- date: 2007-10-08 00:00:00 +10:00
6
+ version: 1.0.6
7
+ date: 2007-10-18 00:00:00 +10:00
8
8
  summary: "A framework to allow Ruby applications to generate file/folder stubs (like the rails command does for Ruby on Rails, and the \xE2\x80\x98script/generate\xE2\x80\x99 command within a Rails application during development)."
9
9
  require_paths:
10
10
  - lib
@@ -42,7 +42,7 @@ files:
42
42
  - app_generators/ruby_app/templates/Rakefile
43
43
  - app_generators/ruby_app/templates/configs/empty.log
44
44
  - app_generators/ruby_app/templates/lib/module.rb
45
- - app_generators/ruby_app/templates/test/test_helper.rb
45
+ - app_generators/ruby_app/templates/test/test_helper.rb.erb
46
46
  - bin/install_rubigen_scripts
47
47
  - bin/ruby_app
48
48
  - examples/rails_generators/applications/app/USAGE