From b750094934d4071a1205744007a3e9f6f979fa66 Mon Sep 17 00:00:00 2001 From: bcd87 Date: Tue, 24 Sep 2013 08:15:56 +0200 Subject: [PATCH] Rake now passes on Ruby 1.8.7 on my machine --- lib/homesick.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/homesick.rb b/lib/homesick.rb index d09ceb8..275f742 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -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)