summaryrefslogtreecommitdiff
path: root/lib/bundler/installer/standalone.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/installer/standalone.rb')
-rw-r--r--lib/bundler/installer/standalone.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/installer/standalone.rb b/lib/bundler/installer/standalone.rb
index e1beb25ad1..0720d6d38a 100644
--- a/lib/bundler/installer/standalone.rb
+++ b/lib/bundler/installer/standalone.rb
@@ -16,12 +16,12 @@ module Bundler
file.puts "ruby_version = RbConfig::CONFIG[\"ruby_version\"]"
file.puts "path = File.expand_path('..', __FILE__)"
paths.each do |path|
- file.puts %($:.unshift "\#{path}/#{path}")
+ file.puts %($:.unshift File.expand_path("\#{path}/#{path}"))
end
end
end
- private
+ private
def paths
@specs.map do |spec|