Permalink
Browse files

Remove useless colonification.

  • Loading branch information...
1 parent 77b77ed commit a914c21bfdb5d11c274136cf7b368295d6357403 @jbarnette committed Jul 25, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/basis/repo.rb
View
3 lib/basis/repo.rb
@@ -10,8 +10,7 @@ def initialize home = "~/.basis"
end
def add url, name = nil
- name ||= File.basename(url, ".git").
- downcase.sub(/^basis[-_]/, "").tr "-", ":"
+ name ||= File.basename(url, ".git").downcase.sub(/^basis[-_]/, "")
if templates.keys.include? name
raise "Template '#{name}' already exists!"

0 comments on commit a914c21

Please sign in to comment.