# File bundler/dep_proxy.rb, line 9 def self.get_proxy(dep, platform) @proxies[[dep, platform]] ||= new(dep, platform).freeze end
# File bundler/dep_proxy.rb, line 45 def clone raise NoMethodError.new("DepProxy cannot be cloned") end
# File bundler/dep_proxy.rb, line 41 def dup raise NoMethodError.new("DepProxy cannot be duplicated") end
# File bundler/dep_proxy.rb, line 26 def name @dep.name end
# File bundler/dep_proxy.rb, line 30 def requirement @dep.requirement end
# File bundler/dep_proxy.rb, line 34 def to_s s = name.dup s << " (#{requirement})" unless requirement == Gem::Requirement.default s << " #{__platform}" unless __platform == Gem::Platform::RUBY s end
# File bundler/dep_proxy.rb, line 22 def type @dep.type end