summaryrefslogtreecommitdiff
path: root/lib/bundler/env.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-04-16 17:30:18 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-06-04 23:53:37 -0500
commit841213e3d3447633b5fed3b3d0fb9d3d1f903bde (patch)
treee2d3f4a764c45ac98e56635c1163ecfb2485d33f /lib/bundler/env.rb
parenta2b5419a08edcc98c53d79960b91f383583dab0b (diff)
downloadbundler-841213e3d3447633b5fed3b3d0fb9d3d1f903bde.tar.gz
[Env] Fix printing gemspecs
Diffstat (limited to 'lib/bundler/env.rb')
-rw-r--r--lib/bundler/env.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb
index baf6a10f31..47e720a201 100644
--- a/lib/bundler/env.rb
+++ b/lib/bundler/env.rb
@@ -44,8 +44,8 @@ module Bundler
if print_gemspecs
dsl = Dsl.new.tap {|d| d.eval_gemfile(Bundler.default_gemfile) }
dsl.gemspecs.each do |gs|
- out << "\n#{Pathname.new(gs).basename}"
- out << "\n\n " << read_file(gs).gsub(/\n/, "\n ") << "\n"
+ out << "\n#{File.basename(gs.loaded_from)}"
+ out << "\n\n " << read_file(gs.loaded_from).gsub(/\n/, "\n ") << "\n"
end
end