aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorKamil K. LemaƄski <kamil.lemanski@gmail.com>2013-06-13 10:30:47 +0300
committerAndre Arko <andre@arko.net>2013-07-03 12:07:37 -0700
commit3b5d3acb7db535e75920ae0f639d2661e9ead4af (patch)
treeebad27a95ef228bcceb35ab3d2353ad00af7ceb5 /lib/bundler.rb
parent30604c78717b651147c6aa822c88f8f15f66444e (diff)
downloadbundler-3b5d3acb7db535e75920ae0f639d2661e9ead4af.tar.gz
Coerce Pathname into String for MacRuby
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index f712edeb..ccb447de 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -261,7 +261,7 @@ module Bundler
bin_dir = bin_dir.parent until bin_dir.exist?
# if any directory is not writable, we need sudo
- dirs = [path, bin_dir] | Dir[path.join('*')]
+ dirs = [path, bin_dir] | Dir[path.join('*').to_s]
sudo_needed = dirs.find{|d| !File.writable?(d) }
end