diff --git a/bundler/lib/bundler/dep_proxy.rb b/bundler/lib/bundler/dep_proxy.rb index a32dc37b492d..e069788e5833 100644 --- a/bundler/lib/bundler/dep_proxy.rb +++ b/bundler/lib/bundler/dep_proxy.rb @@ -13,6 +13,9 @@ def self.get_proxy(dep, platform) def initialize(dep, platform) @dep = dep @__platform = platform + + # save the name to save a method call to the dep's name + @name = dep.name end private_class_method :new @@ -24,7 +27,7 @@ def type end def name - @dep.name + @name end def requirement