diff options
author | Ryan Davis <ryand@zenspider.com> | 2009-02-19 16:48:56 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2009-02-19 16:48:56 -0800 |
commit | 4f07b73d1c387b1fa6e4fa8a9ce0c10070cc4086 (patch) | |
tree | 6c58aec753fa5978c2296119800b2b4a4c2d0344 | |
parent | 90abd7e06981a6996da46a790aed24e539d1d945 (diff) | |
download | hoe-4f07b73d1c387b1fa6e4fa8a9ce0c10070cc4086.tar.gz |
Renamed all template files to xxx.erb. sow deals with that and renames dirs as well
[git-p4: depot-paths = "//src/hoe/dev/": change = 4627]
-rw-r--r-- | History.txt | 2 | ||||
-rw-r--r-- | Manifest.txt | 16 | ||||
-rwxr-xr-x | bin/sow | 8 | ||||
-rw-r--r-- | template/.autotest.erb (renamed from template/.autotest) | 0 | ||||
-rw-r--r-- | template/History.txt.erb (renamed from template/History.txt) | 0 | ||||
-rw-r--r-- | template/Manifest.txt.erb (renamed from template/Manifest.txt) | 0 | ||||
-rw-r--r-- | template/README.txt.erb (renamed from template/README.txt) | 0 | ||||
-rw-r--r-- | template/Rakefile.erb (renamed from template/Rakefile) | 0 | ||||
-rwxr-xr-x | template/bin/file_name.erb (renamed from template/bin/file_name) | 0 | ||||
-rw-r--r-- | template/lib/file_name.rb.erb (renamed from template/lib/file_name.rb) | 0 | ||||
-rw-r--r-- | template/test/test_file_name.rb.erb (renamed from template/test/test_file_name.rb) | 0 |
11 files changed, 16 insertions, 10 deletions
diff --git a/History.txt b/History.txt index df996d6..3ed3d7d 100644 --- a/History.txt +++ b/History.txt @@ -9,7 +9,7 @@ * Added rspec support including having both tests and specs. * Match RubyGems' RDoc behavior and removed rdoc_pattern attribute. Use extra_rdoc_files instead. - * Replaced my hand rolled test/multi tasks with TestTask versions. From:JB + * Added testlib and SUPPORTED_TEST_FRAMEWORKS to switch your testing library. * 1 bug fixes: diff --git a/Manifest.txt b/Manifest.txt index 2bff231..4aa6a7d 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -4,13 +4,13 @@ README.txt Rakefile bin/sow lib/hoe.rb -template/.autotest -template/History.txt -template/Manifest.txt -template/README.txt -template/Rakefile -template/bin/file_name -template/lib/file_name.rb -template/test/test_file_name.rb +template/.autotest.erb +template/History.txt.erb +template/Manifest.txt.erb +template/README.txt.erb +template/Rakefile.erb +template/bin/file_name.erb +template/lib/file_name.rb.erb +template/test/test_file_name.rb.erb test/test_hoe.rb @@ -50,7 +50,13 @@ Dir.chdir project do end end - paths.grep(/file_name/).each do |file| + paths.grep(/file_name|\.erb$/).each do |file| + new_file = file.sub(/file_name/, file_name).sub(/\.erb$/, '') + FileUtils.mv file, new_file, :verbose => true + end + + dirs = (Dir["**/*"] + Dir["**/.*"]).select { |f| File.directory? f }.sort + dirs.grep(/file_name/).each do |file| FileUtils.mv file, file.gsub(/file_name/, file_name), :verbose => true end end diff --git a/template/.autotest b/template/.autotest.erb index ef753ad..ef753ad 100644 --- a/template/.autotest +++ b/template/.autotest.erb diff --git a/template/History.txt b/template/History.txt.erb index d90f052..d90f052 100644 --- a/template/History.txt +++ b/template/History.txt.erb diff --git a/template/Manifest.txt b/template/Manifest.txt.erb index a6f8832..a6f8832 100644 --- a/template/Manifest.txt +++ b/template/Manifest.txt.erb diff --git a/template/README.txt b/template/README.txt.erb index 531df89..531df89 100644 --- a/template/README.txt +++ b/template/README.txt.erb diff --git a/template/Rakefile b/template/Rakefile.erb index 7a59ce7..7a59ce7 100644 --- a/template/Rakefile +++ b/template/Rakefile.erb diff --git a/template/bin/file_name b/template/bin/file_name.erb index 1b4eff8..1b4eff8 100755 --- a/template/bin/file_name +++ b/template/bin/file_name.erb diff --git a/template/lib/file_name.rb b/template/lib/file_name.rb.erb index 2c5cda5..2c5cda5 100644 --- a/template/lib/file_name.rb +++ b/template/lib/file_name.rb.erb diff --git a/template/test/test_file_name.rb b/template/test/test_file_name.rb.erb index 44fb2fa..44fb2fa 100644 --- a/template/test/test_file_name.rb +++ b/template/test/test_file_name.rb.erb |