summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Eppstein <chris@eppsteins.net>2010-02-21 18:50:31 -0800
committerYehuda Katz <yehudakatz@YK.local>2010-02-21 19:09:23 -0800
commit3e3d51a6ec9e0e5b6b772e0196aa2376cb53d21c (patch)
tree9748962952ff36af105fa05e24533a14b310e96b
parent625ba86520b4e93938d68ceba997108649d51716 (diff)
downloadbundler-3e3d51a6ec9e0e5b6b772e0196aa2376cb53d21c.tar.gz
Bundler expects a pathname here, evidently it's not in a pathname in some cases.
-rw-r--r--lib/bundler08/gem_ext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler08/gem_ext.rb b/lib/bundler08/gem_ext.rb
index 707f582608..a441f09fdc 100644
--- a/lib/bundler08/gem_ext.rb
+++ b/lib/bundler08/gem_ext.rb
@@ -3,7 +3,7 @@ module Gem
remove_method(:app_script_text) if method_defined?(:app_script_text)
def app_script_text(bin_file_name)
- path = @gem_home
+ path = Pathname.new(@gem_home)
template = File.read(File.join(File.dirname(__FILE__), "templates", "app_script.erb"))
erb = ERB.new(template, nil, '-')
erb.result(binding)