summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-06 12:29:20 -0700
committerCarl Lerche <carllerche@mac.com>2010-06-06 12:29:20 -0700
commit917cc4fd2ffeec796fd2fcb996d2154e15e279dd (patch)
treee2feed603f059db728ee44032c07728fb8369b7a /lib/bundler
parent5c8d9c82b287ef2f6d2fd36b45d6cd11cad12c88 (diff)
downloadbundler-917cc4fd2ffeec796fd2fcb996d2154e15e279dd.tar.gz
Get the tests passing on 1.9
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/rubygems_ext.rb19
1 files changed, 13 insertions, 6 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb
index a6ed2c8690..ea69427fa8 100644
--- a/lib/bundler/rubygems_ext.rb
+++ b/lib/bundler/rubygems_ext.rb
@@ -1,16 +1,15 @@
require 'pathname'
-unless defined? Gem
- require 'rubygems'
- require 'rubygems/specification'
+if defined?(Gem::QuickLoader)
+ # Gem Prelude makes me a sad panda :'(
+ Gem::QuickLoader.load_full_rubygems_library
end
+require 'rubygems'
+require 'rubygems/specification'
module Bundler
class DepProxy
- undef to_s
- undef type
-
attr_reader :required_by, :__platform, :dep
def initialize(dep, platform)
@@ -27,6 +26,14 @@ module Bundler
alias eql? ==
+ def type
+ @dep.type
+ end
+
+ def to_s
+ @dep.to_s
+ end
+
private
def method_missing(*args)