Skip to content

Instantly share code, notes, and snippets.

@headius
Created October 8, 2013 23:29
Show Gist options
  • Save headius/6893614 to your computer and use it in GitHub Desktop.
Save headius/6893614 to your computer and use it in GitHub Desktop.
diff --git a/lib/ruby/shared/rubygems/package.rb b/lib/ruby/shared/rubygems/package.rb
index ba379c2..376db3a 100644
--- a/lib/ruby/shared/rubygems/package.rb
+++ b/lib/ruby/shared/rubygems/package.rb
@@ -386,6 +386,7 @@ EOM
destination_dir = File.realpath destination_dir if
File.respond_to? :realpath
+ destination_dir = File.expand_path destination_dir
destination = File.join destination_dir, filename
destination = File.expand_path destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment