Skip to content

Commit

Permalink
Removing end space on rake rename
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Jun 29, 2010
1 parent fbb392c commit eb5c8d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -61,6 +61,8 @@ task :rename do
if File.file?(path)
`sed -i 's/gem_template/#{name}/g' #{path}`
`sed -i 's/GemTemplate/#{camelize.call(name)}/g' #{path}`
no_space = File.read(path).gsub(/\s+\z/, '')
File.open(path, 'w') { |f| f.write(no_space) }
end
end
end

0 comments on commit eb5c8d1

Please sign in to comment.