summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjuanxo <juan.guerrero.lozano@gmail.com>2014-05-26 03:14:17 +0200
committerjuanxo <juan.guerrero.lozano@gmail.com>2014-05-26 03:14:17 +0200
commita26e7f31f145491791150f8d2c2385428ae0fde5 (patch)
tree829807a6c2ab8ed9f2036a0ba44a2b4cda45a227
parente56a11018f7030642d7d1b8f408f98bdde9d2123 (diff)
downloadbundler-a26e7f31f145491791150f8d2c2385428ae0fde5.tar.gz
Extract standalone path expansion to do it only once
-rw-r--r--lib/bundler/installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index fe03b61508..3ff7504ed9 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -252,7 +252,7 @@ module Bundler
file.puts "ruby_version = RbConfig::CONFIG[\"ruby_version\"]"
file.puts "path = File.expand_path('..', __FILE__)"
paths.each do |path|
- file.puts %{$:.unshift File.expand_path("\#{path}/#{path}")}
+ file.puts %{$:.unshift "\#{path}/#{path}"}
end
end
end