diff options
author | Andre Arko <andre@arko.net> | 2014-04-01 17:16:45 +0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-04-01 17:16:45 +0800 |
commit | ce09f8428e82cc08ff340190b6a408a5a01788d6 (patch) | |
tree | 1ae66181993f2df19b7d68faf1c9298605185517 /lib | |
parent | 9007c941b4cb1fb03cbb188f23105e798d2736cf (diff) | |
download | bundler-ce09f8428e82cc08ff340190b6a408a5a01788d6.tar.gz |
slightly less deep
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/source/rubygems.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index 5179680ce0..4422079e6b 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -104,7 +104,9 @@ module Bundler dst = File.join(Bundler.rubygems.gem_dir, name) if name == "extensions" src = File.join(src, "*/*") - dst = File.dirname(File.join(dst, Dir.glob(src).first.gsub(src[0..-6], ''))) + ext_src = Dir.glob(src).first.gsub(src[0..-6], '') + ext_dst = File.join(dst, ext_src) + dst = File.dirname(ext_dst) end Bundler.mkdir_p dst Bundler.sudo "cp -R #{src} #{dst}" if Dir[src].any? |