Skip to content

Commit

Permalink
fix rename script
Browse files Browse the repository at this point in the history
  • Loading branch information
gdagley committed Jun 24, 2013
1 parent 42aa1b2 commit a997177
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rename.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
end

# In case someone uses CamelCaseAppName
app_name.gsub!(/(.)([A-Z])/,'\1_\2').downcase!
app_name = app_name.gsub(/(.)([A-Z])/,'\1_\2')
app_name.downcase!

underscore_project_name = app_name.gsub(/\W/, '_').squeeze('_')
camel_project_name = underscore_project_name.split('_').map {|w| w.capitalize }.join
Expand All @@ -25,7 +26,7 @@

files = Dir.glob("**/*.*")
#these files need to be manually added because they will not be picked up by the glob
files << ".rvmrc"
files << ".ruby-gemset"
files << "Rakefile"
files.each do |filename|
next if filename == "rename.rb" || File.directory?(filename)
Expand Down

0 comments on commit a997177

Please sign in to comment.