Rake now passes on Ruby 1.8.7 on my machine

This commit is contained in:
bcd87
2013-09-24 08:15:56 +02:00
parent d953a964cd
commit b750094934

View File

@@ -33,7 +33,7 @@ class Homesick < Thor
ln_s uri, destination
elsif uri =~ GITHUB_NAME_REPO_PATTERN
destination = Pathname.new($1.split("/")[1])
destination = Pathname.new(uri).basename
git_clone "https://github.com/#{$1}.git", :destination => destination
elsif uri =~ /%r([^%r]*?)(\.git)?\Z/
destination = Pathname.new($1)